Building glibc-nptl-linux2.6 on a non-tls host

Sylvain BERTRAND xod@mail15.com
Mon Aug 25 06:52:00 GMT 2003


Hi,
I try to build a native CVS glibc(19/08/2003) with TLS, NPTL(tarball 
v0.56) and linux 2.6-test3 headers.
I use gcc 3.3.1 and the CVS binutils 2.14.90(21/08/2003), my system is 
i686-pc-linux-gnu, glibc 2.3.2(no-TLS), linux 2.4.21-rc1 and basic GNU 
toolchain based.

When compiling the sunrpc directory it stops when running the rpcgen 
program with the just compiled ld-linux.so.2 linux loader, complaining 
that it was not able to initialize TLS:

CPP='gcc -E -x c-header'  
/home/sylvain/new-distro/objdir/elf/ld-linux.so.2 --library-path 
/home/sylvain/new-distro/objdir:/home/sylvain/new-distro/objdir/math:/home/sylvain/new-distro/objdir/elf:/home/sylvain/new-distro/objdir/dlfcn:/home/sylvain/new-distro/objdir/nss:/home/sylvain/new-distro/objdir/nis:/home/sylvain/new-distro/objdir/rt:/home/sylvain/new-distro/objdir/resolv:/home/sylvain/new-distro/objdir/crypt:/home/sylvain/new-distro/objdir/nptl 
/home/sylvain/new-distro/objdir/sunrpc/rpcgen -Y ../scripts -c 
rpcsvc/bootparam_prot.x -o 
/home/sylvain/new-distro/objdir/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting 
up thread-local storage


Must I need a TLS enabled system to compile glibc+TLS+NPTL+linux2.6 or 
do I miss something(kind of cross compiling from i686-pc-linux-gnu-notls 
to i686-pc-linux-gnu-tls)?

Sylvain



More information about the Libc-alpha mailing list