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

ASSERT: "type" in file src/qmlcompiler/qqmljstyperesolver.cpp, line 24 when building on 6.7

    XMLWordPrintable

Details

    Description

      I'm trying to bisect Qt for Android on Linux starting with 6.7, but am running into a build error:

      FAILED: src/qml/doc/snippets/cmake/qt_target_qml_sources/.rcc/qmlcache/qt_target_qml_sources_example_nested/way/down/File_qml.cpp /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/.rcc/qmlcache/qt_target_qml_sources_example_nested/way/down/File_qml.cpp 
      cd /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources && /usr/bin/cmake -E make_directory /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/.rcc/qmlcache/qt_target_qml_sources_example_nested/way/down && /home/mitch/dev/qt-dev-debug/qtbase/libexec/qmlcachegen --bare --resource-path /my.company.com/imports/Example/File.qml -I /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/ -I /home/mitch/dev/qt-bisect-android-debug/qtbase/./qml -i /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/Example/qmldir --resource /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/.qt/rcc/qmake_Example.qrc --resource /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/.qt/rcc/qt_target_qml_sources_example_raw_qml_0.qrc --resource /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/.qt/rcc/qt_target_qml_sources_example_raw_qml_1.qrc -o /home/mitch/dev/qt-bisect-android-debug/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/.rcc/qmlcache/qt_target_qml_sources_example_nested/way/down/File_qml.cpp /home/mitch/dev/qt-bisect/qtdeclarative/src/qml/doc/snippets/cmake/qt_target_qml_sources/nested/way/down/File.qml
      ASSERT: "type" in file /home/mitch/dev/qt-dev/qtdeclarative/src/qmlcompiler/qqmljstyperesolver.cpp, line 24
      Aborted (core dumped)
      

      Backtrace:

      #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737352252672) at ./nptl/pthread_kill.c:44
      #1  __pthread_kill_internal (signo=6, threadid=140737352252672) at ./nptl/pthread_kill.c:78
      #2  __GI___pthread_kill (threadid=140737352252672, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
      #3  0x00007ffff2242476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
      #4  0x00007ffff22287f3 in __GI_abort () at ./stdlib/abort.c:79
      #5  0x00007ffff2cdd89d in qAbort () at /home/mitch/dev/qt-dev/qtbase/src/corelib/global/qassert.cpp:49
      #6  0x00007ffff2d086c2 in qt_message_fatal<QString&> (context=..., message=...) at /home/mitch/dev/qt-dev/qtbase/src/corelib/global/qlogging.cpp:2112
      #7  0x00007ffff2cfa4dd in qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, context=..., msg=0x7ffff3a79ac0 "ASSERT: \"%s\" in file %s, line %d", 
          ap=0x7fffffff8d60) at /home/mitch/dev/qt-dev/qtbase/src/corelib/global/qlogging.cpp:380
      #8  0x00007ffff2cfd378 in QMessageLogger::fatal (this=0x7fffffff9050, msg=0x7ffff3a79ac0 "ASSERT: \"%s\" in file %s, line %d") at /home/mitch/dev/qt-dev/qtbase/src/corelib/global/qlogging.cpp:880
      #9  0x00007ffff2cdd993 in qt_assert (assertion=0x7ffff7164460 "type", file=0x7ffff71643e0 "/home/mitch/dev/qt-dev/qtdeclarative/src/qmlcompiler/qqmljstyperesolver.cpp", line=24)
          at /home/mitch/dev/qt-dev/qtbase/src/corelib/global/qassert.cpp:105
      #10 0x00007ffff6fdad50 in assertExtension (type=..., extension=...) at /home/mitch/dev/qt-dev/qtdeclarative/src/qmlcompiler/qqmljstyperesolver.cpp:24
      #11 0x00007ffff6fdd63d in QQmlJSTypeResolver::QQmlJSTypeResolver (this=0x7fffffffcf30, importer=0x7fffffffd650) at /home/mitch/dev/qt-dev/qtdeclarative/src/qmlcompiler/qqmljstyperesolver.cpp:72
      #12 0x00007ffff6c72bdc in QQmlJSAotCompiler::QQmlJSAotCompiler (this=0x7fffffffcf20, importer=0x7fffffffd650, resourcePath=..., qmldirFiles=..., logger=0x7fffffffce30)
          at /home/mitch/dev/qt-dev/qtdeclarative/src/qmlcompiler/qqmljscompiler.cpp:611
      #13 0x000055555556450f in main (argc=19, argv=0x7fffffffd948) at /home/mitch/dev/qt-dev/qtdeclarative/tools/qmlcachegen/qmlcachegen.cpp:260
      

      Configure args:

      -DCMAKE_BUILD_TYPE=Debug -DFEATURE_developer_build=ON -DQT_BUILD_TESTS=ON -DQT_BUILD_TESTS_BY_DEFAULT=OFF -DQT_BUILD_EXAMPLES=ON -DQT_BUILD_EXAMPLES_BY_DEFAULT=OFF -DWARNINGS_ARE_ERRORS=OFF -DANDROID_ABI=x86_64 -DANDROID_SDK_ROOT=/home/mitch/dev/Android/Sdk -DCMAKE_TOOLCHAIN_FILE=/home/mitch/dev/Android/Sdk/ndk/25.1.8937393/build/cmake/android.toolchain.cmake
      

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes