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

[Regression] Binary fails to link when using qt_target_qml_sources

    XMLWordPrintable

Details

    • e7e9d0093 (dev)

    Description

      The simple attached program fails to link using dev branch, works fine in Qt 6.9

      [1/1] Linking CXX executable test
      FAILED: test  
      : && /usr/bin/c++ -pipe -O2 -g -DNDEBUG  CMakeFiles/test.dir/test_autogen/mocs_compilation.cpp.o CMakeFiles/test.dir/main.cpp.o -o test  CMakeFiles/test_static_resources_1.dir/./.qt/rcc/qrc_qmake_org_kde_khangman_init.cpp.o  CMakeFiles/test_static_resources_2.dir/./.qt/r
      cc/qrc_test_static_raw_qml_0_init.cpp.o  CMakeFiles/test_static_resources_3.dir/./.qt/rcc/qrc_test_static_raw_res_1_init.cpp.o  CMakeFiles/test_staticplugin_init.dir/./test_staticplugin_init_autogen/mocs_compilation.cpp.o  CMakeFiles/test_staticplugin_init.dir/./test_sta
      ticplugin_init.cpp.o  libtest_static.a  libtest_staticplugin.a  libtest_static.a  /usr/lib64/libQt6Qml.so.6.10.0  /usr/lib64/libQt6Network.so.6.10.0  /usr/lib64/libQt6Core.so.6.10.0 && :
      mold: error: undefined symbol: qInitResources_test_static_raw_qml_1()
      >>> referenced by test_staticplugin_org_kde_khangmanPlugin.cpp
      >>>               libtest_staticplugin.a(test_staticplugin_org_kde_khangmanPlugin.cpp.o):(qt_plugin_instance_org_kde_khangmanPlugin())
      >>> referenced by test_staticplugin_org_kde_khangmanPlugin.cpp
      >>>               libtest_staticplugin.a(test_staticplugin_org_kde_khangmanPlugin.cpp.o):(QtPrivate::QMetaTypeForType<org_kde_khangmanPlugin>::getDefaultCtr()::{lambda(QtPrivate::QMetaTypeInterface const*, void*)#1}::_FUN(QtPrivate::QMetaTypeInterface const*, void*))
      collect2: error: ld returned 1 exit status
      ninja: build stopped: subcommand failed.
      

      Attachments

        1. tmp.zip
          1 kB
          Albert Astals Cid
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            tsdgeos Albert Astals Cid
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes