LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-09-2007, 06:55 AM   #1
hannu_h
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
Question Thread local support for ARM


I'm developing software for AT91RM9200 CPU using a crosstool (0.43) generated build environment.

Crosstool itself appears to work fine, but I have not been able to get support for thread local variables working.

Compilation of "__thread int variable;" goes wrong as described below

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Building file: ../src/ARM_Test2.c
Invoking: GCC C Compiler
/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-9tdmi-linux-gnu/bin/arm-9tdmi-linux-gnu-gcc -O0 -g3 -Wall -c -fmessage-length=0 -pthread -MMD -MP -MF"src/ARM_Test2.d" -MT"src/ARM_Test2.d" -o"src/ARM_Test2.o" "../src/ARM_Test2.c"
../src/ARM_Test2.c:16: error: thread-local storage not supported for this target
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Content of "arm-9tdmi-linux-gnu.crosstoolconfig.txt", which to my understanding should contain necessary switches for TLS.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
AR=
BINUTILS_DIR=binutils-2.16.1
BINUTILS_EXTRA_CONFIG=
BUILD=i686-pc-linux-gnu
BUILD_DIR=/home/hannu/XBuild/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2
CC=
DEJAGNU=
EXTRA_TARGET_CFLAGS=
GCC_BUILD=
GCC_CORE_DIR=gcc-3.3.6
GCC_DIR=gcc-4.1.0
GCC_EXTRA_CONFIG=--with-cpu=arm9tdmi --enable-cxx-flags=-mcpu=arm9tdmi
GCC_HOST=
GCC_LANGUAGES=c,c++
GDB_DIR=gdb-6.5
GLIBC_ADDON_OPTIONS==linuxthreads,
GLIBC_DIR=glibc-2.3.2
GLIBC_EXTRA_CC_ARGS=
GLIBC_EXTRA_CONFIG= --with-tls --with-__thread --enable-kernel=2.4.18
GLIBC_EXTRA_ENV=
JUST_DOWNLOAD=
KERNELCONFIG=/home/hannu/XBuild/crosstool-0.43/arm.config
LINUX_DIR=linux-2.6.15.4
LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0
NO_DOWNLOAD=
PREFIX=/opt/crosstool/gcc-4.1.0-glibc-2.3.2/arm-9tdmi-linux-gnu
PTXDIST_DIR=
SHARED_MODE=--enable-shared
SRC_DIR=/home/hannu/XBuild/crosstool-0.43/build/arm-9tdmi-linux-gnu/gcc-4.1.0-glibc-2.3.2
TARBALLS_DIR=/home/hannu/downloads
TARGET=arm-9tdmi-linux-gnu
TARGET_CFLAGS=-O
TOP_DIR=/home/hannu/XBuild/crosstool-0.43
USE_SYSROOT=
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Suggestions where to look next would be appreciated

--Hannu
 
Old 12-09-2007, 03:00 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
From what I know you need binutils-2.16.90 or newer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Arm/Samsung usb support prongs_386 Linux - Hardware 3 07-25-2007 03:23 AM
LXer: Lineo Adds Sourcery To Strengthen Support For ARM Platform LXer Syndicated Linux News 0 11-15-2006 02:03 PM
LXer: Atmel adds Linux support to ARM processors LXer Syndicated Linux News 0 05-05-2006 03:21 AM
kernel too old for thread-local storage support yull Linux - General 0 04-14-2006 07:37 AM
What distros of Linux support ARM? new-2-linux Linux - Hardware 3 04-08-2006 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration