[uClinux-dev] Gcc 3.0.x and uClinux 2.0.x

Fabrice Gautier Fabrice_Gautier at sdesigns.com
Mon Nov 12 20:38:11 EST 2001


When i try to compile any uClinux-2.0.x kernel with gcc-3.0.2 it fails in

I got a few warning about implicit declaration of builtins function like
abort, memset etc... and then an error message:

sched.c: At top level:
sched.c:57: conflicting types for `xtime'
previous declaration of `xtime'

xtime in declared as "extern struct timeval xtime;" in sched.h but defined
as "volatile struct timeval xtime;" in sched.c.

Adding "volatile" in the extern declaration fix the error, but i don't know
how to fix all the warnings about implicit declarations.

And anyway, i get another error in "include/linux/symtab_end.h":
symtab_end.h:13: initialization of zero-length array before end of structure
symtab_end.h:13: (near initialization for `procfs_syms.symbol')

Bah, anyway I guess linux 2.0.x has never been designed to be compiled with
gcc 3.x. But at least there's a message in the archive about it now....


Fabrice Gautier
Software Engineer, Sigma Designs
Fabrice_Gautier at sdesigns.com

This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/

More information about the uClinux-dev mailing list