Uploaded image for project: 'Qt Automotive Suite'
  1. Qt Automotive Suite
  2. AUTOSUITE-1236

Conflicting keywork "interface" in MinGW build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 5.13.1
    • 5.13.1
    • Qt IVI
    • None

    Description

      Building Neptune with QSR enabled fails in MinGW:

      agent:2019/09/09 14:51:47 build.go:220: g++ -c -fno-keep-inline-dllexport -O2 -std=gnu+11 -fexceptions -mthreads -Wall -W -Wextra -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_IVICORE_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_QTSAFERENDERER_LIB -DQT_NEEDS_QMAIN -I. -I..\drivedata\frontend -I..\remotesettings\frontend -Ic:\Users\qt\work\install\include -Ic:\Users\qt\work\install\include\QtGui -Ic:\Users\qt\work\install\include\QtANGLE -Ic:\Users\qt\work\install\include\QtIviCore -Ic:\Users\qt\work\install\include\QtQml -Ic:\Users\qt\work\install\include\QtNetwork -Ic:\Users\qt\work\install\include\QtCore -Ic:\Users\qt\work\install\include\QtSafeRenderer -Irelease -IC:\VulkanSDK\1.0.51.0\include -Ic:\Users\qt\work\install\mkspecs\win32-g+ -o release\moc_safewindow.o release\moc_safewindow.cpp
      agent:2019/09/09 14:51:47 build.go:220: In file included from C:/MINGW730/mingw64/x86_64-w64-mingw32/include/oleidl.h:7:0,
      agent:2019/09/09 14:51:47 build.go:220: from C:/MINGW730/mingw64/x86_64-w64-mingw32/include/ole2.h:38,
      agent:2019/09/09 14:51:47 build.go:220: from C:/MINGW730/mingw64/x86_64-w64-mingw32/include/wtypes.h:12,
      agent:2019/09/09 14:51:47 build.go:220: from C:/MINGW730/mingw64/x86_64-w64-mingw32/include/winscard.h:10,
      agent:2019/09/09 14:51:47 build.go:220: from C:/MINGW730/mingw64/x86_64-w64-mingw32/include/windows.h:97,
      agent:2019/09/09 14:51:47 build.go:220: from c:\Users\qt\work\install\include/QtCore/qt_windows.h:64,
      agent:2019/09/09 14:51:47 build.go:220: from c:\Users\qt\work\install\include\QtGui/qopengl.h:49,
      agent:2019/09/09 14:51:47 build.go:220: from c:\Users\qt\work\install\include\QtGui/QtGui:45,
      agent:2019/09/09 14:51:47 build.go:220: from main.cpp:39:
      agent:2019/09/09 14:51:47 build.go:220: c:\Users\qt\work\install\include/QtIviCore/qiviabstractfeature.h:96:49: error: expected ',' or '...' before 'struct'
      agent:2019/09/09 14:51:47 build.go:220: explicit QIviAbstractFeature(const QString &interface, QObject *parent = nullptr);
      agent:2019/09/09 14:51:47 build.go:220: ^
      agent:2019/09/09 14:51:47 build.go:220: c:\Users\qt\work\install\include/QtIviCore/qiviabstractfeaturelistmodel.h:67:58: error: expected ',' or '...' before 'struct'
      agent:2019/09/09 14:51:47 build.go:220: explicit QIviAbstractFeatureListModel(const QString &interface, QObject *parent = nullptr);
      agent:2019/09/09 14:51:47 build.go:220: ^
      agent:2019/09/09 14:51:47 build.go:220: c:\Users\qt\work\install\include/QtIviCore/qiviserviceinterface.h:73:68: error: expected ',' or '...' before 'struct'
      agent:2019/09/09 14:51:48 build.go:220: virtual QIviFeatureInterface *interfaceInstance(const QString &interface) const = 0;
      agent:2019/09/09 14:51:48 build.go:220: ^
      agent:2019/09/09 14:51:48 build.go:220: c:\Users\qt\work\install\include/QtIviCore/qiviserviceinterface.h:75:59: error: expected ',' or '...' before 'struct'
      agent:2019/09/09 14:51:48 build.go:220: template <class T> T interfaceInstance(const QString &interface) const {
      agent:2019/09/09 14:51:48 build.go:220: ^
      agent:2019/09/09 14:51:48 build.go:220: c:\Users\qt\work\install\include/QtIviCore/qiviserviceinterface.h: In member function 'T QIviServiceInterface::interfaceInstance(const QString&) const':
      agent:2019/09/09 14:51:48 build.go:220: c:\Users\qt\work\install\include/QtIviCore/qiviserviceinterface.h:76:59: error: expected primary-expression before 'struct'
      agent:2019/09/09 14:51:48 build.go:220: T inst = qivi_interface_cast<T>(interfaceInstance(interface));
      agent:2019/09/09 14:51:48 build.go:220: ^
      agent:2019/09/09 14:51:48 build.go:220: Mingw32-make[3]: *** [Makefile.Release:1282: release/main.o] Error 1
      agent:2019/09/09 14:51:48 build.go:220: Mingw32-make[3]: *** Waiting for unfinished jobs....
      agent:2019/09/09 14:51:54 build.go:220: Mingw32-make[3]: Leaving directory 'C:/Users/qt/work/qt-apps/neptune3-ui/src/neptune3-ui-qsr-cluster'
      agent:2019/09/09 14:51:54 build.go:220: Mingw32-make[2]: *** [Makefile:38: release] Error 2
      agent:2019/09/09 14:51:54 build.go:220: Mingw32-make[2]: Leaving directory 'C:/Users/qt/work/qt-apps/neptune3-ui/src/neptune3-ui-qsr-cluster'
      agent:2019/09/09 14:51:54 build.go:220: Mingw32-make[1]: *** [Makefile:122: sub-neptune3-ui-qsr-cluster-make_first] Error 2
      agent:2019/09/09 14:51:54 build.go:220: Mingw32-make[1]: Leaving directory 'C:/Users/qt/work/qt-apps/neptune3-ui/src'
      agent:2019/09/09 14:51:54 build.go:220: Mingw32-make: *** [Makefile:97: sub-src-make_first] Error 2
      agent:2019/09/09 14:51:54 build.go:253: Process finished with error: exit status 2
      agent:2019/09/09 14:51:54 build.go:471: Executing scheduled instruction 1 of 1 - Upload all core dumps if there are some
      agent:2019/09/09 14:51:54 build.go:384: Skipping uploadCoreFiles() because CORE_FILES_PATH is not set
      agent:2019/09/09 14:51:54 build.go:473:
      agent:2019/09/09 14:51:54 agent.go:270: Build failed

      Attachments

        For Gerrit Dashboard: AUTOSUITE-1236
        # Subject Branch Project Status CR V

        Activity

          People

            teemu.holappa Teemu Holappa
            jujokini Jukka Jokiniva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes