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 08-06-2005, 02:34 PM   #1
arurank
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
2.2.26 Kernel Compiling error


Hai,

I am trying to install a 2.2.26 kernel for my FC1 for testing purpose of my modem driver.

I went through several of the threads and I couldn't quiet figure out the problem.I could list my problems as follows..

After make config, I couldn't find the .config file anywhere ? so that I could backup
make dep: went smoothly....
make bzImage and make zImage gave the following output..


[root@localhost linux-2.2.26]# make zImage
cc -D__KERNEL__ -I/usr/src/linux-2.2.26/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -c -o init/main.o init/main.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from /usr/src/linux-2.2.26/include/linux/string.h:37,
from /usr/src/linux-2.2.26/include/linux/signal.h:64,
from /usr/src/linux-2.2.26/include/linux/sched.h:23,
from /usr/src/linux-2.2.26/include/linux/mm.h:4,
from /usr/src/linux-2.2.26/include/linux/slab.h:14,
from /usr/src/linux-2.2.26/include/linux/malloc.h:4,
from /usr/src/linux-2.2.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.2.26/include/asm/string.h:476:17: missing terminating " character
In file included from /usr/src/linux-2.2.26/include/linux/string.h:37,
from /usr/src/linux-2.2.26/include/linux/signal.h:64,
from /usr/src/linux-2.2.26/include/linux/sched.h:23,
from /usr/src/linux-2.2.26/include/linux/mm.h:4,
from /usr/src/linux-2.2.26/include/linux/slab.h:14,
from /usr/src/linux-2.2.26/include/linux/malloc.h:4,
from /usr/src/linux-2.2.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.2.26/include/asm/string.h: In function `memscan':
/usr/src/linux-2.2.26/include/asm/string.h:477: error: syntax error before "repnz"
/usr/src/linux-2.2.26/include/asm/string.h:478: error: `scasb' undeclared (first use in this function)
/usr/src/linux-2.2.26/include/asm/string.h:478: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.2.26/include/asm/string.h:478: error: for each function it appears in.)
/usr/src/linux-2.2.26/include/asm/string.h:478:21: invalid suffix "f" on integer constant
/usr/src/linux-2.2.26/include/asm/string.h:480:17: missing terminating " character
In file included from /usr/src/linux-2.2.26/include/linux/sched.h:23,
from /usr/src/linux-2.2.26/include/linux/mm.h:4,
from /usr/src/linux-2.2.26/include/linux/slab.h:14,
from /usr/src/linux-2.2.26/include/linux/malloc.h:4,
from /usr/src/linux-2.2.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.2.26/include/linux/signal.h: In function `siginitset':
/usr/src/linux-2.2.26/include/linux/signal.h:193: warning: deprecated use of label at end of compound statement
/usr/src/linux-2.2.26/include/linux/signal.h: In function `siginitsetinv':
/usr/src/linux-2.2.26/include/linux/signal.h:205: warning: deprecated use of label at end of compound statement
In file included from /usr/src/linux-2.2.26/include/linux/blkdev.h:6,
from /usr/src/linux-2.2.26/include/linux/blk.h:4,
from init/main.c:23:
/usr/src/linux-2.2.26/include/linux/genhd.h: In function `ptype':
/usr/src/linux-2.2.26/include/linux/genhd.h:83: warning: deprecated use of label at end of compound statement
init/main.c:251:8: warning: extra tokens at end of #endif directive
init/main.c:255:8: warning: extra tokens at end of #endif directive
init/main.c:258:8: warning: extra tokens at end of #endif directive
init/main.c:261:8: warning: extra tokens at end of #endif directive
init/main.c:264:8: warning: extra tokens at end of #endif directive
init/main.c:267:8: warning: extra tokens at end of #endif directive
init/main.c:270:8: warning: extra tokens at end of #endif directive
init/main.c:273:8: warning: extra tokens at end of #endif directive
init/main.c:276:8: warning: extra tokens at end of #endif directive
init/main.c:279:8: warning: extra tokens at end of #endif directive
init/main.c:282:8: warning: extra tokens at end of #endif directive
init/main.c:285:8: warning: extra tokens at end of #endif directive
init/main.c:294:8: warning: extra tokens at end of #endif directive
init/main.c:892:8: warning: extra tokens at end of #endif directive
init/main.c:895:8: warning: extra tokens at end of #endif directive
init/main.c:898:8: warning: extra tokens at end of #endif directive
init/main.c:901:8: warning: extra tokens at end of #endif directive
init/main.c:904:8: warning: extra tokens at end of #endif directive
init/main.c:907:8: warning: extra tokens at end of #endif directive
init/main.c:910:8: warning: extra tokens at end of #endif directive
init/main.c:913:8: warning: extra tokens at end of #endif directive
init/main.c:916:8: warning: extra tokens at end of #endif directive
init/main.c:919:8: warning: extra tokens at end of #endif directive
init/main.c:922:8: warning: extra tokens at end of #endif directive
make: *** [init/main.o] Error 1

-----------------------


Can anyone please let me know the steps I have to follow to overcome this problem

thanks
aruran
 
Old 08-06-2005, 04:49 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
What version of GCC are you using?
 
Old 08-06-2005, 07:56 PM   #3
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
2.2.26 is practically ancient, why are you trying to go back that far?
 
  


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 while compiling kernel jeffreybluml Linux - Newbie 11 06-10-2004 02:32 PM
Error in compiling kernel solitarygod Linux - General 2 06-03-2004 12:29 AM
error compiling kernel trutnev Red Hat 0 04-21-2004 04:51 AM
error after compiling kernel fietzbellen Slackware 2 02-26-2004 04:00 PM
Kernel 2.4.23 compiling error vincebs Red Hat 4 12-14-2003 02:57 AM

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

All times are GMT -5. The time now is 09:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration