This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to get x86_64 TLS support?


  ok, this one should be a piece of cake.  given the following:

x86_64.dat:
===========

TARGET=x86_64-unknown-linux-gnu
TARGET_CFLAGS="-O"
GCC_EXTRA_CONFIG="--disable-multilib"
USE_SYSROOT=1
KERNELCONFIG=`pwd`/x86_64.config

gcc-4.1.2-glibc-2.5-tls.dat:
============================

BINUTILS_DIR=binutils-2.17
GCC_DIR=gcc-4.1.2
GLIBC_DIR=glibc-2.5
LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0
GDB_DIR=gdb-6.6
GLIBC_EXTRA_CONFIG="$GLIBC_EXTRA_CONFIG --with-tls --with-__thread  --enable-kernel=2.6.0"
GLIBC_ADDON_OPTIONS="=nptl"

  when i get around to configuring/building glibc headers, i get:

...
running configure fragment for sysdeps/x86_64/elf
checking for x86-64 TLS support... no             <--------- dang!
running configure fragment for nptl/sysdeps/pthread
...

which produces numerous subsequent instances of:

...
In file included from include/tls.h:6,
                 from sysdeps/unix/sysv/linux/x86_64/sysdep.h:26,
                 from <stdin>:1:
nptl/sysdeps/x86_64/tls.h:62:3: error: #error "TLS support is required."
...

  how can i get by this?  or can i?  i'm just about to start hunting
through the config files but if someone can save me the trouble, that
would be just ducky.

rday
-- 

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]