[PATCH] Updated NPTL toolchain patch...

Jean-Christophe Dubois jdubois@mc.com
Tue Apr 5 13:19:00 GMT 2005


On Tue, 2005-04-05 at 10:41 +1000, Ryan.Oliver@pha.com.au wrote:
> 
> Jean-Christophe Dubois wrote:
> <SNIP>
> >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
> 
> One question, were you using a vanilla sunfreeware compiler to do the
> build with?

Yes, I am using some sunfreeware packages (binutils, gcc, wget, perl,
sed, grep , ...) to make my Solaris system behave more like an OSS
system (assuming I set the path correctly). You have to with all the
Linux/OSS specific stuff in there ... This seem a bit stupid but I am
required to work with Solaris (for now).

> If so, build a native sun-sparc-solaris2.x GNU binutils (2.15) and
> a native sun-sparc-solaris2.x gcc to the same prefix somewhere on your
> system (homedir) and use this toolchain to build your cross-toolchain.

Yes, I could try this. I am using the sunfreeware stuff for convenience
because I want to avoid to have to rebuild a full OSS environment all by
myself. 

However, it seems I found another way to have the overall crosstool.sh
script to succeed on my system. For all "gcc" configure phase (3 places
in the crosstool script), I am "forcing" the as/ld binaries to use the
following way (patch attached).

        --with-gnu-as \
        --with-as=${PREFIX}/bin/${TARGET}-as \
        --with-gnu-ld \
        --with-ld=${PREFIX}/bin/${TARGET}-ld \

Without this it looks like somewhere the wrong assembler or linker is
chosen (on solaris) by the generated cross-compilers. Does this look bad
or acceptable? How do you feel about it?

This allows the script to complete successfully on Solaris (and I guess
on any other platform). I still have to test the resulting tool chain
though.

JC

> This probably wont be your only issue, you will probably also want to
> build a few GNU utilities (sed, grep, gawk, some of coreutils) to use
> instead of the sun supplied ones...
> 
> HTH
>  Regards
> Ryan
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crosstool-0.30.patch
Type: text/x-patch
Size: 11016 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20050405/4420498f/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