Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18758

'qmljsmodelmanagerinterface.h syntax error' for builds on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 4.4.0
    • Qt Creator 4.5.0-beta1
    • Building Qt Creator
    • None
    • * Windows 10 x64,
      * mingw-w64 6.3.0,
      * MSVC 2015 Update 3,
      * Windows SDK 10.0.14393.33.
    • a4aa79a4f8da10256e923bca8fa4403436ea64dc

    Description

      Hello everyone,

      Got errors for builds using mingw-w64:

      mingw32-make[4]: Entering directory 'c:/QTCREATOR-4.4.82-dev/build/src/plugins/qmlprofiler'
      g++ -c -include debug\qtcreator_gui_pch.h -fno-keep-inline-dllexport -g -std=gnu++1y -Wextra -Wall -W -fexceptions -mthreads -DUNICODE -D_UNICODE -DQMLPROFILER_LIBRARY -DWITH_TESTS -D"RELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\"" -D"RELATIVE_LIBEXEC_PATH=\".\"" -D"RELATIVE_DATA_PATH=\"../share/qtcreator\"" -D"RELATIVE_DOC_PATH=\"../share/doc/qtcreator\"" -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050600 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQMAKE_AS_LIBRARY -DPROPARSER_THREAD_SAFE -DPROEVALUATOR_THREAD_SAFE -DPROEVALUATOR_CUMULATIVE -DPROEVALUATOR_DUAL_VFS -DPROEVALUATOR_SETENV -DQT_PLUGIN -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="\"c:/QTCREATOR-4.4.82-dev/build/src/plugins/qmlprofiler\"" -I..\..\..\src -I..\..\..\src -I..\..\libs -Ic:/QTCREATOR-4.4.82-dev/build/tools -I..\..\plugins -I..\..\shared -I..\..\libs\3rdparty -I. -Ic:\libQT-5.9-dev\GCC64DH\include -Ic:\libQT-5.9-dev\GCC64DH\include\QtQuickWidgets -Ic:\libQT-5.9-dev\GCC64DH\include\QtQuick -Ic:\libQT-5.9-dev\GCC64DH\include\QtWidgets -Ic:\libQT-5.9-dev\GCC64DH\include\QtGui -Ic:\libQT-5.9-dev\GCC64DH\include\QtANGLE -Ic:\libQT-5.9-dev\GCC64DH\include\QtQml -Ic:\libQT-5.9-dev\GCC64DH\include\QtNetwork -Ic:\libQT-5.9-dev\GCC64DH\include\QtTest -Ic:\libQT-5.9-dev\GCC64DH\include\QtConcurrent -Ic:\libQT-5.9-dev\GCC64DH\include\QtCore -Idebug -I. -Ic:\libQT-5.9-dev\GCC64DH\mkspecs\win32-g++  -o debug\qmlprofilerplugin.o qmlprofilerplugin.cpp
      In file included from C:/ProgramData/Mingw64/x86_64-w64-mingw32/include/oleidl.h:7:0,
                       from C:/ProgramData/Mingw64/x86_64-w64-mingw32/include/ole2.h:38,
                       from C:/ProgramData/Mingw64/x86_64-w64-mingw32/include/wtypes.h:12,
                       from C:/ProgramData/Mingw64/x86_64-w64-mingw32/include/winscard.h:10,
                       from C:/ProgramData/Mingw64/x86_64-w64-mingw32/include/windows.h:97,
                       from c:\libQT-5.9-dev\GCC64DH\include/QtCore/qt_windows.h:64,
                       from c:\libQT-5.9-dev\GCC64DH\include/QtGui/qopengl.h:49,
                       from c:\libQT-5.9-dev\GCC64DH\include/QtQuick/qsggeometry.h:44,
                       from c:\libQT-5.9-dev\GCC64DH\include/QtQuick/qsgnode.h:43,
                       from c:\libQT-5.9-dev\GCC64DH\include/QtQuick/qsgrendererinterface.h:43,
                       from c:\libQT-5.9-dev\GCC64DH\include/QtQuick/qquickwindow.h:44,
                       from c:\libQT-5.9-dev\GCC64DH\include\QtQuickWidgets/qquickwidget.h:44,
                       from c:\libQT-5.9-dev\GCC64DH\include\QtQuickWidgets/QQuickWidget:1,
                       from ..\..\plugins/qmlprofiler/flamegraphview.h:32,
                       from tests/flamegraphview_test.h:28,
                       from qmlprofilerplugin.cpp:37:
      ..\..\libs/qmljs/qmljsmodelmanagerinterface.h:245:59: error: expected ',' or '...' before 'struct'
           static void updateCppQmlTypes(QFutureInterface<void> &interface,
                                                                 ^
      Makefile.Debug:11217: recipe for target 'debug/qmlprofilerplugin.o' failed
      mingw32-make[4]: *** [debug/qmlprofilerplugin.o] Error 1
      mingw32-make[4]: Leaving directory 'c:/QTCREATOR-4.4.82-dev/build/src/plugins/qmlprofiler'
      Makefile:36: recipe for target 'debug' failed
      mingw32-make[3]: *** [debug] Error 2
      mingw32-make[3]: Leaving directory 'c:/QTCREATOR-4.4.82-dev/build/src/plugins/qmlprofiler'
      Makefile:1554: recipe for target 'sub-qmlprofiler-make_first' failed
      mingw32-make[2]: *** [sub-qmlprofiler-make_first] Error 2
      mingw32-make[2]: Leaving directory 'c:/QTCREATOR-4.4.82-dev/build/src/plugins'
      Makefile:131: recipe for target 'sub-plugins-make_first-ordered' failed
      mingw32-make[1]: *** [sub-plugins-make_first-ordered] Error 2
      mingw32-make[1]: Leaving directory 'c:/QTCREATOR-4.4.82-dev/build/src'
      Makefile:41: recipe for target 'sub-src-make_first-ordered' failed
      mingw32-make: *** [sub-src-make_first-ordered] Error 2

      and MSVC:

              cl -c -FIqtcreator_gui_pch.h -Yuqtcreator_gui_pch.h -Fpdebug\QmlProfilerd_pch.pch -nologo -Zc:wchar_t -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zi -MDd -W3 -w34100 -w34189 -w44996 -w44456 -w44457 -w44458 -wd4577 -wd4467 -EHsc /Fddebug\QmlProfilerd.vc.pdb -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQMLPROFILER_LIBRARY -DWITH_TESTS -D"RELATIVE_PLUGIN_PATH=\"../lib/qtcreator/plugins\"" -D"RELATIVE_LIBEXEC_PATH=\".\"" -D"RELATIVE_DATA_PATH=\"../share/qtcreator\"" -D"RELATIVE_DOC_PATH=\"../share/doc/qtcreator\"" -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050600 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -D_CRT_SECURE_NO_WARNINGS -DQMAKE_AS_LIBRARY -DPROPARSER_THREAD_SAFE -DPROEVALUATOR_THREAD_SAFE -DPROEVALUATOR_CUMULATIVE -DPROEVALUATOR_DUAL_VFS -DPROEVALUATOR_SETENV -DQT_PLUGIN -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="\"c:/QTCREATOR-4.4.82-dev/build/src/plugins/qmlprofiler\"" -D_WINDLL -I..\..\..\src -I..\..\..\src -I..\..\libs -Ic:/QTCREATOR-4.4.82-dev/build/tools -I..\..\plugins -I..\..\shared -I..\..\libs\3rdparty -I. -Ic:\libQT-5.9-dev\MSVC64DH\include -Ic:\libQT-5.9-dev\MSVC64DH\include\QtQuickWidgets -Ic:\libQT-5.9-dev\MSVC64DH\include\QtQuick -Ic:\libQT-5.9-dev\MSVC64DH\include\QtWidgets -Ic:\libQT-5.9-dev\MSVC64DH\include\QtGui -Ic:\libQT-5.9-dev\MSVC64DH\include\QtANGLE -Ic:\libQT-5.9-dev\MSVC64DH\include\QtQml -Ic:\libQT-5.9-dev\MSVC64DH\include\QtNetwork -Ic:\libQT-5.9-dev\MSVC64DH\include\QtTest -Ic:\libQT-5.9-dev\MSVC64DH\include\QtConcurrent -Ic:\libQT-5.9-dev\MSVC64DH\include\QtCore -Idebug -I. -Ic:\libQT-5.9-dev\MSVC64DH\mkspecs\win32-msvc -Fodebug\ @C:\Users\test\AppData\Local\Temp\nm1381.tmp
      qmlprofilerplugin.cpp
      c:\QTCREATOR-4.4.82-dev\build\src\libs\qmljs/qmljsmodelmanagerinterface.h(245): error C2332: 'struct': missing tag name
      c:\QTCREATOR-4.4.82-dev\build\src\libs\qmljs/qmljsmodelmanagerinterface.h(245): error C2144: syntax error: 'QmlJS::<unnamed-tag>' should be preceded by ')'
      c:\QTCREATOR-4.4.82-dev\build\src\libs\qmljs/qmljsmodelmanagerinterface.h(245): error C2144: syntax error: 'QmlJS::<unnamed-tag>' should be preceded by ';'
      c:\QTCREATOR-4.4.82-dev\build\src\libs\qmljs/qmljsmodelmanagerinterface.h(245): error C2059: syntax error: ','
      c:\QTCREATOR-4.4.82-dev\build\src\libs\qmljs/qmljsmodelmanagerinterface.h(248): error C2059: syntax error: ')'
      c:\QTCREATOR-4.4.82-dev\build\src\libs\qmljs/qmljsmodelmanagerinterface.h(248): error C2238: unexpected token(s) preceding ';'
      qmlprofilerviewmanager.cpp
      qmltypedevent.cpp
      scenegraphtimelinemodel.cpp
      qmlprofilertextmark.cpp
      Generating Code...
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.

      Reproduced for:

      • builds with Debug configuration.

      Not reproduced for:

      • builds with Release configuration,
      • builds with Debug configuration and PR # 202384 reverted.

      Alexander

       

      Attachments

        Activity

          People

            mabenell Marco Benelli
            sav sav
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: