public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Cross-compilation related bug
@ 2022-07-21 13:49 Sim Tov
  2022-07-21 14:08 ` Jan Beulich
  0 siblings, 1 reply; 6+ messages in thread
From: Sim Tov @ 2022-07-21 13:49 UTC (permalink / raw)
  To: binutils

It would be great, if somebody from the developers could take a look
on this cross-compilation related bug:

https://sourceware.org/bugzilla/show_bug.cgi?id=29389

It affects quite a few people and blocks us from advancing...

Thank you for your great tool!
ST

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

* Re: Cross-compilation related bug
  2022-07-21 13:49 Cross-compilation related bug Sim Tov
@ 2022-07-21 14:08 ` Jan Beulich
  2022-07-21 14:33   ` Sim Tov
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2022-07-21 14:08 UTC (permalink / raw)
  To: Sim Tov; +Cc: binutils

On 21.07.2022 15:49, Sim Tov via Binutils wrote:
> It would be great, if somebody from the developers could take a look
> on this cross-compilation related bug:
> 
> https://sourceware.org/bugzilla/show_bug.cgi?id=29389
> 
> It affects quite a few people and blocks us from advancing...

I guess it would help quite a bit if a simpler repro was made
available. I don't think what is provided in the bugzilla entry
is quite suitable for anyone not familiar with MingW.

Jan

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

* Re: Cross-compilation related bug
  2022-07-21 14:08 ` Jan Beulich
@ 2022-07-21 14:33   ` Sim Tov
  2022-07-21 18:40     ` Sim Tov
  0 siblings, 1 reply; 6+ messages in thread
From: Sim Tov @ 2022-07-21 14:33 UTC (permalink / raw)
  To: Jan Beulich; +Cc: binutils

That's the problem - this bug doesn't occur on a regular Linux...

But maybe one, who is familiar with the internals of binutils, can
guess what is wrong, being provided with the file names and lines:

binutils-gdb/bfd/cofflink.c:2279
binutils-gdb/bfd/coff-x86_64.c:696

https://sourceware.org/bugzilla/show_bug.cgi?id=29389

Thank you!

On Thu, Jul 21, 2022 at 5:08 PM Jan Beulich <jbeulich@suse.com> wrote:
>
> On 21.07.2022 15:49, Sim Tov via Binutils wrote:
> > It would be great, if somebody from the developers could take a look
> > on this cross-compilation related bug:
> >
> > https://sourceware.org/bugzilla/show_bug.cgi?id=29389
> >
> > It affects quite a few people and blocks us from advancing...
>
> I guess it would help quite a bit if a simpler repro was made
> available. I don't think what is provided in the bugzilla entry
> is quite suitable for anyone not familiar with MingW.
>
> Jan

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

* Re: Cross-compilation related bug
  2022-07-21 14:33   ` Sim Tov
@ 2022-07-21 18:40     ` Sim Tov
  2022-07-22  3:05       ` Alan Modra
  0 siblings, 1 reply; 6+ messages in thread
From: Sim Tov @ 2022-07-21 18:40 UTC (permalink / raw)
  To: Jan Beulich; +Cc: binutils

If you don't have a Windows machine to install MSYS2:

https://www.msys2.org/

We would be more than happy to follow your instructions in a live
session (e.g. via IRC, etc) and provide you
with the outputs, logs, screenshots and screen sharing...

Thank you!

On Thu, Jul 21, 2022 at 5:33 PM Sim Tov <smntov@gmail.com> wrote:
>
> That's the problem - this bug doesn't occur on a regular Linux...
>
> But maybe one, who is familiar with the internals of binutils, can
> guess what is wrong, being provided with the file names and lines:
>
> binutils-gdb/bfd/cofflink.c:2279
> binutils-gdb/bfd/coff-x86_64.c:696
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=29389
>
> Thank you!
>
> On Thu, Jul 21, 2022 at 5:08 PM Jan Beulich <jbeulich@suse.com> wrote:
> >
> > On 21.07.2022 15:49, Sim Tov via Binutils wrote:
> > > It would be great, if somebody from the developers could take a look
> > > on this cross-compilation related bug:
> > >
> > > https://sourceware.org/bugzilla/show_bug.cgi?id=29389
> > >
> > > It affects quite a few people and blocks us from advancing...
> >
> > I guess it would help quite a bit if a simpler repro was made
> > available. I don't think what is provided in the bugzilla entry
> > is quite suitable for anyone not familiar with MingW.
> >
> > Jan

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

* Re: Cross-compilation related bug
  2022-07-21 18:40     ` Sim Tov
@ 2022-07-22  3:05       ` Alan Modra
  2022-07-22 12:29         ` Sim Tov
  0 siblings, 1 reply; 6+ messages in thread
From: Alan Modra @ 2022-07-22  3:05 UTC (permalink / raw)
  To: Sim Tov; +Cc: Jan Beulich, binutils

On Thu, Jul 21, 2022 at 09:40:35PM +0300, Sim Tov via Binutils wrote:
> If you don't have a Windows machine to install MSYS2:
> 
> https://www.msys2.org/
> 
> We would be more than happy to follow your instructions in a live
> session (e.g. via IRC, etc) and provide you
> with the outputs, logs, screenshots and screen sharing...

I'm sorry, the reality is that trying to debug remotely is extremely
time consuming and frustrating for everyone involved.

> > But maybe one, who is familiar with the internals of binutils, can
> > guess what is wrong, being provided with the file names and lines:
> >
> > binutils-gdb/bfd/cofflink.c:2279
> > binutils-gdb/bfd/coff-x86_64.c:696

All that says to me is "something went wrong", likely long before
the assertions triggered.

If you expect someone to look at your bug, you need to package up a
set of object files so that someone can reproduce the problem by
running the linker on an entirely different machine.  Note that the
inputs to the linker are needed, not source files.  We don't want to
and can't debug your compiler for you..  That means *all* the inputs
to ld, so system libraries too.  Please do test that what you package
up is a complete testcase, by running a cross-linker on a non-windows
machine.

-- 
Alan Modra
Australia Development Lab, IBM

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

* Re: Cross-compilation related bug
  2022-07-22  3:05       ` Alan Modra
@ 2022-07-22 12:29         ` Sim Tov
  0 siblings, 0 replies; 6+ messages in thread
From: Sim Tov @ 2022-07-22 12:29 UTC (permalink / raw)
  To: Alan Modra; +Cc: Jan Beulich, binutils

Thank you, Alan, for your response!

Luca has provided some important information on this issue:

https://sourceware.org/bugzilla/show_bug.cgi?id=29389#c2

1. Do you still need some more input on this?
2. Is there a chance that the fix for this will enter the version 2.39?

Thank you!

On Fri, Jul 22, 2022 at 6:05 AM Alan Modra <amodra@gmail.com> wrote:
>
> On Thu, Jul 21, 2022 at 09:40:35PM +0300, Sim Tov via Binutils wrote:
> > If you don't have a Windows machine to install MSYS2:
> >
> > https://www.msys2.org/
> >
> > We would be more than happy to follow your instructions in a live
> > session (e.g. via IRC, etc) and provide you
> > with the outputs, logs, screenshots and screen sharing...
>
> I'm sorry, the reality is that trying to debug remotely is extremely
> time consuming and frustrating for everyone involved.
>
> > > But maybe one, who is familiar with the internals of binutils, can
> > > guess what is wrong, being provided with the file names and lines:
> > >
> > > binutils-gdb/bfd/cofflink.c:2279
> > > binutils-gdb/bfd/coff-x86_64.c:696
>
> All that says to me is "something went wrong", likely long before
> the assertions triggered.
>
> If you expect someone to look at your bug, you need to package up a
> set of object files so that someone can reproduce the problem by
> running the linker on an entirely different machine.  Note that the
> inputs to the linker are needed, not source files.  We don't want to
> and can't debug your compiler for you..  That means *all* the inputs
> to ld, so system libraries too.  Please do test that what you package
> up is a complete testcase, by running a cross-linker on a non-windows
> machine.
>
> --
> Alan Modra
> Australia Development Lab, IBM

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

end of thread, other threads:[~2022-07-22 12:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-21 13:49 Cross-compilation related bug Sim Tov
2022-07-21 14:08 ` Jan Beulich
2022-07-21 14:33   ` Sim Tov
2022-07-21 18:40     ` Sim Tov
2022-07-22  3:05       ` Alan Modra
2022-07-22 12:29         ` Sim Tov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).