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

[webengine] clang-18/lto linker error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.7.1
    • WebEngine
    • None
    • Linux/X11

    Description

      building qtwebengine with clang-18 and LTO (-DFEATURE_ltcg=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON) gives me this linker error:

      FAILED: qtbase/lib/libQt6WebEngineCore.so.6.7.1 
      : && /usr/bin/clang++-18 -fPIC -march=alderlake   -DNDEBUG -O3 -flto=thin  -Wl,--no-undefined -Wl,--version-script,/home/tim/dev/qt6/build/qtwebengine/src/core/api/WebEngineCore.version @/home/tim/dev/qt6/build/qtwebengine/src/core/Release/x86_64/QtWebEngineCore_objects.rsp -Wl,--gc-sections -fuse-ld=lld -Wl,--enable-new-dtags -shared -Wl,-soname,libQt6WebEngineCore.so.6 -o qtbase/lib/libQt6WebEngineCore.so.6.7.1 qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/WebEngineCore_autogen/mocs_compilation.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qtwebenginecoreglobal.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecertificateerror.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineclientcertificateselection.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineclientcertificatestore.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecontextmenurequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginecookiestore.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginedesktopmediarequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginedownloadrequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginefilesystemaccessrequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginefindtextresult.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginefullscreenrequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginehistory.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginehttprequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineloadinginfo.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginemessagepumpscheduler.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginenavigationrequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginenewwindowrequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginenotification.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginepage.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineprofile.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginequotarequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineregisterprotocolhandlerrequest.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginescript.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginescriptcollection.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginesettings.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlrequestinfo.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlrequestinterceptor.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlrequestjob.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlscheme.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineurlschemehandler.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebengineglobalsettings.cpp.o qtwebengine/src/core/api/CMakeFiles/WebEngineCore.dir/qwebenginewebauthuxrequest.cpp.o  -Wl,-rpath,/home/tim/dev/qt6/build/qtbase/lib:  qtbase/lib/libQt6WebChannel.so.6.7.1  qtbase/lib/libQt6Positioning.so.6.7.1  -Wl,--start-group @/home/tim/dev/qt6/build/qtwebengine/src/core/Release/x86_64/QtWebEngineCore_archives.rsp -Wl,--end-group  -Wl,--no-fatal-warnings @/home/tim/dev/qt6/build/qtwebengine/src/core/Release/x86_64/QtWebEngineCore_ldir.rsp @/home/tim/dev/qt6/build/qtwebengine/src/core/Release/x86_64/QtWebEngineCore_libs.rsp -Wl,--no-fatal-warnings  qtbase/lib/libQt6Quick.so.6.7.1  qtbase/lib/libQt6OpenGL.so.6.7.1  qtbase/lib/libQt6Gui.so.6.7.1  /usr/lib/x86_64-linux-gnu/libGLX.so  /usr/lib/x86_64-linux-gnu/libOpenGL.so  /usr/lib/x86_64-linux-gnu/libxkbcommon.so  qtbase/lib/libQt6QmlModels.so.6.7.1  qtbase/lib/libQt6Qml.so.6.7.1  qtbase/lib/libQt6Network.so.6.7.1  qtbase/lib/libQt6QmlBuiltins.a  qtbase/lib/libQt6Core.so.6.7.1  -Wl,-rpath-link,/home/tim/dev/qt6/build/qtbase/lib && :
      ld.lld: error: inconsistent LTO Unit splitting (recompile with -fsplit-lto-unit)
      clang++-18: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.
      

      Attachments

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

        Activity

          People

            moheim Moss Heim
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes