LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2005, 05:34 AM   #1
luiso_campeon
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
Kernel compilation errors! Please help!


Hi all

I 'm trying to compile kernel source 2.4.14 under debian.

make menuconfig -> ok
make dep -> ok
make bzImage -> error!

I had this after make bzImage:


.
.
.
/usr/src/kernel-source-2.4.14/include/asm/checksum.h: 176: error: `__x' undeclared (first use in this function)
/usr/src/kernel-source-2.4.14/include/asm/checksum.h: 176: warning: no return statemtent in fuction returning non-void
/usr/src/kernel-source-2.4.14/include/asm/checksum.h: At top level:
/usr/src/kernel-source-2.4.14/include/asm/checksum.h: 176: error: parse error before ')' token
/usr/src/kernel-source-2.4.14/include/asm/checksum.h: 176: error: parse error before "__32"
make[2]: *** [ksyms.o] Error 1
make[2] Leaving directory `/usr/src/kernel-source-2.4.14/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.14/kernel'
make: *** [_dir_kernel] Error 2

I'm getting crazy with this!!!! Can anybody tell me what hell is happening? Thank u in advance!
 
Old 04-22-2005, 03:02 PM   #2
*Dark Dragon*
Member
 
Registered: Apr 2005
Distribution: Debian Testing + KDE
Posts: 53

Rep: Reputation: 17
What versions of make, gcc, libc you have?

If you don't know then type:

gcc --version; make --version | grep 'version' ; zcat /usr/share/doc/libc6/README.gz | grep 'version' | grep 'C'

You will get output with versions, please post it here. Also please send me your /usr/src/kernel-source-2.4.14/.config file to <darklab@<removed>.

Last edited by *Dark Dragon*; 04-22-2005 at 03:06 PM.
 
Old 04-22-2005, 06:33 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
yea generally the important error junk is at the very beginning of where things start going south
i this case i bet
Quote:
/usr/src/kernel-source-2.4.18/include/asm/checksum.h:72:30: missing terminating " character
yes ?

anyway this is because of too new a version of gcc for that kernel version
either use a older gcc if you have one or you will have to fix the sorce code "port" it to the newer gcc

the error is most likely the result of nothing more than a quote being continued on a second line
just go to /usr/src/kernel-source-2.4.18/include/asm/checksum.h line 72
and put the entire quoted string on one line
 
Old 04-25-2005, 10:49 AM   #4
luiso_campeon
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Original Poster
Rep: Reputation: 0
ok thank u guys fixed problem installing newer version of gcc

Last edited by luiso_campeon; 04-25-2005 at 10:51 AM.
 
  


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
Errors in Kernel Compilation btech_it Fedora 2 09-20-2005 03:27 AM
kernel compilation errors vinmoh Linux - General 6 04-14-2005 10:14 AM
kernel compilation errors vishamr2000 Red Hat 3 04-09-2005 10:33 PM
Custom Kernel Compilation Errors? d4harvey Red Hat 1 03-16-2004 12:00 PM
kernel compilation errors spork545 Red Hat 4 10-15-2003 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:40 PM.

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
Open Source Consulting | Domain Registration