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

Error building OPC UA with clang-cl

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.0
    • Build System: CMake, OpcUA
    • None
    • Visual Studio 16.11.5
    • Windows

    Description

      Error while building OPC UA plugin from source. Compiler output:

       [7684/8928] Building CXX object qtopcua\src\plugins\opcua\...2541Plugin.dir______\3rdparty\open62541\open62541.c.obj
      FAILED: qtopcua/src/plugins/opcua/open62541/CMakeFiles/QOpen62541Plugin.dir/_//_/3rdparty/open62541/open62541.c.obj
      C:\PROGRA~2\MICROS~4\2019\PROFES~1\VC\Tools\Llvm\x64\bin\clang-cl.exe /nologo TP -DQOpen62541Plugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_OPCUA_LIB -DQT_PLUGIN -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtopcua\src\plugins\opcua\open62541\QOpen62541Plugin_autogen\include -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtopcua\src\plugins\opcua\open62541 -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtopcua\src\plugins\opcua\open62541\..\..\..\3rdparty\open62541 -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtCore -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\mkspecs\win32-clang-msvc -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\src\corelib -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtCore\6.2.0 -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtCore\6.2.0\QtCore -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtNetwork -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtOpcUa -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtopcua\src\opcua -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtOpcUa\6.2.0 -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtOpcUa\6.2.0\QtOpcUa -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\src\network -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtNetwork\6.2.0 -IC:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtbase\include\QtNetwork\6.2.0\QtNetwork -imsvc C:\Strawberry\c\include /DWIN32 /D_WINDOWS /Zi /DNDEBUG -O2 -MD /W3 /wd4530 /wd4577 -Zc:cplusplus -permissive utf-8 -Wno-ignored-attributes -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:wchar_t -guard:cf -std:c++17 /Zc:strictStrings /permissive /wd2362 /showIncludes /Foqtopcua\src\plugins\opcua\open62541\CMakeFiles\QOpen62541Plugin.dir__\3rdparty\open62541\open62541.c.obj /Fdqtopcua\src\plugins\opcua\open62541\CMakeFiles\QOpen62541Plugin.dir\ -c – C:\Projects\libs_qt6\qt-everywhere-src-6.2.0\qtopcua\src\3rdparty\open62541\open62541.c
      clang-cl: error: no such file or directory: '/permissive'; did you mean '/permissive-'?
      [7691/8928] Building CXX object qtopcua\src\plugins\opcua\...\CMakeFiles\QOpen62541Plugin.dir\qopen62541backend.cpp.obj
      ninja: build stopped: subcommand failed.

      configure.bat parameters:

      -opensource -shared -platform win32-clang-msvc -release -force-debug-info -nomake tests -nomake examples -feature-linguist -feature-pdf -skip qdoc

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            username50 qwerty qwerty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes