LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-18-2003, 06:49 AM   #1
Doug Hammond
LQ Newbie
 
Registered: Feb 2003
Distribution: rehdat 8.0
Posts: 14

Rep: Reputation: 0
Angry compiling kernels


well i don't know if this is entirely the right place to post, but i notice that there are one hell of a lot of people here, so here goes...

i'm trying to compile a 2.4.18-14 kernel (the one that is packaged with redhat 8.0 psyche)... really just for the fun of it, in order to learn a little more about how linux works....
later i plan to try and make the kernel load dv1394 drivers automatically, but for now i need to overcome a few basic hurdles.

have read a great deal on the subject, and get a reasonable way through the process...
1. installed source (easy from distro cd rpm)
2. found source on HD and ran make xconfig (easy to set my options)
3. ran make dep as told to by many "how-to"'s
4. as 3 for make clean
5. ran make bzImage

now the problems start.... takes about 5 minutes (fast athlon XP processor), and gets to what I believe is the last(ish) step, command which starts with ld ... (the actual object code linking ??) and is several lines long.

here is error message:

fs/fs.o: In function 'proc_pid_stat':

fs/fs.o(.text+0x1d86b): Undefined reference to '__udivdi3'

make [1]: *** [kallsyms] Error 1

.. blah blah leaving dir... blah blah... Error 2.

so... i have deduced that the error lies in the filesystem module code, but that's about it...

what do 'proc_pid_stat' and '__udivdi3' relate to??

any ideas as to how i fix this and make it work?

Any comments will be welcome on this..

Thanks,

Doug.
 
Old 02-18-2003, 08:54 AM   #2
Doug Hammond
LQ Newbie
 
Registered: Feb 2003
Distribution: rehdat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
by the way... having spent the afternoon searching the web, there seems to be 101 different (and 1000001 links to) various documents, all of which basically say:

"make mrproper xconfig dep clean bZImage modules modules_install

...do this and it'll work and you have a bootable kernel.

if it doesn't work, try again"

but sweet f* all on what to do is a step fails, or how to go about rooting out the problem. I have tried the above method numerous times with different configuration optinos enabled and disabled (esp. in the filesystem section), all to no avail.

Please, if anyone here has ever successfully compiled the 2.4.18-14 kernel can you please let me know how you did it.

[BTW, i've now downloaded some newer versions and am gonna try compiling them this evening to see if they work instead.... ]

just thought i'd pass my thoughts on.

Doug.
 
Old 02-18-2003, 10:50 AM   #3
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Re: compiling kernels

Quote:
Originally posted by Doug Hammond
i'm trying to compile a 2.4.18-14 kernel (the one that is packaged with redhat 8.0 psyche)... really just for the fun of it, in order to learn a little more about how linux works....
later i plan to try and make the kernel load dv1394 drivers automatically, but for now i need to overcome a few basic hurdles.
Doug.
Doug: welcome to the world of kernel compilation.

One of the RedHat CD's has a complete document about doing exactly what you are doing featuring a step by step walk through. Did you have a look at that.

BTW, did you use the stock .config file?

Cheers--
Charles
 
Old 02-18-2003, 02:20 PM   #4
Doug Hammond
LQ Newbie
 
Registered: Feb 2003
Distribution: rehdat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
yeah i've read most of the docs that are both included and available on the www, however none of them really tell you what to do when something doesn't work..

anyway, have abandoned trying to compile 2.4.x, since downloaded 2.5.62 earlier today.... compiles like a dream, but can't get it to boot at the mo.... i'll keep tinkering.

also got hold of 2.4.20 in case the newest one fails me totally.

i'll keep my progress posted...

Doug.
 
Old 02-18-2003, 02:32 PM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by Doug Hammond
anyway, have abandoned trying to compile 2.4.x, since downloaded 2.5.62 earlier today.... compiles like a dream, but can't get it to boot at the mo.... i'll keep tinkering.

also got hold of 2.4.20 in case the newest one fails me totally.

i'll keep my progress posted...

Doug.
Unless you want to be doing some debugging or testing, the 2.5.x series are unstable kernel's under development. You might want to just go ahead and use the 2.4.20 which is the latest stable kernel.

Odd's 2.5.x = unstable, even numbers 2.4.x = stable kernels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about compiling kernels/programs... finklewicz Linux - Newbie 2 05-12-2005 04:14 PM
after compiling 2.6.11.7, none of the kernels will boot hubabuba Fedora 1 05-02-2005 11:31 AM
Compiling kernels 2.6.10 aufomechanic Linux - Newbie 2 02-08-2005 08:13 AM
getting/compiling kernels ninmonkeys Linux - General 1 11-06-2004 07:19 PM
compiling kernels for different systems alaios Linux - General 2 11-06-2004 03:48 PM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration