Hi Stephen,

Thank you, I did some more testing in order to isolate it better, and have
now uploaded a bug report upstream. I'll report depending on the outcome.

(https://sourceware.org/bugzilla/show_bug.cgi?id=30079)

Regards,
Didier

On 29/01/2023 15:08, Stephen Kitt wrote:
Hi Didier,

On Sat, 28 Jan 2023 18:07:12 +0100, Didier Smets <didier.sm...@free.fr> wrote:
I have a C project that I cross-compile for Win64 from Linux using
mingw-w64.

One of the targets is a dll which fails to build with the following :

    [ 96%] Linking C shared library libXPSV.dll
    /usr/bin/x86_64-w64-mingw32-ld: internal error: aborting at
./upstream/ld/ldlang.c:527 in compare_section
/usr/bin/x86_64-w64-mingw32-ld: please report this bug collect2: error: ld
returned 1 exit status

The same project builds fine in bullseye.
This appears to be an upstream bug; would you mind reporting it to
<https://sourceware.org/bugzilla/>? You’ll probably have to provide more
details. The CMake setup isn’t necessarily relevant; if at all possible, it
would be useful to see the full commands used at each step, notably the ld
invocation.

The failure occurs at an abort() line, so it would also be useful to know
what’s calling it; to see that, run the linker command using gdb, and note
the output of "bt" when the linker aborts.

Regards,

Stephen

Reply via email to