LinuxQuestions.org
Visit Jeremy's Blog.
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 03-02-2005, 11:52 AM   #1
2mk-master
LQ Newbie
 
Registered: Feb 2005
Location: Pointe-Noire (Congo)
Posts: 8

Rep: Reputation: 0
make bzImage - error with kernel 2.4.26


hi !
somebody can help
i've gcc-3.3.3 and kernel 2.4.26
when i use "make bzImage" :


gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/home/verone/byld/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
. scripts/mkversion > .tmpversion
gcc -D__KERNEL__ -I/home/verone/byld/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DUTS_MACHINE='"i386"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
gcc -D__KERNEL__ -I/home/verone/byld/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=do_mounts -c -o init/do_mounts.o init/do_mounts.c
make CFLAGS="-D__KERNEL__ -I/home/verone/byld/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 " -C kernel
make[1]: Entering directory `/home/verone/byld/linux/kernel'
make all_targets
make[2]: Entering directory `/home/verone/byld/linux/kernel'
gcc -D__KERNEL__ -I/home/verone/byld/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o sched.o sched.c
sched.c:213: error: conflicting types for `reschedule_idle'
sched.c:210: error: previous declaration of `reschedule_idle'
sched.c:371: error: conflicting types for `wake_up_process'
/home/verone/byld/linux/include/linux/sched.h:603: error: previous declaration of `wake_up_process'
sched.c:409: error: conflicting types for `schedule_timeout'
/home/verone/byld/linux/include/linux/sched.h:148: error: previous declaration of `schedule_timeout'
sched.c:739: error: conflicting types for `__wake_up'
/home/verone/byld/linux/include/linux/sched.h:595: error: previous declaration of `__wake_up'
sched.c:749: error: conflicting types for `__wake_up_sync'
/home/verone/byld/linux/include/linux/sched.h:596: error: previous declaration of `__wake_up_sync'
sched.c:759: error: conflicting types for `complete'
/home/verone/byld/linux/include/linux/completion.h:31: error: previous declaration of `complete'
sched.c:769: error: conflicting types for `wait_for_completion'
/home/verone/byld/linux/include/linux/completion.h:30: error: previous declaration of `wait_for_completion'
sched.c:804: error: conflicting types for `interruptible_sleep_on'
/home/verone/byld/linux/include/linux/sched.h:600: error: previous declaration of `interruptible_sleep_on'
sched.c:815: error: conflicting types for `interruptible_sleep_on_timeout'
/home/verone/byld/linux/include/linux/sched.h:601: error: previous declaration of `interruptible_sleep_on_timeout'
sched.c:828: error: conflicting types for `sleep_on'
/home/verone/byld/linux/include/linux/sched.h:597: error: previous declaration of `sleep_on'
sched.c:839: error: conflicting types for `sleep_on_timeout'
/home/verone/byld/linux/include/linux/sched.h:598: error: previous declaration of `sleep_on_timeout'
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/home/verone/byld/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/home/verone/byld/linux/kernel'
make: *** [_dir_kernel] Error 2



why ?
 
Old 03-02-2005, 12:40 PM   #2
scuffell
Member
 
Registered: Jun 2004
Location: Reading, UK
Distribution: SUSE 9.1, SUSE 9.2, SUSE 9.3, Knoppix 3.8, Gentoo 2005.0, cygwn, colinux
Posts: 100

Rep: Reputation: 15
Try using a later version of kernel 2.4: current version is 2.4.29 (www.kernel.org). If that doesn't work, your gcc is quite old as well, so might be worth upgrading to latest version (3.4.3) (http://gcc.gnu.org)
 
Old 03-02-2005, 03:28 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
actually the kernel developers insist that
GCC-2.95.3 is the proper compiler for compiling the 2.4.x series kernels
so upgrading your compiler will put you further away not closer to the solution i bet

is it possible to have multiple compilers on your system if you are carefull
see
"Beyond Linux From Scratch" book i think
i think book 5.1 or whatever tha oldest 5.x series is would be the right one for you
about building 2.95.3 if you want

i know gcc 3.3.1 will compile linux-2.4.22 i did that once
so if version isn't important try 2.4.22

also make sure in your kernel config you didn't choose
"prompt for experimental broken stuff that won't compile"
or whatever it says to that effect.
that's a showstopper every time
 
  


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
Error during make bzImage Sid2004 Linux - Newbie 1 10-25-2004 01:38 PM
Kernel make bzImage error "undefined reference" w/ Prism2.5 USB driver under 2.6 joachimvb Mandriva 1 09-24-2004 07:43 PM
Error with make bzImage abefroman Slackware 1 04-26-2004 09:02 AM
Error recompiling kernel 2.4.22 (Make bzImage) Spislander Debian 7 12-26-2003 12:03 AM

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

All times are GMT -5. The time now is 10:25 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
Open Source Consulting | Domain Registration