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

            Bug ID: 31929
           Summary: x86_64-w64-mingw32-ld: final link failed: bad value
           Product: binutils
           Version: 2.42
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: ralf.habacker at freenet dot de
  Target Milestone: ---

Created attachment 15595
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15595&action=edit
link log file

When building Qt webkit with mingw gcc 13.2.0 and binutils 2.42 I get the
following linker error:

[ 97%] Linking CXX shared library ../../bin/Qt5WebKit.dll
cd
/home/abuild/rpmbuild/BUILD/qtwebkit-everywhere-src-5.15.14+kde0/build/Source/WebKit
&& /usr/bin/cmake -E cmake_link_script CMakeFiles/WebKit.dir/link.txt
--verbose=1
/usr/bin/cmake -E rm -f CMakeFiles/WebKit.dir/objects.a
/usr/bin/x86_64-w64-mingw32-ar qc CMakeFiles/WebKit.dir/objects.a
@CMakeFiles/WebKit.dir/objects1.rsp
/usr/bin/x86_64-w64-mingw32-g++ -O2 -g -pipe -Wall -fexceptions
--param=ssp-buffer-size=4 -mms-bitfields -fno-exceptions -fno-strict-aliasing
-fno-rtti -std=c++11 -mno-ms-bitfields -Wno-unknown-pragmas
-Wno-expansion-to-defined -fno-keep-inline-dllexport -O2 -g -DNDEBUG
-Wl,--exclude-libs=libintl.a -Wl,--exclude-libs=libiconv.a -Wl,--no-keep-memory
-fstack-protector -shared -o ../../bin/Qt5WebKit.dll
-Wl,--out-implib,../../lib/libQt5WebKit.a
-Wl,--major-image-version,5,--minor-image-version,212 -Wl,--whole-archive
CMakeFiles/WebKit.dir/objects.a -Wl,--no-whole-archive
@CMakeFiles/WebKit.dir/linkLibs.rsp
/usr/lib64/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld:
final link failed: bad value
collect2: error: ld returned 1 exit status

The output from running the final link using -Wl,--trace and -Wl,--verbose has
been appended.

Since I am currently unable to isolate the problem, here is a hint on how to
reproduce the build on an openSUSE Linux host:

1. create an account at https://build.opensuse.org
2. run 
    osc -A https://api.opensuse.org checkout
home:rhabacker:branches:windows:mingw:win64:Qt515/mingw64-libqt5-qtwebkit && cd
$_
    osc build openSUSE_Leap_15.5

3. after the build breaks run
    osc chroot openSUSE_Leap_15.5
    cd rpmbuild/BUILD/qtwebkit-everywhere-src-5.15.14+kde0/build/Source/WebKit
    make
  and you will see the error

Any information to narrow down the cause is very welcome.

The problem also occurs with the i686-w64-mingw32 variant.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to