glibc TLS (Thread-Local Storage) support is not available on SLES10-rc1 PPC
Hello, When compiling the glibc on ppc64 (Power5) (SLES9 or SLES10), TLS (Thread-Local Storage) support is not available. (See details below). Can you help understanding the problem ? Thanks, Tony When being in the directory where are the source code of the glibc. Example here below: 2.4 (Same problem with 2.3.4 and 2.3.6 .) $ ./configure --enable-add-ons=nptl --with-tls --with-__thread .... checking for powerpc64 TLS support... no .... $ make .... #error "TLS support is required." Test for TLS support is done by the sysdeps/powerpc/powerpc64/elf/configure script of the glibc. $ cat config.log .... configure:7: checking for powerpc64 TLS support configure:52: gcc -c -g -O2 conftest.s 1>&5 conftest.s: Assembler messages: conftest.s:18: Error: syntax error; found `@' but expected `,' conftest.s:18: Error: junk at end of line: `@toc' conftest.s:24: Error: syntax error; found `@' but expected `,' conftest.s:24: Error: junk at end of line: `@toc' conftest.s:33: Error: syntax error; found `@' but expected `(' conftest.s:33: Error: junk at end of line: `@toc(2)' configure:55: $? = 1 configure:63: result: no ....
On Mon, Jun 19, Tony Reix wrote:
When compiling the glibc on ppc64 (Power5) (SLES9 or SLES10), TLS (Thread-Local Storage) support is not available. (See details below).
Can you help understanding the problem ?
When being in the directory where are the source code of the glibc. Example here below: 2.4 (Same problem with 2.3.4 and 2.3.6 .)
$ ./configure --enable-add-ons=nptl --with-tls --with-__thread .... checking for powerpc64 TLS support... no
configure uses uname -m to make assumptions about what code gcc will generate. But this kind of guessing does not work on ppc and sparc because the gcc defaults to 32bit output. Either use 'powerpc32 ./configure ...' to fool configure and build a 32bit glibc. Or use 'CC='gcc -m64 ./configure ...' to tell gcc to generate 64bit code. You will need some of the -devel-64bit.rpm packages for 64bit libraries.
participants (2)
-
Olaf Hering
-
Tony Reix