arm gnueabi problem with tls.

Steve Papacharalambous stevep@freescale.com
Wed Dec 5 22:21:00 GMT 2007


Hi Steven,

I looked at the configuration options that you used to build the core 
compiler, but couldn't see anything significantly different to those 
that I used except that I not building for iwmmxt.  Maybe this option 
supports tls?

But I cannot seem to get support for __thread when configuring the 
toolchain with a target of arm-linux-gnueabi.  I tried 
arm-none-linux-gnueabi, but this made no difference.  :-(

If I use the sources from CodeSourcery's web site, 
arm-2005q3-2-arm-none-eabi, which are based on gcc-3.4.x, with the same 
configuration options, the simple __thread test program compiles 
successfully.  I guess that this points to __thread support not being in 
gcc-4.1, but according to the gcc mailing lists this support was added 
to gcc last year?

Best regards,

Steve

Steven Newbury wrote:
> --- Steve Papacharalambous <stevep@freescale.com> wrote:
> 
> 
>>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?
>>
> 
> 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.
> 
> 
> Steve
> 
> 
> 		
> ___________________________________________________________ 
> Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo http://uk.photos.yahoo.com
> 
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
> 
> 


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list