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

Attachment: pgpp5UNbgHTxQ.pgp
Description: OpenPGP digital signature

Reply via email to