Bug#419508: /usr/bin/ld: errno: TLS definition in /lib32/libc.so.6 section .tbss mismatches non-TLS definition in /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libc.a(errno.o) section .bss
Package: g++
Version: 4.1.1-15
When compiling a simple C++ file on x86_64 for the i386 architecture
using -export-dynamic, I got this error:
$ g++ -m32 -export-dynamic -o test test.cpp
/usr/bin/ld: errno: TLS definition in /lib32/libc.so.6 section .tbss mismatches non-TLS definition in /usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../lib32/libc.a(errno.o) section .bss
/lib32/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
After installing libc6-dev-i386, the error went away.
I'm not really sure how to handle this problem (maybe a
package-dependency). I just wanted to file it here.
- twisti
Reply to: