Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.10
-
None
-
-
2293fe9de (dev), ecefe63b8 (6.10), 74a05a502 (6.9)
Description
This concretely resulted in me not being able to compile some examples in webengine with gcc 10 because (I think?) ld from that toolchain was pulling in an incompatible c/c++ runtime.
Configured with:
-developer-build -ccache -linker lld -make tests -make examples -nomake manual-tests -prefix /opt/qt-default -skip-tests qtbase,qtdeclarative,qtimageformats,qtlanguageserver,qtsvg,qtpositioning,qtserialport,qtshadertools,qtwebsockets,qtwebchannel -skip-examples qtbase,qtdeclarative,qtimageformats,qtlanguageserver,qtsvg,qtpositioning,qtserialport,qtshadertools,qtwebsockets,qtwebchannel -submodules qtdeclarative,qtpositioning,qtwebchannel,qtsvg -skip qttools -- -DQT_SHOW_EXTRA_IDE_SOURCES=0 -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10
The issue is apparent when examining ninja -t commands output:
[moss@mossbox build-gcc10-chr134-base]$ ninja -t commands | grep qtdeclarative/tests | wc -l 4624 [moss@mossbox build-gcc10-chr134-base]$ ninja -t commands | grep qtdeclarative/tests | grep 'use-ld' | wc -l 373 [moss@mossbox build-gcc10-chr134-base]$ ninja -t commands | grep qtdeclarative/examples | wc -l 3171 [moss@mossbox build-gcc10-chr134-base]$ ninja -t commands | grep qtdeclarative/examples | grep 'use-ld' | wc -l 0
As well as some sample link commands:
[moss@mossbox build-gcc10-chr134-base]$ ninja -t commands | grep qtdeclarative/examples | tail -1
: && /usr/bin/g++-10 -g -fPIE -pie qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/apptableofcontents_autogen/mocs_compilation.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/main.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/.qt/rcc/qrc_contentdata.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/apptableofcontents_qmltyperegistrations.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/.qt/rcc/qrc_qmake_tableofcontents.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/treeitem.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/treemodel.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/.rcc/qmlcache/apptableofcontents_qmlcache_loader.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/.rcc/qmlcache/apptableofcontents_Main_qml.cpp.o qtdeclarative/examples/quickcontrols/tableofcontents/CMakeFiles/apptableofcontents.dir/.qt/rcc/qrc_apptableofcontents_raw_qml_0.cpp.o -o qtdeclarative/examples/quickcontrols/tableofcontents/apptableofcontents -Wl,-rpath,/home/moss/qt/build-gcc10-chr134-base/qtbase/lib qtbase/lib/libQt6Quick.so.6.10.0 qtbase/lib/libQt6QmlMeta.so.6.10.0 qtbase/lib/libQt6QmlWorkerScript.so.6.10.0 qtbase/lib/libQt6QmlModels.so.6.10.0 qtbase/lib/libQt6Qml.so.6.10.0 qtbase/lib/libQt6Network.so.6.10.0 qtbase/lib/libQt6OpenGL.so.6.10.0 qtbase/lib/libQt6Gui.so.6.10.0 /usr/lib/libGLX.so /usr/lib/libOpenGL.so qtbase/lib/libQt6Core.so.6.10.0 -Wl,-rpath-link,/home/moss/qt/build-gcc10-chr134-base/qtbase/lib && :
[moss@mossbox build-gcc10-chr134-base]$ ninja -t commands | grep qtdeclarative/tests | tail -1
: && /usr/bin/g++-10 -g -Wl,-z,relro,-z,now -fuse-ld=lld -Wl,--gdb-index -Wl,--enable-new-dtags -fPIE -pie qtdeclarative/tests/baseline/controls/CMakeFiles/tst_baseline_controls.dir/tst_baseline_controls_autogen/mocs_compilation.cpp.o qtdeclarative/tests/baseline/controls/CMakeFiles/tst_baseline_controls.dir/__/__/__/__/qtbase/tests/baseline/shared/baselineprotocol.cpp.o qtdeclarative/tests/baseline/controls/CMakeFiles/tst_baseline_controls.dir/__/__/__/__/qtbase/tests/baseline/shared/lookup3.cpp.o qtdeclarative/tests/baseline/controls/CMakeFiles/tst_baseline_controls.dir/__/__/__/__/qtbase/tests/baseline/shared/qbaselinetest.cpp.o qtdeclarative/tests/baseline/controls/CMakeFiles/tst_baseline_controls.dir/tst_baseline_controls.cpp.o -o qtdeclarative/tests/baseline/controls/tst_baseline_controls -Wl,-rpath,/home/moss/qt/build-gcc10-chr134-base/qtbase/lib qtbase/lib/libQt6QuickControls2.so.6.10.0 qtbase/lib/libQt6Test.so.6.10.0 qtbase/lib/libQt6Quick.so.6.10.0 qtbase/lib/libQt6QmlMeta.so.6.10.0 qtbase/lib/libQt6QmlWorkerScript.so.6.10.0 qtbase/lib/libQt6OpenGL.so.6.10.0 qtbase/lib/libQt6Gui.so.6.10.0 /usr/lib/libGLX.so /usr/lib/libOpenGL.so qtbase/lib/libQt6QmlModels.so.6.10.0 qtbase/lib/libQt6Qml.so.6.10.0 qtbase/lib/libQt6Network.so.6.10.0 qtbase/lib/libQt6Core.so.6.10.0 -Wl,-rpath-link,/home/moss/qt/build-gcc10-chr134-base/qtbase/lib && :
Attachments
For Gerrit Dashboard: QTBUG-137882 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
654388,4 | CMake: Pass qt-configured linker flag when building examples | dev | qt/qtbase | Status: MERGED | +2 | +1 |
655272,2 | CMake: Pass qt-configured linker flag when building examples | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
655316,2 | CMake: Pass qt-configured linker flag when building examples | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
655540,1 | CMake: Pass qt-configured linker flag when building examples | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: STAGED | +2 | 0 |