Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB 9.1 Fails to Build on Cygwin
@ 2020-03-25 19:00 Joel Sherrill
  2020-03-25 19:27 ` Hannes Domani
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Sherrill @ 2020-03-25 19:00 UTC (permalink / raw)
  To: gdb

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?

Thanks.

--joel
RTEMS


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GDB 9.1 Fails to Build on Cygwin
  2020-03-25 19:00 GDB 9.1 Fails to Build on Cygwin Joel Sherrill
@ 2020-03-25 19:27 ` Hannes Domani
  2020-03-26 22:11   ` Jim Wilson
  0 siblings, 1 reply; 5+ messages in thread
From: Hannes Domani @ 2020-03-25 19:27 UTC (permalink / raw)
  To: gdb

 Am Mittwoch, 25. März 2020, 20:01:06 MEZ hat Joel Sherrill <joel@rtems.org> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GDB 9.1 Fails to Build on Cygwin
  2020-03-25 19:27 ` Hannes Domani
@ 2020-03-26 22:11   ` Jim Wilson
  2020-03-26 22:23     ` Joel Sherrill
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Wilson @ 2020-03-26 22:11 UTC (permalink / raw)
  To: Hannes Domani; +Cc: gdb, joel

On Wed, Mar 25, 2020 at 12:27 PM Hannes Domani via Gdb
<gdb@sourceware.org> wrote:
>  Am Mittwoch, 25. März 2020, 20:01:06 MEZ hat Joel Sherrill <joel@rtems.org> Folgendes geschrieben:
> This looks very much like gcc bug 64697:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64697

IMHO this is a binutils bug.  See for instance
    https://sourceware.org/bugzilla/show_bug.cgi?id=23244
for a similar RISC-V issue that I fixed almost 2 years ago, which also
discusses how the ARM port solves this problem.

Jim


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GDB 9.1 Fails to Build on Cygwin
  2020-03-26 22:11   ` Jim Wilson
@ 2020-03-26 22:23     ` Joel Sherrill
  2020-03-26 22:45       ` Jim Wilson
  0 siblings, 1 reply; 5+ messages in thread
From: Joel Sherrill @ 2020-03-26 22:23 UTC (permalink / raw)
  To: Jim Wilson; +Cc: Hannes Domani, gdb

On Thu, Mar 26, 2020 at 5:11 PM Jim Wilson <jimw@sifive.com> wrote:

> On Wed, Mar 25, 2020 at 12:27 PM Hannes Domani via Gdb
> <gdb@sourceware.org> wrote:
> >  Am Mittwoch, 25. März 2020, 20:01:06 MEZ hat Joel Sherrill <
> joel@rtems.org> Folgendes geschrieben:
> > This looks very much like gcc bug 64697:
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64697
>
> IMHO this is a binutils bug.  See for instance
>     https://sourceware.org/bugzilla/show_bug.cgi?id=23244
> for a similar RISC-V issue that I fixed almost 2 years ago, which also
> discusses how the ARM port solves this problem.
>

Thanks for confirming this isn't just us seeing it.

Jim.. do you mind if I cc' you on the bug when I file it?
You seem to have the best handle on fixing it and will have to provide
advice to whoever tackles it.

--joel


> Jim
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: GDB 9.1 Fails to Build on Cygwin
  2020-03-26 22:23     ` Joel Sherrill
@ 2020-03-26 22:45       ` Jim Wilson
  0 siblings, 0 replies; 5+ messages in thread
From: Jim Wilson @ 2020-03-26 22:45 UTC (permalink / raw)
  To: joel; +Cc: Hannes Domani, gdb

On Thu, Mar 26, 2020 at 3:24 PM Joel Sherrill <joel@rtems.org> wrote:
> Thanks for confirming this isn't just us seeing it.

I haven't seen it yet; I rarely do cygwin development.  I just
recognize the problem as similar to one I fixed in the RISC-V bfd
port.

> Jim.. do you mind if I cc' you on the bug when I file it?

Yes, that is fine.

Jim


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-26 22:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-25 19:00 GDB 9.1 Fails to Build on Cygwin Joel Sherrill
2020-03-25 19:27 ` Hannes Domani
2020-03-26 22:11   ` Jim Wilson
2020-03-26 22:23     ` Joel Sherrill
2020-03-26 22:45       ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox