Bug 14528 - Problem compiling linux 2.6.31.5
Summary: Problem compiling linux 2.6.31.5
Status: CLOSED DOCUMENTED
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 02:35 UTC by Pierre
Modified: 2012-06-14 16:41 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.31.5
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Pierre 2009-11-02 02:35:55 UTC
[...]
  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
Comment 1 Randy Dunlap 2009-11-02 16:59:19 UTC
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?
Comment 2 Pierre 2009-11-02 22:27:46 UTC
I took the full tarball from the kernel.org website, and just did a make config && make
Comment 3 Randy Dunlap 2009-11-02 22:30:47 UTC
ok, please post your .config file.
Comment 4 Randy Dunlap 2009-11-02 22:42:18 UTC
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?
Comment 5 Pierre 2009-11-02 23:45:38 UTC
I have glibc 2.2.5

So I suspect this is the problem here...
Comment 6 Pierre 2009-11-03 11:14:50 UTC
I succeed to upgrade to glibc 2.10 and now it compiles fine.

Note You need to log in before you can comment on or make changes to this bug.