LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   kernel build from gcc 3.3.2 to gcc 3.4.1 (https://www.linuxquestions.org/questions/linux-software-2/kernel-build-from-gcc-3-3-2-to-gcc-3-4-1-a-230029/)

alcarbone 09-13-2004 08:08 AM

kernel build from gcc 3.3.2 to gcc 3.4.1
 
hello everybody,

i am running a kernel 2.4.26 on my Pentium II ... i was using my favorite gnome gcc 3.3.2
with a glibc 2.3.2, trying to follow the evolution of the desktop gnome 2.6, 2.7, ... 2.8 (soon) !

once, i decided to build and use the next generation of gcc aka 3.4.1 ! no problem to build and install this new compiler ! but since this time, i'm not able to build my kernel anymore :mad: :study: :confused:

the following is the problem reported by the link editor :

gcc -D__KERNEL__ -I/home/builds/gnome/linux-2.4.26/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
In file included from /home/builds/gnome/linux-2.4.26/include/linux/sched.h:23,
from /home/builds/gnome/linux-2.4.26/include/linux/mm.h:4,
from /home/builds/gnome/linux-2.4.26/include/linux/slab.h:14,
from /home/builds/gnome/linux-2.4.26/include/linux/proc_fs.h:5,
from init/main.c:15:
/home/builds/gnome/linux-2.4.26/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/home/builds/gnome/linux-2.4.26/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
/home/builds/gnome/linux-2.4.26/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/home/builds/gnome/linux-2.4.26/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
In file included from /home/builds/gnome/linux-2.4.26/include/linux/unistd.h:9,
from init/main.c:17:
/home/builds/gnome/linux-2.4.26/include/asm/unistd.h:375: warning: conflicting types for built-in function '_exit'
make: *** [init/main.o] Error 1


some of the standard header files may have changed ???
may somebody help ?

huibert.alblas 09-13-2004 08:19 AM

Building Kernel with gcc other than 2.05
 
Hi,

AFAIK the only valid gcc for building the kernel is 2.95

The docs says it can be done with the newer once,
but it must not nececarily work.

I don't know about your settup,
but under debian it is no problem to have have several gcc versions installed simultantiously.
Then you can selext the gcc to use before you compile the kernel.

(I think it is with "update-allternatives"


All times are GMT -5. The time now is 03:25 AM.