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

H.J. Lu hjl.tools@gmail.com
Tue Jan 15 19:25:00 GMT 2019


On Tue, Jan 15, 2019 at 11:11 AM Antoine Pitrou <antoine@python.org> wrote:
>
>
> 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).
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is a very ancient binutils. Please try binutils 2.31.

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



-- 
H.J.



More information about the Binutils mailing list