How to debug "TLS transition from R_X86_64_TLSGD to R_X86_64_GOTTPOFF failed"

Antoine Pitrou antoine@python.org
Tue Jan 15 19:11:00 GMT 2019


Hello,

I'm getting this error when trying to compile our C++ project on Ubuntu 16.04
(with gcc 5.4.0 and GNU ld):

/usr/bin/ld: /home/travis/build/pitrou/arrow/cpp-toolchain/lib/libprotobuf.a(common.o): TLS transition from R_X86_64_TLSGD to R_X86_64_GOTTPOFF against `_ZSt15__once_callable' at 0x38e in section `.text' failed
/home/travis/build/pitrou/arrow/cpp-toolchain/lib/libprotobuf.a: error adding symbols: Bad value

(full log: https://travis-ci.org/pitrou/arrow/jobs/480030097#L1498)

The binutils version is 2.26.1-1ubuntu1~16.04.7 (on x86-64).

It might be a problem in our build chain, but I don't know where to start to
look for issues.  Would anyone have any clue to help me?

(if this list is not for user questions, is there an appropriate support channel?)

Best regards

Antoine.



More information about the Binutils mailing list