I have following error while building glibc (git commit
c044aa75354b48d4b7aaffe465706282192e54c2):
...
: /x/glibc/build/obj/libc_nonshared.a
gcc -nostdlib -nostartfiles -r -o /x/glibc/build/obj/libc_pic.os \
-Wl,-d -Wl,--whole-archive /x/glibc/build/obj/libc_pic.a
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.2/../../../../x86_64-unknown-linux-gnu/bin/ld:
__libc_errno: TLS definition in
/x/glibc/build/obj/libc_pic.a(errno.os) section .tbss mismatches
non-TLS reference in /x/glibc/build/obj/libc_pic.a(fork.os)
/x/glibc/build/obj/libc_pic.a(fork.os): could not read symbols: Bad value
collect2: ld returned 1 exit status
Makerules:613: recipe for target `/x/glibc/build/obj/libc_pic.os' failed
make[2]: *** [/x/glibc/build/obj/libc_pic.os] Error 1
make[2]: Leaving directory `/x/glibc/build/src'
Makefile:12: recipe for target `all' failed
make[1]: *** [all] Error 2
Can anybody help to understand what the problem ?
full build log is attached.
Thanks in advance.