LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make bzImage - error with kernel 2.4.26 (http://www.linuxquestions.org/questions/linux-newbie-8/make-bzimage-error-with-kernel-2-4-26-a-296753/)

2mk-master 03-02-2005 12:52 PM

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 ?

scuffell 03-02-2005 01:40 PM

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)

foo_bar_foo 03-02-2005 04:28 PM

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


All times are GMT -5. The time now is 05:21 PM.