This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problems during kernel compilation with new gcc3.0


Hi,

I was trying to compile a 2.4.5 Linux kernel with the the GCC3.0 Suite and
got the following :
gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686  -DUTS_MACHINE='"i386"' -c -o
init/version.o init/version.c
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 " -C  kernel
make[1]: Entering directory `/usr/src/linux-2.4.5/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.5/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686    -c -o timer.o timer.c
make[2]: Leaving directory `/usr/src/linux-2.4.5/kernel'
make[1]: Leaving directory `/usr/src/linux-2.4.5/kernel'
timer.c:35: conflicting types for 'xtime'
/usr/src/linux-2.4.5/include/linux/sched.h:540: previous declaration of
'xtime'

... and that's it. He seems to be annoyed by the "volatile" keyword.
Does anybody know how to fix that problem - I suppose it's just some kind of
config problem ...

Thanx a lot !!!

Ernesto

-- 
Ernesto Zimmermann
C/ Besos 15, Atico 3a
08035 Barcelona
telefono : +34 93 42 06 280
movil : +34 651 38 51 25
email : ernesto_z@gmx.de, ernesto_z@yahoo.com

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

--
GMX Tipp:

Der zweitgroesste Lotto-Jackpot aller Zeiten: 36 Mio. DM suchen einen
Gewinner!
Jetzt online tippen und nebenbei noch eine Reise nach Las Vegas gewinnen!
http://www.get1.de/gmx-gewinnspiel2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]