This is the mail archive of the
crossgcc@sourceware.org
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
arm gnueabi problem with tls.
- From: Steve Papacharalambous <stevep at freescale dot com>
- To: crossgcc list <crossgcc at sources dot redhat dot com>
- Date: Fri, 07 Apr 2006 11:45:43 +0100
- Subject: arm gnueabi problem with tls.
Hi,
I'm trying to build an arm-linux-gnueabi toolchain using:
binutils-2.16.1
gcc-4.1.0
linux-2.6.16.1 kernel headers
glibc-2.4
glibc-ports-2.4
I applied the patches posted by Khem Raj to crosstool-0.42:
http://sourceware.org/ml/crossgcc/2006-03/msg00090.html
The configure for build-glibc-startfiles fails with: "configure: error:
compiler support for __thread is required"
If I try to compile a simple test program: "extern __thread int i;" with
the gcc-core compiler it gives the error: "test-__thread.c:1: error:
thread-local storage not supported for this target"
The configuration for the gcc-core compiler is:
[snip]
arm-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../gcc-4.1.0/configure --target=arm-linux-gnueabi
--host=i686-host_pc-linux
--prefix=/home/stevep/work/tools/tcf/glibc-2.4-work/gcc-core-prefix
--with-local-prefix=/opt/crosstool/gcc-4.1.0-glibc-2.4/arm-linux-gnueabi/arm-linux-gnueabi
--disable-multilib --with-newlib --disable-libunwind-exceptions
--without-headers --disable-nls --enable-threads=posix
--enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c
--disable-shared --with-tls --with-__thread
Thread model: posix
gcc version 4.1.0
[/snip]
I tried different configuration combinations for gcc, but it doesn't
seem to make any differnce as I get the same error every time I try to
compile the test program. :-(
Is thread local storage supported for arm eabi targets in gcc-4.1.0, or
have I configured the core compiler incorrectly? Or is there a patch
needed to gcc?
Best regards,
Steve
--
For unsubscribe information see http://sourceware.org/lists.html#faq