[klibc] A few questions

Bryan O'Sullivan bos at serpentine.com
Fri Apr 25 23:56:08 PDT 2003


On Fri, 2003-04-25 at 21:41, H. Peter Anvin wrote:

> What compiler are you using, and what other info?  I've heard this from 
> gregkh too, and I can't reproduce it.

I'm using RH9, hence Red Hat's gcc 3.2.2 and binutils:

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

2.5.68 is tagged straight out of BK, with Andrew's mm2 patch applied on
top.  The latter doesn't seem to affect the result, though.

> There is a cvs repo on kernel.org you can download via rsync.

Ah.  I see it's been updated - the March 4 cvsroot snapshot was in some
kind of bizarre shape.

Thanks for pushing out 0.80; it doesn't seem to have changed anything,
though.  I've attached the complaints from the compiler.  I'll see if I
can get a fix together this weekend.

	<b
-------------- next part --------------
make[1]: Entering directory `/usr/local/src/linux/klibc-0.80/klibc'
gcc -Wp,-MD,./.__static_init.d  -march=i386 -Os -fomit-frame-pointer -malign-functions=0 -malign-jumps=0 -malign-loops=0  -nostdinc -iwithprefix include -I../klibc -I../klibc/arch/i386/include -I../klibc/include/bits32 -D__KLIBC__ -DBITSIZE=32 -I../klibc/include -I../linux/include -W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c -o __static_init.o __static_init.c
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from ../linux/include/asm/elf.h:11,
                 from ../linux/include/linux/elf.h:5,
                 from ../klibc/include/elf.h:9,
                 from __static_init.c:19:
../linux/include/asm/system.h:281: parse error before "u8"
../linux/include/asm/system.h:281: warning: no semicolon at end of struct or union
../linux/include/asm/system.h:282: warning: type defaults to `int' in declaration of `cpuid'
../linux/include/asm/system.h:282: `cpuid' redeclared as different kind of symbol
../linux/include/asm/processor.h:127: previous declaration of `cpuid'
../linux/include/asm/system.h:282: warning: data definition has no type or storage class
../linux/include/asm/system.h:283: parse error before "instrlen"
../linux/include/asm/system.h:283: warning: type defaults to `int' in declaration of `instrlen'
../linux/include/asm/system.h:283: warning: data definition has no type or storage class
../linux/include/asm/system.h:284: parse error before "replacementlen"
../linux/include/asm/system.h:284: warning: type defaults to `int' in declaration of `replacementlen'
../linux/include/asm/system.h:284: warning: data definition has no type or storage class
../linux/include/asm/system.h:285: parse error before "replacement"
../linux/include/asm/system.h:285: warning: type defaults to `int' in declaration of `replacement'
../linux/include/asm/system.h:285: warning: data definition has no type or storage class
../linux/include/asm/system.h:286: parse error before '}' token
../linux/include/asm/processor.h:127: warning: `cpuid' defined but not used
make[1]: *** [__static_init.o] Error 1
make[1]: Leaving directory `/usr/local/src/linux/klibc-0.80/klibc'
make: *** [all] Error 2


More information about the klibc mailing list