/usr/bin/x86_64-w64-mingw32-ld: internal error: aborting at ./upstream/ld/ldlang.c:527 in compare_section

Bug #2021416 reported by Stian Skjelstad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binutils-mingw-w64 (Debian)
Fix Released
Unknown
binutils-mingw-w64 (Ubuntu)
Fix Committed
Undecided
Unassigned

Bug Description

This is probably related to

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029841

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

I am trying to cross-compilation a project I am working on, and got this output:

x86_64-w64-mingw32-gcc (INSERT BUNCH OF .o -l and -L options here)
/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

$ dpkg -l|grep mingw
ii binutils-mingw-w64-i686 2.39.90.20221231-1ubuntu1+10.3 amd64 Cross-binutils for Win32 (x86) using MinGW-w64
ii binutils-mingw-w64-x86-64 2.39.90.20221231-1ubuntu1+10.3 amd64 Cross-binutils for Win64 (x64) using MinGW-w64
ii g++-mingw-w64 12.2.0-14ubuntu1+25.2 all GNU C++ compiler for MinGW-w64
ii g++-mingw-w64-i686 12.2.0-14ubuntu1+25.2 all GNU C++ compiler for MinGW-w64 targeting Win32
ii g++-mingw-w64-i686-posix 12.2.0-14ubuntu1+25.2 amd64 GNU C++ compiler for MinGW-w64, Win32/POSIX
ii g++-mingw-w64-i686-win32 12.2.0-14ubuntu1+25.2 amd64 GNU C++ compiler for MinGW-w64, Win32/Win32
ii g++-mingw-w64-x86-64 12.2.0-14ubuntu1+25.2 all GNU C++ compiler for MinGW-w64 targeting Win64
ii g++-mingw-w64-x86-64-posix 12.2.0-14ubuntu1+25.2 amd64 GNU C++ compiler for MinGW-w64, Win64/POSIX
ii g++-mingw-w64-x86-64-win32 12.2.0-14ubuntu1+25.2 amd64 GNU C++ compiler for MinGW-w64, Win64/Win32
ii gcc-mingw-w64 12.2.0-14ubuntu1+25.2 all GNU C compiler for MinGW-w64
ii gcc-mingw-w64-base:amd64 12.2.0-14ubuntu1+25.2 amd64 GNU Compiler Collection for MinGW-w64 (base package)
ii gcc-mingw-w64-i686 12.2.0-14ubuntu1+25.2 all GNU C compiler for MinGW-w64 targeting Win32
ii gcc-mingw-w64-i686-posix 12.2.0-14ubuntu1+25.2 amd64 GNU C compiler for MinGW-w64, Win32/POSIX
ii gcc-mingw-w64-i686-posix-runtime 12.2.0-14ubuntu1+25.2 amd64 GNU Compiler Collection for MinGW-w64, i686/POSIX
ii gcc-mingw-w64-i686-win32 12.2.0-14ubuntu1+25.2 amd64 GNU C compiler for MinGW-w64, Win32/Win32
ii gcc-mingw-w64-i686-win32-runtime 12.2.0-14ubuntu1+25.2 amd64 GNU Compiler Collection for MinGW-w64, i686/Win32
ii gcc-mingw-w64-x86-64 12.2.0-14ubuntu1+25.2 all GNU C compiler for MinGW-w64 targeting Win64
ii gcc-mingw-w64-x86-64-posix 12.2.0-14ubuntu1+25.2 amd64 GNU C compiler for MinGW-w64, Win64/POSIX
ii gcc-mingw-w64-x86-64-posix-runtime 12.2.0-14ubuntu1+25.2 amd64 GNU Compiler Collection for MinGW-w64, x86-64/POSIX
ii gcc-mingw-w64-x86-64-win32 12.2.0-14ubuntu1+25.2 amd64 GNU C compiler for MinGW-w64, Win64/Win32
ii gcc-mingw-w64-x86-64-win32-runtime 12.2.0-14ubuntu1+25.2 amd64 GNU Compiler Collection for MinGW-w64, x86-64/Win32
ii libz-mingw-w64 1.2.13+dfsg-1 all compression library - Windows runtime
ii libz-mingw-w64-dev 1.2.13+dfsg-1 all compression library - Windows development files
ii mingw-w64 10.0.0-3 all Development environment targeting 32- and 64-bit Windows
ii mingw-w64-common 10.0.0-3 all Common files for Mingw-w64
ii mingw-w64-i686-dev 10.0.0-3 all Development files for MinGW-w64 targeting Win32
ii mingw-w64-tools 10.0.0-3 amd64 Development tools for 32- and 64-bit Windows
ii mingw-w64-x86-64-dev 10.0.0-3 all Development files for MinGW-w64 targeting Win64

Revision history for this message
Stephen Kitt (steve-sk2) wrote :

This is fixed in 10.4 which is in Mantic, but not in Lunar. The only change between 10.3 and 10.4 is the fix for this bug, so perhaps it would qualify for an update in Lunar.

Changed in binutils-mingw-w64 (Ubuntu):
status: New → Fix Committed
Changed in binutils-mingw-w64 (Debian):
status: Unknown → Fix Released
Revision history for this message
Stian Skjelstad (mywave) wrote :

Any chance of releasing the fix?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.