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

qmlsc codegen tests crash on cross-compiled targets

    XMLWordPrintable

Details

    • 162f9cce43 (qt/tqtc-qmlcompilerplus/dev) b08dba441f (qt/tqtc-qmlcompilerplus/6.2) a102f69c18 (qt/tqtc-qmlcompilerplus/6.3) 638475b4f2 (qt/tqtc-qmlcompilerplus/6.2) a102f69c18 (qt/tqtc-qmlcompilerplus/6.3.1) 162f9cce43 (qt/tqtc-qmlcompilerplus/6.4)

    Description

      See https://codereview.qt-project.org/c/qt/tqtc-qmlcompilerplus/+/403243

      test 1
           Start 1: tst_codegen_indirect
       Test command: /opt/cmake-3.21.3/bin/cmake "-P" "/home/qt/work/qt/tqtc-qmlcompilerplus_standalone_tests/tests/auto/codegen/tst_codegen_indirectWrapperRelWithDebInfo.cmake"
       Test timeout computed to be: 1500
       qt-testrunner.py     INFO: Will write XML test logs to directory COIN_CTEST_RESULTSDIR=/home/qt/work/testresults
       qt-testrunner.py    DEBUG: Running test command line: ['/home/qt/work/qt/tqtc-qmlcompilerplus_standalone_tests/tests/auto/codegen/tst_codegen_indirect', '-o', '/home/qt/work/testresults/tst_codegen_indirect-1649312052082.xml,xml', '-o', '-,txt']
       /home/qt/work/qt/tqtc-qmlcompilerplus_standalone_tests/tests/auto/codegen/tst_codegen_indirect: /usr/lib/libQt6Core.so.6: version `Qt_6.4' not found (required by /home/qt/work/qt/tqtc-qmlcompilerplus_standalone_tests/tests/auto/codegen/tst_codegen_indirect)
       qt-testrunner.py     INFO: Test process exited with code: 1
       qt-testrunner.py    ERROR: XML log file not found: /home/qt/work/testresults/tst_codegen_indirect-1649312052082.xml
      

      This is because of an rpath mixup in CMake. The install directory is passed as -rpath-link and discarded at run time. The build directory is passed as -rpath, but it doesn't exist anymore when the test runs. The test then picks up some random other Qt version from the sysroot, that happens to not be 6.4.

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              ulherman Ulf Hermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes