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

Build errors in qtqmlcompilerplus: error: no matching member function for call to 'run'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.5
    • Fix Version/s: 6.5
    • Component/s: QML: Compiler
    • Labels:
      None
    • Commits:
      c50f54a309dd49731e84ec35a36ebb1760f39c1c

      Description

      The dependency update round fails for qtqmlcompilerplus in the dev branch:

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

      See http://ci-files01-hki.intra.qt.io:8080/coin/logview/qt/tqtc-qmlcompilerplus/60bd41e7bb53330e70de05f1a21b59df5bb74a97/MacOSMacOS_12arm64MacOSMacOS_12arm64Clangqtci-macos-12-arm64UseConfigure_WarningsAreErrors/0220124172b626cd14408e482da438b72c895eb5/build_1657236665:

      In file included from 
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:22:
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen_p.h:64:46:
       error: non-virtual member function marked 'override' hides virtual 
      member function
                  const QmlIR::Binding &irBinding) override;
                                                   ^
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljscompiler_p.h:66:72:
       note: hidden overloaded virtual function 
      'QQmlJSAotCompiler::compileBinding' declared here: different number of 
      parameters (3 vs 2)
          virtual std::variant<QQmlJSAotFunction, 
      QQmlJS::DiagnosticMessage> compileBinding(
                                                                             ^
      In file included from 
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:22:
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen_p.h:67:48:
       error: non-virtual member function marked 'override' hides virtual 
      member function
      
      316: 
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljscompiler_p.h:66:72:
       note: hidden overloaded virtual function 
      'QQmlJSAotCompiler::compileBinding' declared here: different number of 
      parameters (3 vs 2)
          virtual std::variant<QQmlJSAotFunction, 
      QQmlJS::DiagnosticMessage> compileBinding(
                                                                             ^
      In file included from 
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:22:
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen_p.h:67:48:
       error: non-virtual member function marked 'override' hides virtual 
      member function
                  const QmlIR::Function &irFunction) override;
                                                     ^
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljscompiler_p.h:69:72:
       note: hidden overloaded virtual function 
      'QQmlJSAotCompiler::compileFunction' declared here: different number of 
      parameters (3 vs 2)
          virtual std::variant<QQmlJSAotFunction, 
      QQmlJS::DiagnosticMessage> compileFunction(
                                                                             ^
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:128:31:
       error: no matching constructor for initialization of 
      'QQmlJSFunctionInitializer'
      
      326: 
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:128:31:
       error: no matching constructor for initialization of 
      'QQmlJSFunctionInitializer'
          QQmlJSFunctionInitializer initializer(&m_typeResolver, 
      m_currentObject, m_currentScope);
                                    ^           
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:25:5:
       note: candidate constructor not viable: no known conversion from 'const
       QmlIR::Object *' to 'const QV4::CompiledData::Location' for 2nd 
      argument
          QQmlJSFunctionInitializer(
          ^
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:23:25:
       note: candidate constructor not viable: requires 1 argument, but 3 were
       provided
          Q_DISABLE_COPY_MOVE(QQmlJSFunctionInitializer)
                              ^
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:23:25:
       note: candidate constructor not viable: requires 1 argument, but 3 were
       provided
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:131:56:
       error: no matching member function for call to 'run'
      
      335: 
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:23:25:
       note: candidate constructor not viable: requires 1 argument, but 3 were
       provided
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:131:56:
       error: no matching member function for call to 'run'
          QQmlJSCompilePass::Function function = initializer.run(context, 
      name, irBinding, &error);
                                                 ~~~~~~~~~~~~^~~
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:39:33:
       note: candidate function not viable: no known conversion from 'const 
      QmlIR::Binding' to 'QQmlJS::AST::Node *' for 3rd argument
          QQmlJSCompilePass::Function run(
                                      ^
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:34:33:
       note: candidate function not viable: requires 5 arguments, but 4 were 
      provided
          QQmlJSCompilePass::Function run(
                                      ^
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:152:31:
       error: no matching constructor for initialization of 
      'QQmlJSFunctionInitializer'
      
      345: 
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:152:31:
       error: no matching constructor for initialization of 
      'QQmlJSFunctionInitializer'
          QQmlJSFunctionInitializer initializer(&m_typeResolver, 
      m_currentObject, m_currentScope);
                                    ^           
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:25:5:
       note: candidate constructor not viable: no known conversion from 'const
       QmlIR::Object *' to 'const QV4::CompiledData::Location' for 2nd 
      argument
          QQmlJSFunctionInitializer(
          ^
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:23:25:
       note: candidate constructor not viable: requires 1 argument, but 3 were
       provided
          Q_DISABLE_COPY_MOVE(QQmlJSFunctionInitializer)
                              ^
      /Users/qt/work/install/lib/QtQmlCompiler.framework/Headers/6.5.0/QtQmlCompiler/private/qqmljsfunctioninitializer_p.h:23:25:
       note: candidate constructor not viable: requires 1 argument, but 3 were
       provided
      /Users/qt/work/qt/tqtc-qmlcompilerplus/src/qmlcompilerplus/cppcodegen.cpp:155:56:
       error: no matching member function for call to 'run'
      
      362:     QQmlJSCompilePass::Function run(
                                      ^
      6 errors generated.
      

      Build log: http://ci-files01-hki.intra.qt.io/cilogs/qt/tqtc-qmlcompilerplus/60bd41e7bb53330e70de05f1a21b59df5bb74a97/MacOSMacOS_12arm64MacOSMacOS_12arm64Clangqtci-macos-12-arm64UseConfigure_WarningsAreErrors/0220124172b626cd14408e482da438b72c895eb5/build_1657236665/log.txt.gz

      Details: http://ci-files01-hki.intra.qt.io:8080/coin/integration/qt/tqtc-qmlcompilerplus/tasks/1657236577

        Attachments

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

          Activity

            People

            Assignee:
            qtqmlteam Qt Qml Team User
            Reporter:
            tarjasundqvist Tarja Sundqvist
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes