Re: GDB 9.1 Fails to Build on Cygwin

Hannes Domani via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel,gmane.comp.gdb.general
Message-ID <[email protected]>
 Am Mittwoch, 25. März 2020, 20:01:06 MEZ hat Joel Sherrill <[email protected]> Folgendes geschrieben:

> Hi
>
> Over at RTEMS, we are seeing gdb 9.1 fail to build arm-eabi and fail with
> this:
>
> CXXLD  gdb.exe
> cp-support.o:/desk/b-arm-eabi-bin/gdb/../../gdb-9.1/gdb/cp-support.c:2212:(.text+0x1bf6):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS
> init function for thread_local_segv_handler'
> cp-support.o:/desk/b-arm-eabi-bin/gdb/../../gdb-9.1/gdb/cp-support.c:2212:(.text+0x1c00):
> relocation truncated to fit: R_X86_64_PC32 against undefined symbol `TLS
> init function for thread_local_segv_handler'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:1908: gdb.exe] Error 1
> make[2]: Leaving directory '/desk/b-arm-eabi-bin/gdb'
> make[1]: *** [Makefile:9567: all-gdb] Error 2
> make[1]: Leaving directory '/desk/b-arm-eabi-bin'
> make: *** [Makefile:855: all] Error 2
>
> gdb 8.0.1 builds OK.
>
> Does anyone have any ideas how to solve this?

This looks very much like gcc bug 64697:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64697

And 8.0.1 didn't use thread_local yet (9.1 is the first version that uses it).


Regards
Hannes Domani
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.