LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-09-2004, 06:00 PM   #1
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Error while compiling kernel


Okay, I just tried to re-compile the Fedora Core 2 2.6.6 kernel from kernel.org, in order to disable the 4k stacks and finally get the nvidia driver installed. I had tried this a couple of days ago, while in runlevel 5, and the make ran for about 12 minutes or so and the system hung every time.

So I retried again tonight in runlevel 3. I'll breakdown what I did...

Extracted the contents of the linux-2.6.6.tar.bz2 to /usr/src/linux-2.6.6
symlinked "linux" in /usr/src to above directory
copied /usr/src/linux-2.6.5-1.358/configs/kernel-2.6.5-i686.config to /usr/src/linux-2.6.6/.config (as in, made the file .config in linux-2.6.6)
as root, cd to /usr/src/linux-2.6.6
tried to run #make old config, but that gave me the old "Nothing to be done for makefile" and "No rule to make target 'old'. Stop." error.
So, ran make

Almost immediately it asked the two things the instructions I was using told me about. The first was something about i2o, to which I said no, and the second was the one to disable 4k stacks, which I did. Then it started the compiling. To my surprise, it didn't hang the machine. However, after about 20 minutes it stopped with the following:


gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: ***[drivers/ide/ide-iops.o] Error 1
make[1]: ***[drivers/ide] Error 2
make: *** [drivers] Error 2

So, I just stopped there and haven't done anything. Will somebody please advise as to what happened, and help me get past it?

Greatly appreciated...

Last edited by jeffreybluml; 06-09-2004 at 06:03 PM.
 
Old 06-09-2004, 06:14 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
You probably wanted to run "make oldconfig". You shouldn't blindly push ahead when a previous command gives you an error.
 
Old 06-09-2004, 06:17 PM   #3
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Original Poster
Rep: Reputation: 30
Ah, but I though that experimentation was good! ;-)

Thank you. Good catch, I removed the space and the command worked. I guess I took my instructions too literally.

Forging on, hopefull I wont' need to repost.

Thank you...
 
Old 06-09-2004, 06:28 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Experimentation is fine as long as you realize that 99/100 experiments will fail
 
Old 06-09-2004, 07:49 PM   #5
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Original Poster
Rep: Reputation: 30
Okay. I cleaned everything out with #make meproper and tried again. This time it got past 20 minutes and did not stop with an error, but after roughly 30 minutes it hung the computer again. Nothing would bring it back but a reboot.

My question: Is this normal? Does compiling often hang the computer? What can I do to diagnose or stop this?

Please help...
 
Old 06-09-2004, 08:36 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Are you using a really old computer with limited ram? Compiling is very processor intensive but I have not ever had a computer freeze up on me, just become sluggish.
 
Old 06-09-2004, 09:04 PM   #7
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Original Poster
Rep: Reputation: 30
No. I'm using an 1533Mhz AMD Athlon, 512M RAM. Is there aome way to diagnose why it is hanging the system?
 
Old 06-09-2004, 10:59 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I'm not sure what to tell you. Maybe it's a hardware problem, check that nothing is running too hot. Maybe you have a bunch of services running that are draining your system. Does this only happen when you compile source? All I can say is there is no way compiling a kernel should freeze up a computer with those specs.
 
Old 06-10-2004, 09:00 AM   #9
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Original Poster
Rep: Reputation: 30
Yeah! The make finally finished without crashing the computer, however the make install_modules gives me the old no target for makefile error. I don't know much about this make stuff, but do I have to perhaps do a:

make modules

before I do the

make install_modules

???

I know, I should stop screwing around when stuff doesn't go as it should, but sometimes I just can't help myself. I went ahead and did the

make install

after the install_modules didn't work, and then rebooted after that finished. When I tried to boot into the 2.6.6 kernel, however, it gave me a

kernel panic - no init found. Try passing the init= option to the kernel....

Not too surprised it errored, since I skipped an entire (and assumably important) step. Just wanted to make sure I expalin what I did in case I have to undo stuff before I try again. If this is the case, please advise.

Essentially, what should I do about the make install_modules?

Thanks,
 
Old 06-10-2004, 12:47 PM   #10
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
These are the steps to build a 2.6.x kernel:

make clean
make {oldconfig}{xconfig}{gconfig}{menuconfig} # choose 1, with no space
make
make modules_install
make install # optional, I prefer to install the kernel myself as to not pooch the previous working kernel

You may want to give the README file a gander, it's all in there.
 
Old 06-10-2004, 01:15 PM   #11
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Original Poster
Rep: Reputation: 30
Geez, there's a readme file!! I'm sorry to clutter the board with my posts, I need to learn to look around more first. I had no idea they included instructiions with the kernel!

Thank you so much. I immediately noticed that the readme tells you NOT to unpack the source while in the /usr/src/linux area, which is exactly what I DID do. What a bonehead!

Have I messed stuff up in /usr/src/linux now because I did so? If yes, can I "un-mess" it?

Thanks again for your help and patience...
 
Old 06-10-2004, 01:32 PM   #12
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Well, I usually unpack my kernels in /usr/src too, just as long as you don't clobber your original source. ie: have:
Code:
/usr/src/linux-2.4.26
/usr/src/linux-2.6.5
etc....
and use the symlink to link /usr/src/linux to the current source directory. To tell the truth I have never even bothered to make the symlink and I have had no ill effects. I see in your first post that you made a symlink from /usr/src/linux -> /usr/src/linux2.6.6 so you should be fine.

BTW, in every source distribution of pretty much all OS software there is a README or INSTALL file that tells you what to do.

Last edited by bulliver; 06-10-2004 at 01:34 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling kernel. Royle Debian 8 08-25-2005 02:42 PM
Error compiling the kernel odiseo77 Fedora 4 04-27-2005 10:15 AM
Error Compiling Kernel kurin Linux - Software 1 12-01-2004 04:08 PM
kernel compiling error draker Linux - Newbie 0 08-19-2003 12:05 AM
kernel compiling error johncla Linux - General 0 05-28-2001 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration