Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28434

Test suite fails to build when using Qt 6.3.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 9.0.1
    • Qt Creator 8.0.2
    • Building Qt Creator
    • None
    • Guix System
    • Linux/X11
    • b7716087e1 (qt-creator/qt-creator/9.0) b7716087e1 (qt-creator/qt-creator/master) b7716087e1 (qt-creator/qt-creator/qds/dev)

    Description

      Hi,

      When attempting to build the tests suite with -DWITH_TESTS=ON, it fails to link like so:

      [ 33%] Building CXX object tests/auto/tracing/timelinerenderer/CMakeFiles/tst_tracing_timelinerenderer.dir/tst_tracing_timelinerenderer_autogen/mocs_compilation.cpp.o
      cd /tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++ -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_JAVA_STYLE_ITERATORS -DQT_OPENGL_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_TESTCASE_BUILDDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer\" -DQT_TESTCASE_SOURCEDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderer\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DRELATIVE_DATA_PATH=\"../share/qtcreator\" -DRELATIVE_DOC_PATH=\"../share/doc/qtcreator\" -DRELATIVE_LIBEXEC_PATH=\"../libexec/qtcreator\" -DRELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\" -DSRCDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderer\" -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer -I/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderer -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer/tst_tracing_timelinerenderer_autogen/include -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/src -I/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/src/libs -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtWidgets -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6 -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtCore -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/lib/qt6/mkspecs/linux-g++ -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtGui -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6/QtQuick -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6 -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6/QtQml -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6/QtQmlIntegration -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtNetwork -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6/QtQmlModels -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtOpenGL -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtTest -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fPIC -pthread -std=c++17 -MD -MT tests/auto/tracing/timelinerenderer/CMakeFiles/tst_tracing_timelinerenderer.dir/tst_tracing_timelinerenderer_autogen/mocs_compilation.cpp.o -MF CMakeFiles/tst_tracing_timelinerenderer.dir/tst_tracing_timelinerenderer_autogen/mocs_compilation.cpp.o.d -o CMakeFiles/tst_tracing_timelinerenderer.dir/tst_tracing_timelinerenderer_autogen/mocs_compilation.cpp.o -c /tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer/tst_tracing_timelinerenderer_autogen/mocs_compilation.cpp
      make  -f tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/build.make tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/depend
      make[2]: Entering directory '/tmp/guix-build-qtcreator-8.0.2.drv-0/build'
      cd /tmp/guix-build-qtcreator-8.0.2.drv-0/build && /gnu/store/j65q3aw414010gdfvmsynwpzfb2jyyd3-cmake-minimal-3.21.4/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2 /tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderpass /tmp/guix-build-qtcreator-8.0.2.drv-0/build /tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass /tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/DependInfo.cmake --color=
      make[2]: Leaving directory '/tmp/guix-build-qtcreator-8.0.2.drv-0/build'
      make  -f tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/build.make tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/build
      [ 33%] Building CXX object tests/auto/tracing/timelinerenderer/CMakeFiles/tst_tracing_timelinerenderer.dir/tst_timelinerenderer.cpp.o
      cd /tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++ -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_JAVA_STYLE_ITERATORS -DQT_OPENGL_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_TESTCASE_BUILDDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer\" -DQT_TESTCASE_SOURCEDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderer\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DRELATIVE_DATA_PATH=\"../share/qtcreator\" -DRELATIVE_DOC_PATH=\"../share/doc/qtcreator\" -DRELATIVE_LIBEXEC_PATH=\"../libexec/qtcreator\" -DRELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\" -DSRCDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderer\" -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer -I/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderer -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderer/tst_tracing_timelinerenderer_autogen/include -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/src -I/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/src/libs -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtWidgets -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6 -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtCore -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/lib/qt6/mkspecs/linux-g++ -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtGui -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6/QtQuick -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6 -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6/QtQml -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6/QtQmlIntegration -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtNetwork -isystem /gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/include/qt6/QtQmlModels -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtOpenGL -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtTest -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fPIC -pthread -std=c++17 -MD -MT tests/auto/tracing/timelinerenderer/CMakeFiles/tst_tracing_timelinerenderer.dir/tst_timelinerenderer.cpp.o -MF CMakeFiles/tst_tracing_timelinerenderer.dir/tst_timelinerenderer.cpp.o.d -o CMakeFiles/tst_tracing_timelinerenderer.dir/tst_timelinerenderer.cpp.o -c /tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderer/tst_timelinerenderer.cpp
      make[2]: Entering directory '/tmp/guix-build-qtcreator-8.0.2.drv-0/build'
      [ 33%] Building CXX object tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/tst_tracing_timelinerenderpass_autogen/mocs_compilation.cpp.o
      cd /tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++ -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_NO_JAVA_STYLE_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass\" -DQT_TESTCASE_SOURCEDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderpass\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DRELATIVE_DATA_PATH=\"../share/qtcreator\" -DRELATIVE_DOC_PATH=\"../share/doc/qtcreator\" -DRELATIVE_LIBEXEC_PATH=\"../libexec/qtcreator\" -DRELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\" -DSRCDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderpass\" -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass -I/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderpass -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass/tst_tracing_timelinerenderpass_autogen/include -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/src -I/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/src/libs -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtWidgets -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6 -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtCore -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/lib/qt6/mkspecs/linux-g++ -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtGui -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtTest -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fPIC -pthread -std=c++17 -MD -MT tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/tst_tracing_timelinerenderpass_autogen/mocs_compilation.cpp.o -MF CMakeFiles/tst_tracing_timelinerenderpass.dir/tst_tracing_timelinerenderpass_autogen/mocs_compilation.cpp.o.d -o CMakeFiles/tst_tracing_timelinerenderpass.dir/tst_tracing_timelinerenderpass_autogen/mocs_compilation.cpp.o -c /tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass/tst_tracing_timelinerenderpass_autogen/mocs_compilation.cpp
      [ 33%] Building CXX object tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/tst_timelinerenderpass.cpp.o
      cd /tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass && /gnu/store/069aq2v993kpc41yabp5b6vm4wb9jkhg-gcc-10.3.0/bin/c++ -DQT_CORE_LIB -DQT_CREATOR -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_NO_JAVA_STYLE_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass\" -DQT_TESTCASE_SOURCEDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderpass\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DRELATIVE_DATA_PATH=\"../share/qtcreator\" -DRELATIVE_DOC_PATH=\"../share/doc/qtcreator\" -DRELATIVE_LIBEXEC_PATH=\"../libexec/qtcreator\" -DRELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\" -DSRCDIR=\"/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderpass\" -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass -I/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderpass -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/tests/auto/tracing/timelinerenderpass/tst_tracing_timelinerenderpass_autogen/include -I/tmp/guix-build-qtcreator-8.0.2.drv-0/build/src -I/tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/src/libs -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtWidgets -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6 -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtCore -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/lib/qt6/mkspecs/linux-g++ -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtGui -isystem /gnu/store/8h5viwhsa23inp1jdcs78x6bacxgcgzs-qtbase-6.3.1/include/qt6/QtTest -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fPIC -pthread -std=c++17 -MD -MT tests/auto/tracing/timelinerenderpass/CMakeFiles/tst_tracing_timelinerenderpass.dir/tst_timelinerenderpass.cpp.o -MF CMakeFiles/tst_tracing_timelinerenderpass.dir/tst_timelinerenderpass.cpp.o.d -o CMakeFiles/tst_tracing_timelinerenderpass.dir/tst_timelinerenderpass.cpp.o -c /tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinerenderpass/tst_timelinerenderpass.cpp
      make[2]: Leaving directory '/tmp/guix-build-qtcreator-8.0.2.drv-0/build'
      In file included from /tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/src/libs/tracing/timelinemodelaggregator.h:28,
                       from /tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/tests/auto/tracing/timelinemodelaggregator/tst_timelinemodelaggregator.cpp:27:
      /tmp/guix-build-qtcreator-8.0.2.drv-0/qt-creator-opensource-src-8.0.2/src/libs/tracing/timelinemodel.h:32:10: fatal error: QtQml/qqml.h: No such file or directory
         32 | #include <QtQml/qqml.h>
            |          ^~~~~~~~~~~~~~
      compilation terminated.
      make[2]: *** [tests/auto/tracing/timelinemodelaggregator/CMakeFiles/tst_tracing_timelinemodelaggregator.dir/build.make:93: tests/auto/tracing/timelinemodelaggregator/CMakeFiles/tst_tracing_timelinemodelaggregator.dir/tst_timelinemodelaggregator.cpp.o] Error 1
      make[2]: Leaving directory '/tmp/guix-build-qtcreator-8.0.2.drv-0/build'
      

      thiago on the #qt channel on IRC pointed that this was caused by the lack of QtQuick as an include/link target in qt-creator/tests/auto/tracing/timelinemodel/CMakeLists.txt. I note that there are multiple Qt5:: targets used but I'm using Qt 6, which seems problematic?

      Note that on GNU Guix, each Qt component get installed under their own prefix; a small patch to the CMake files of qtbase is needed to restore the native CMAKE_PREFIX_PATH mechanism that is used t o make it work.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-28434
        # Subject Branch Project Status CR V

        Activity

          People

            con Eike Ziller
            apteryx Maxim Cournoyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes