[PATCH] Updated NPTL toolchain patch...

Jean-Christophe Dubois jdubois@mc.com
Mon Apr 4 14:28:00 GMT 2005


Hi,

Thanks a lot for the patch.

I tried the provided patch and manage to get a (NPTL enabled) cross
compiler for linux/PPC32 using an linux/i686 host. I didn't really
tested the resulting crosstool chain yet but at least everything
compiled without trouble once I fixed the crosstool.sh script (there is
a little trouble around the pthreadtypes.h file for powerpc [at least
with glibc 2.3.3/2.3.4]. patch file attached)

Now this is a huge step and I almost could now use crosstool instead of
a custom shell script I hacked together some time ago.

Unfortunately it is not yet the final solution I am really looking for
as I need my host to be a Sparc Solaris 2.8 platform (I know, what a
strange idea). But when run on Sparc Solaris (trying to generate a cross
compiler for Linux/PPC) the scripts stops short when configuring glibc
(startfiles step).

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
output on screen
================

running configure fragment for sysdeps/powerpc/powerpc32/elf
checking for powerpc32 TLS support... yes
running configure fragment for nptl/sysdeps/unix/sysv/linux
running configure fragment for nptl/sysdeps/pthread
configure: error: compiler support for __thread is required

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
output in config.log in build-glibc-startfiles
==============================================

configure:6503: checking for __thread
configure:6512: powerpc-7400-linux-gnu-gcc  -O  -c conftest.c >&5
conftest.c:1: error: thread-local storage not supported for this target
configure:6515: $? = 1
configure:6523: result: no

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

basically, on solaris/sparc host, the gcc bootstrap crosscompiler seems
unable to handle the __thread keyword and this is very needed for
NPTL/TLS.

For now I am just puzzled why the same script succeed to generate the
right crosscompiler on Linux/ix86 host but fail to do so on
Solaris/sparc platform. The crosscompiler is generated but does not
support the right feature (aka __thread keyword).

Would anybody have a clue how to unleash the __thread support for my
bootstrap compiler on solaris/sparc (or is it at all possible)? Looking
for clues on google and co has not been very helpful so far ...

Thanks

JC


On Mon, 2005-04-04 at 16:56 +1000, Ryan.Oliver@pha.com.au wrote:
> 
> 
> 
> 
> Arno Schuring wrote:
> >
> >Then kudos to the original author :)
> >
> 
> Thanks :-)
> 
> And also apologies, I've been asleep at the wheel and should
> have been keeping it up to date (not enough hours in a day) :-/
> 
>  Regards
> [R]
> 
> 
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crosstool-0.30.patch
Type: text/x-patch
Size: 10303 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20050404/8ea66782/attachment.bin>
-------------- next part --------------
------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


More information about the crossgcc mailing list