LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-24-2003, 10:06 AM   #1
Spislander
LQ Newbie
 
Registered: Oct 2003
Location: Austin, Tx
Distribution: Debian
Posts: 27

Rep: Reputation: 15
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
 
Old 12-24-2003, 11:07 AM   #2
KneeLess
Member
 
Registered: May 2003
Distribution: Debian GNU/Linux 3.0 Sid, OpenBSD 3.5
Posts: 190

Rep: Reputation: 30
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.
 
Old 12-24-2003, 02:35 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
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
 
Old 12-24-2003, 02:54 PM   #4
Spislander
LQ Newbie
 
Registered: Oct 2003
Location: Austin, Tx
Distribution: Debian
Posts: 27

Original Poster
Rep: Reputation: 15
that did the trick!
Thanx a bunch for the quick fix,
Tony
 
Old 12-24-2003, 04:38 PM   #5
Spislander
LQ Newbie
 
Registered: Oct 2003
Location: Austin, Tx
Distribution: Debian
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
Old 12-24-2003, 07:24 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
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?
 
Old 12-25-2003, 06:53 AM   #7
Spislander
LQ Newbie
 
Registered: Oct 2003
Location: Austin, Tx
Distribution: Debian
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
Old 12-26-2003, 12:03 AM   #8
Spislander
LQ Newbie
 
Registered: Oct 2003
Location: Austin, Tx
Distribution: Debian
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
  


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
kernel compilation:throwing error related with sound during "make bzImage" b0nd Linux - Newbie 1 08-19-2005 09:16 AM
make bzImage error TedNugent Slackware 1 03-13-2005 11:41 PM
make bzImage - error with kernel 2.4.26 2mk-master Linux - Newbie 2 03-02-2005 03:28 PM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
make bzImage error XPediTioN Debian 2 06-02-2004 12:39 PM


All times are GMT -5. The time now is 06:34 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