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

Windows: lld-link fails linking Qt5WebEngineCored.dll

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.4
    • 5.15
    • WebEngine
    • None
    • Windows

    Description

      Debug build with clang-cl on Windows fails with:

      lld-link: error: section name .debug_line is longer than 8 characters and will use a non-standard string table
      

      Full error message with command:

              lld-link /NOLOGO /DYNAMICBASE /NXCOMPAT @D:/stampho/work/Qt/qt5-79based-clang-debug/qtwebengine/src/core/debug/QtWebEngineCore_o.rsp /WX /DEBUG:FASTLINK /pdbaltpath:%_PDB% /MACHINE:X64 /FIXED:NO /ignore:4199 /ignore:4221 /NXCOMPAT /DYNAMICBASE /time /verbose:incr /INCREMENTAL /SUBSYSTEM:CONSOLE,5.02 /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /SUBSYSTEM:WINDOWS /DELAYLOAD:cfgmgr32.dll /DELAYLOAD:powrprof.dll /DELAYLOAD:setupapi.dll /NATVIS:D:/stampho/work/Qt/qt5-79based-src/qtwebengine/src/3rdparty/chromium/tools/win/DebugVisualizers/chrome.natvis /DELAYLOAD:mf.dll /DELAYLOAD:mfplat.dll /DELAYLOAD:mfreadwrite.dll /NATVIS:D:/stampho/work/Qt/qt5-79based-src/qtwebengine/src/3rdparty/chromium/tools/win/DebugVisualizers/webkit.natvis /DELAYLOAD:BluetoothApis.dll /DELAYLOAD:Bthprops.cpl /DELAYLOAD:setupapi.dll /DELAYLOAD:advapi32.dll /DELAYLOAD:cfgmgr32.dll /DELAYLOAD:ole32.dll /DELAYLOAD:setupapi.dll /DELAYLOAD:winusb.dll @D:/stampho/work/Qt/qt5-79based-clang-debug/qtwebengine/src/core/api/debug\qtwebenginecoreapid.lib.objects /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.15 /MANIFEST:embed /OUT:D:\stampho\work\Qt\qt5-79based-clang-debug\qtbase\lib\Qt5WebEngineCored.dll @C:\Users\WEBENG~1\AppData\Local\Temp\Qt5WebEngineCored.dll.9120.12719.jom
      lld-link: error: section name .debug_line is longer than 8 characters and will use a non-standard string table                                                                        
        Input File Reading:         306002 ms ( 14.5%)                                                                                                                                      
        Code Layout:                195080 ms (  9.3%)                                                                                                                                      
        PDB Emission (Cumulative):  1522019 ms ( 72.2%)                                                                                                                                     
          Add Objects:              411637 ms ( 19.5%)                                                                                                                                      
            Type Merging:           270450 ms ( 12.8%)                                                                                                                                      
            Symbol Merging:         141009 ms (  6.7%)                                                                                                                                      
          TPI Stream Layout:         1595 ms (  0.1%)                                                                                                                                       
          Globals Stream Layout:    891853 ms ( 42.3%)                                                                                                                                      
          Commit to Disk:           18260 ms (  0.9%)                                                                                                                                       
      -------------------------------------------------                                                                                                                                     
      Total Link Time:              2108773 ms (100.0%)                                                                                                                                     
      jom: D:\stampho\work\Qt\qt5-79based-clang-debug\qtwebengine\src\core\Makefile.core_module.Debug [D:\stampho\work\Qt\qt5-79based-clang-debug\qtbase\lib\Qt5WebEngineCored.dll] Error 1 
      jom: D:\stampho\work\Qt\qt5-79based-clang-debug\qtwebengine\src\core\Makefile.core_module [debug] Error 2                                                                             jom: D:\stampho\work\Qt\qt5-79based-clang-debug\qtwebengine\src\core\Makefile [sub-core_module-pro-make_first] Error 2                                                                
      jom: D:\stampho\work\Qt\qt5-79based-clang-debug\qtwebengine\src\Makefile [sub-core-make_first] Error 2                                                                                
      jom: D:\stampho\work\Qt\qt5-79based-clang-debug\qtwebengine\Makefile [sub-src-make_first] Error 2                                                                                     
      jom: D:\stampho\work\Qt\qt5-79based-clang-debug\Makefile [module-qtwebengine] Error 2  
      

      Release build works.

      I tried to set use_lld=false in src/buildtools/config/windows.pri but it doesn't make any difference, still lld_link is used.

      Attachments

        1. lld-link.diff
          5 kB
          Allan Sandfeld Jensen

        Issue Links

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              pvarga Peter Varga
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: