Help with gcc-4.4.0
Austin Foxley
austinf at cetoncorp.com
Thu Apr 23 21:29:05 UTC 2009
Stephan Raue wrote:
> /home/stephan/projects/OpenELEC/build.OpenELEC.i386.uClibc/toolchain/lib/gcc/i686-linux-uclibc/4.4.0/../../../../i686-linux-uclibc/lib/libstdc++.so:
> undefined reference to `___tls_get_addr'
>
> what must i do?
What this means is you are compiling code that is using variables marked with __thread, which gcc will generate accesses to by calling ___tls_get_addr ( the three leading underscore version is an x86 only TLS ABI function).
I'm fairly sure the main branch of uClibc does not have support for __thread in shared libraries. That work is being done on the NPTL branch which hasn't been merged.
Unless you are up for trying in-progress/broken code, for now I would find and disable the code that is using __thread in your application.
-Austin
More information about the uClibc
mailing list