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

error: no template named 'qt_call_create_metaobjectdata' in the global namespace

    XMLWordPrintable

Details

    • macOS
    • 9154ecf9e (dev)

    Description

       /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:596:5: error: no template named 'qt_call_create_metaobjectdata' in the global namespace; did you mean 'qt_create_metaobjectdata'?
          TEST_CLASS(TestClass, 9);
          ^~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:48: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                     ^~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:596:5: error: no template named 'qt_create_metaobjectdata' in the global namespace; did you mean simply 'qt_create_metaobjectdata'?
          TEST_CLASS(TestClass, 9);
          ^~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:48: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                     ^~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:596:5: error: function 'qt_create_metaobjectdata<(anonymous namespace)::qt_meta_tag_ZN9TestClassE_t>' with deduced return type cannot be used before it is defined
          TEST_CLASS(TestClass, 9);
          ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:50: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                       ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata<(anonymous namespace)::qt_meta_tag_ZN9TestClassE_t>' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:597:5: error: no template named 'qt_call_create_metaobjectdata' in the global namespace; did you mean 'qt_create_metaobjectdata'?
          TEST_CLASS(TestClassWithParameters, 23);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:48: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                     ^~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:597:5: error: no template named 'qt_create_metaobjectdata' in the global namespace; did you mean simply 'qt_create_metaobjectdata'?
          TEST_CLASS(TestClassWithParameters, 23);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:48: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                     ^~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:597:5: error: function 'qt_create_metaobjectdata<(anonymous namespace)::qt_meta_tag_ZN23TestClassWithParametersE_t>' with deduced return type cannot be used before it is defined
          TEST_CLASS(TestClassWithParameters, 23);
          ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:50: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                       ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata<(anonymous namespace)::qt_meta_tag_ZN23TestClassWithParametersE_t>' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:598:5: error: no template named 'qt_call_create_metaobjectdata' in the global namespace; did you mean 'qt_create_metaobjectdata'?
          TEST_CLASS(TestClassWithClassInfo, 22);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:48: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                     ^~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:598:5: error: no template named 'qt_create_metaobjectdata' in the global namespace; did you mean simply 'qt_create_metaobjectdata'?
          TEST_CLASS(TestClassWithClassInfo, 22);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:48: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                     ^~
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:598:5: error: function 'qt_create_metaobjectdata<(anonymous namespace)::qt_meta_tag_ZN22TestClassWithClassInfoE_t>' with deduced return type cannot be used before it is defined
          TEST_CLASS(TestClassWithClassInfo, 22);
          ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:585:50: note: expanded from macro 'TEST_CLASS'
                  << &Class::staticMetaObject << int(::qt_call_create_metaobjectdata<qt_meta_tag_ZN##ScopeCounter##Class##E_t>().data.size()) \
                                                       ^
      /Users/qt/work/qt/qtdeclarative/tests/auto/qml/qqmlpropertycache/tst_qqmlpropertycache.cpp:17:5: note: 'qt_create_metaobjectdata<(anonymous namespace)::qt_meta_tag_ZN22TestClassWithClassInfoE_t>' declared here
          Q_OBJECT
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:145:5: note: expanded from macro 'Q_OBJECT'
          QT_OBJECT_GADGET_COMMON \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:130:5: note: expanded from macro 'QT_OBJECT_GADGET_COMMON'
          QT_META_OBJECT_VARS \
          ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qtmetamacros.h:121:47: note: expanded from macro 'QT_META_OBJECT_VARS'
          template <typename> static constexpr auto qt_create_metaobjectdata();       \
                                                    ^
      9 errors generated.
      

      Build log: https://testresults.qt.io/logs/qt/qtdeclarative/df200b20b6cc92e493c2ae0df5ba982431d5111b/MacOSMacOS_14arm64MacOSMacOS_14arm64Clangqtci-macos-14-arm-106-1a1f32UseConfigure_WarningsAreErrors/95d5fd6668f98e90653309218ee4603c8442409f/build_1731997744/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtdeclarative/tasks/1731997657

      Tested changes (refs/builds/qtci/dev/1731997654):
      https://codereview.qt-project.org/c/qt/qtdeclarative/+/603020/1 QtQml: Adjust to changed metatype flags calculation
      https://codereview.qt-project.org/c/qt/qtdeclarative/+/605063/2 Update dependencies on 'dev' in qt/qtdeclarative

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change