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

QQmlThread causes linker errors with USBan by using unexported class QThreadPrivate

    XMLWordPrintable

Details

    • 0115dc588 (dev), d7a5e9d15 (6.8)

    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

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes