arm gnueabi problem with tls.

Steven Newbury
Sun Apr 9 19:49:00 GMT 2006

--- Steve Papacharalambous <> wrote:

> Hi,
> I'm trying to build an arm-linux-gnueabi toolchain using:
> binutils-2.16.1
> gcc-4.1.0
> linux- kernel headers
> glibc-2.4
> glibc-ports-2.4
> I applied the patches posted by Khem Raj to crosstool-0.42: 
> 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 
> --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?
I've been pulled away by other priorities but have a look at my earlier posts
to crossgcc.  I'll get back to looking at this as soon as I can.  Maybe we'll
get further than I have alone.


Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo

For unsubscribe information see

More information about the crossgcc mailing list