LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Error recompiling kernel 2.4.22 (Make bzImage) (http://www.linuxquestions.org/questions/debian-26/error-recompiling-kernel-2-4-22-make-bzimage-128638/)

Spislander 12-24-2003 11:06 AM

Error recompiling kernel 2.4.22 (Make bzImage)
 
Hello all~
I was attempting to recopmile my kernel from 2.4.18-bf.2.4 to 2.4.22. I followed the steps outlined in http://www.linuxquestions.org/questi...iling+a+kernel incl. obtaining the kernel source per apt-get and not through kernel.org. Everything went smoothly until I ran <make bzImage>. At the of this process it errored out with the following:

***snip***
/usr/src/kernel-source-2.4.22/include/asm/uaccess.h:689: internal compiler error
: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [swap.o] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.4.22/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.22/mm'
make: *** [_dir_mm] Error 2
***end***

I know just enough to be dangerous in linux but not enough to know what to do about this.
Can anyone assist me with this? Do I need to post further information?
Thanx for any and all input on this one!
Tony

KneeLess 12-24-2003 12:07 PM

If I had to guess, you're running gcc 2.95, stable version of Debian. I had the same error. Upgrade your gcc, or your distrobution to testing, or unstable.

HappyTux 12-24-2003 03:35 PM

Quote:

Originally posted by KneeLess
If I had to guess, you're running gcc 2.95, stable version of Debian. I had the same error. Upgrade your gcc, or your distrobution to testing, or unstable.
Gcc-2.95 works fine for compiling any kernel I have ever tried:
Code:

[04:25 PM Wed Dec 24: stephen @ ~]
>$ grep 2.95 /var/log/messages
Dec 22 14:59:57 HappyTux kernel: Linux version 2.6.0.031218-2 (root@HappyTux) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 Thu Dec 18 19:52:24 AST 2003
Dec 23 10:34:45 HappyTux kernel: Linux version 2.6.0.031218-2 (root@HappyTux) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 Thu Dec 18 19:52:24 AST 2003
Dec 24 14:31:45 HappyTux kernel: Linux version 2.6.0.031218-2 (root@HappyTux) (gcc version 2.95.4 20011002 (Debian prerelease)) #1 Thu Dec 18 19:52:24 AST 2003


Spislander:

Is there some reason that you are not using the Debian method to compile a kernel or have you just not heard about it yet? I nerver seen that error when I compiled 2.4.22 but I used the kernel.org source what version of gcc are you using?
Code:

[04:26 PM Wed Dec 24: stephen @ ~]
>$ which gcc
/usr/bin/gcc
[04:27 PM Wed Dec 24: stephen @ ~]
>$ ll /usr/bin/gcc
lrwxrwxrwx    1 root    root            8 2003-09-01 02:24 /usr/bin/gcc -> gcc-2.95

A couple of links:
http://newbiedoc.sourceforge.net/tut...ernel-pkg.html
http://www.osnews.com/story.php?news_id=2949

Spislander 12-24-2003 03:54 PM

that did the trick!
Thanx a bunch for the quick fix,
Tony

Spislander 12-24-2003 05:38 PM

HappyTux~
After updating as per Kneeless' suggestion I'm running gcc3.3

***snip***
comp1:/home/tony# which gcc
/usr/bin/gcc
comp1:/home/tony# ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 7 Dec 9 05:23 /usr/bin/gcc -> gcc-3.3
***end***

What is this "Debian Method" of which you speak? {;-)>>
I'm still kinda... er... not good at this yet.
Thanx for the help,
Tony

HappyTux 12-24-2003 08:24 PM

Quote:

Originally posted by Spislander
HappyTux~
After updating as per Kneeless' suggestion I'm running gcc3.3

***snip***
comp1:/home/tony# which gcc
/usr/bin/gcc
comp1:/home/tony# ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 7 Dec 9 05:23 /usr/bin/gcc -> gcc-3.3
***end***

What is this "Debian Method" of which you speak? {;-)>>
I'm still kinda... er... not good at this yet.
Thanx for the help,
Tony

You use the kernel package program and fakeroot when you compile and you end up with a .deb(s) file(s) for the kernel image, headers and any modules like alsa, lmsensors that need to be made then this (these) package(s) can be installed with dpkg -i it takes care of updating lilo and making the symbolic links it is a really nice way to compile and install it pretty much takes care of everything, the links in my first post are a couple of guides on doing this. BTW what version of gcc were you using that caused the errors?

Spislander 12-25-2003 07:53 AM

HappyTux~
I was running the 2.95 gcc prior to the upgrade. Thanx for the info on debian recompiling. I'm gonna check that out and see if it's any less painful to the crainuim.
Tony

Spislander 12-26-2003 01:03 AM

I got it!!! The Kernel is recompiled and running smoothly. Thanx to one and all for the help. Now I've got another problem with Nvidia drivers, but that's for another thread.
Thanx again,
Tony


All times are GMT -5. The time now is 01:47 PM.