Bug 10562 - nptl/sysdeps/x86_64/tls.h:77:3: error: #error "TLS support is required."
Summary: nptl/sysdeps/x86_64/tls.h:77:3: error: #error "TLS support is required."
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.10
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 20:55 UTC by bastl
Modified: 2014-07-01 06:59 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target:
Build: i686-pc-linux-gnu
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bastl 2009-08-25 20:55:45 UTC
Compiling glibc_64_multilib on a 32 bit system breaks with this error.
(AMD Phenom 4)
kernel-2.6.30.1
binutils-2.19.1
GCC-4.4.1
glibc-2.10.1

more of this error (-d):
----------
...
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:77:3: error: #error "TLS support is required."
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:77:3: error: #error "TLS support is required."
In file included from include/tls.h:6,
                 from sysdeps/unix/sysv/linux/x86_64/sysdep.h:26,
                 from <stdin>:1:
...
----------
32 bit system build works fine and stable ! very stable - great work!!!

It seams that the make process doesn't setup all right for this task.
Maybe there have to be some more switches too. (only guesses)
Comment 1 Ulrich Drepper 2009-08-25 21:16:02 UTC
I don't even want to know how this system looks like.  It's just not supported.
 If you want to make it work you're on your own.  Check the exact details of the
configure log.
Comment 2 bastl 2009-09-06 22:38:05 UTC
You see I did spent very much time on this problem.
So how do you imagine cross-compiling is possible? - would be nice to read 
this in the INSTALL file - there is a little error at the moment, maybe you 
want to talk to the gcc development that they support your wish how it should 
work. Or better gcc-src-package uses the glibc-src-package to compile both at 
the same time for those cross tasks.
CLFS and others can't help on this problem, they also do mistakes in building 
those systems. And I think that this should be a main task for binutils, glibc 
and gcc, the kernel is ready for that task.
Maybe you think building 64 bit systems on a 32 bit system is not supported - 
but that doesn't matter which way you take. Cross is cross and the systems 
(libs) should always be separated clearly. And cross compiling 64 bit on a 32 
bit x86 system should be the main task at the moment, to get 64 bit systems at 
all.
I also think there should be some head developers for binutils, glibc and gcc 
holding the communication between these softwares and the features they want 
to implement. So better and more stable software and builds will be the 
result.