Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-87613

MinGW: Building lupdate.exe with static LLVM and -separate-debug-info fails

    XMLWordPrintable

Details

    Description

      We're trying to build the official MinGW packages with LLVM support in lupdate.

      Anyhow, it seems MinGW-w64's objcopy.exe fails to handle such large files:

      [1/1] Linking CXX executable qtbase\bin\lupdate.exe
      FAILED: qtbase/bin/lupdate.exe
      cmd.exe /C "cd . && C:\Qt\Tools\mingw810_64\bin\g++.exe -g -DNDEBUG -O2  @CMakeFiles\lupdate.rsp -o qtbase\bin\lupdate.exe -Wl,--out-implib,qttools\src\linguist\lupdate\liblupdate.dll.a -Wl,--major-image-version,0,--minor-image-version,0  && cmd.exe /C "cd /D C:\dev\qt\dev\cmake-mingw-builds-8.1.0-64\qttools\src\linguist\lupdate && C:\Qt\Tools\mingw810_64\bin\objcopy.exe --only-keep-debug C:/dev/qt/dev/cmake-mingw-builds-8.1.0-64/qtbase/bin/lupdate.exe C:/dev/qt/dev/cmake-mingw-builds-8.1.0-64/qtbase/bin/lupdate.debug && C:\Qt\Tools\mingw810_64\bin\objcopy.exe --strip-debug C:/dev/qt/dev/cmake-mingw-builds-8.1.0-64/qtbase/bin/lupdate.exe && C:\Qt\Tools\mingw810_64\bin\objcopy.exe --add-gnu-debuglink=C:/dev/qt/dev/cmake-mingw-builds-8.1.0-64/qtbase/bin/lupdate.debug C:/dev/qt/dev/cmake-mingw-builds-8.1.0-64/qtbase/bin/lupdate.exe""
      

      Already the first objcopy call, C:\Qt\Tools\mingw810_64\bin\objcopy.exe --only-keep-debug C:/dev/qt/dev/cmake-mingw-builds-8.1.0-64/qtbase/bin/lupdate.exe C:/dev/qt/dev/cmake-mingw-builds-8.1.0-64/qtbase/bin/lupdate.debug, does return an error value (though lupdate.debug is generated, and no error is printed).

      See also https://testresults.qt.io/coin/api/results/qt/qttools/74d694cecf2bab6c318930d0204665f15cea0dba/WindowsWindows_10x86_64WindowsWindows_10x86_64Mingwqtci-windows-10-x86_64-51-ec6c6aSccache/3e2e5968cd983f4cfa3f5d1218002343790bed8e/build_1602675893/log.txt.gz

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtbuildsystem Qt Build System Team
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes