[...] CC arch/x86/boot/edd.o VOFFSET arch/x86/boot/voffset.h LDS arch/x86/boot/compressed/vmlinux.lds AS arch/x86/boot/compressed/head_32.o CC arch/x86/boot/compressed/misc.o OBJCOPY arch/x86/boot/compressed/vmlinux.bin HOSTCC arch/x86/boot/compressed/relocs arch/x86/boot/compressed/relocs.c: In function `sym_type': arch/x86/boot/compressed/relocs.c:73: error: `STT_TLS' undeclared (first use in this function) arch/x86/boot/compressed/relocs.c:73: error: (Each undeclared identifier is reported only once arch/x86/boot/compressed/relocs.c:73: error: for each function it appears in.) arch/x86/boot/compressed/relocs.c:73: error: nonconstant array index in initializer arch/x86/boot/compressed/relocs.c:73: error: (near initialization for `type_name') make[2]: *** [arch/x86/boot/compressed/relocs] Error 1 make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2 make: *** [bzImage] Error 2
how do you cause this to happen? I can't make it fail. And are you testing the stable kernel git tree, a full tarball, or a patch* file that is applied to a previous kernel?
I took the full tarball from the kernel.org website, and just did a make config && make
ok, please post your .config file.
I have glibc-devel-2.6.1-18 installed, which is what provides /usr/include/elf.h, which is where STT_TLS is #defined. What version of glibc-devel do you have installed?
I have glibc 2.2.5 So I suspect this is the problem here...
I succeed to upgrade to glibc 2.10 and now it compiles fine.