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

QQmlThread causes linker errors with USBan by using unexported class QThreadPrivate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • 6.7
    • 6.6, 6.7
    • None
    • Ubuntu 22.04 LTS, tested with Qt 6.6.1 and 6.7 branches

    Description

      Configuration commands:

      cmake
      -DCMAKE_C_COMPILER=clang-17
      -DCMAKE_CXX_COMPILER=clang++-17
      -DCMAKE_BUILD_TYPE=RelWithDebInfo
      -DQT_BUILD_TESTS=OFF
      -DQT_BUILD_EXAMPLES=OFF
      -DQT_BUILD_SUBMODULES=qtbase;qtdeclarative;qtshadertools;qtsvg;qt5compat
      -DFEATURE_sanitize_undefined=ON
      

      Compilation error:

      FAILED: qtbase/libexec/qmlcachegen 
      : && /usr/bin/clang++-17 -fsanitize=undefined -fsanitize=float-divide-by-zero -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -DNDEBUG -O2 -Wl,--enable-new-dtags -fPIE -pie qtdeclarative/src/qmlcachegen/CMakeFiles/qmlcachegen.dir/qmlcachegen_autogen/mocs_compilation.cpp.o qtdeclarative/src/qmlcachegen/CMakeFiles/qmlcachegen.dir/qmlcachegen.cpp.o -o qtbase/libexec/qmlcachegen  -Wl,-rpath,/home/user/Documents/Dev/QtLocal/build_usan/qtbase/lib:  qtbase/lib/libQt6QmlCompiler.so.6.7.0  qtbase/lib/libQt6Qml.so.6.7.0  qtbase/lib/libQt6QmlBuiltins.a  qtbase/lib/libQt6Network.so.6.7.0  qtbase/lib/libQt6Core.so.6.7.0 && :
      /usr/bin/ld: qtbase/lib/libQt6Qml.so.6.7.0: undefined reference to `typeinfo for QThreadPrivate'
      clang++-17: error: linker command failed with exit code 1 (use -v to see invocation)
      [3/1332] Linking CXX shared module qtbase/plugins/qmltooling/libqmldbg_debugger.so
      ninja: build stopped: subcommand failed.
      

      Attachments

        For Gerrit Dashboard: QTBUG-120216
        # Subject Branch Project Status CR V

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            daljit97 Daljit Singh
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change