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]

Re: Link error libstdc++.so: undefined reference to `___tls_get_addr'


On Wed, Dec 15, 2010 at 2:56 AM, William Wagner
<will_wagner@carallon.com> wrote:
> Hello,
>
> I have built a i686 toolchain with crosstools 1.9.1. It consists of binutils
> 2.20.1, gcc 4.4.4, uClibc 0.9.30.3 (configs attached)
>
> The toolchain builds fine but when I try to link a c++ application I get an
> undefined reference to ___tls_get_addr
>
> As I understand it uClibc using linuxthreads (which I am using) does not
> support tls so gcc should have been built with --disable-tls
>
> Looking through gcc.sh I can not see an option to disable tls, am I missing
> something?
>
> Does anyone have a working x86 + uClibc + C++ config working I could use?
>
> I can post the build log somewhere if it would be useful.
>
> Thanks
> Will
>
> --
> ------------------------------------------------------------------------
> Will Wagner                   will_wagner@carallon.com
> Development Manager           ÂOffice Tel: +44 (0)20 7371 2032
> Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
> ------------------------------------------------------------------------
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>

It would be nice to see the build log. Could you post it to pastebin.com?

It seems strange that the toolchain builds correctly, but fails to
build c++ applications. As when you build gdb, it builds ncurses which
does build some c++ stuff. And that worked...

-Bryan

--
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]