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

Failure in Windows ARM64 static build of Qt 6.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Windows 10 (21H1), CMake 3.21
    • Platform/s:
      Windows

      Description

      Hi,

      I'm trying to build static libs of Qt 6.2 for Windows ARM64 from Source, by cross-compiling from a Windows x64 host machine. Following the environment vars specified here(Qt 6.2 Tools and Versions - Qt Wiki) for  Windows_10 (msvc2019-arm64) target, I've run the following configure command(from a build folder):

      ..\qt5\configure -static -nomake examples -skip qtquick3d -skip qt3d  -skip qtlocation -qt-host-path D:\TW\Tools\Qt\Windows-x64  -prefix ..\lib_winarm64 -DQT_QMAKE_TARGET_MKSPEC=win32-arm64-msvc -DCMAKE_MAKE_PROGRAM=D:/TW/Tools/Ninja/ninja.exe -DCMAKE_CONFIGURATION_TYPES="RelWithDebInfo;Debug" -DFEATURE_msvc_obj_debug_info=ON -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -cmake-generator Ninja

      The configure/cache gen happens, and after running "cmake --build . --parallel", the build fails with the following error:

      [2997/7262] Automatic MOC for target Qml
      FAILED: qtdeclarative/src/qml/Qml_autogen/timestamp qtdeclarative/src/qml/Qml_autogen/mocs_compilation.cpp D:/QTBuild/build/qtdeclarative/src/qml/Qml_autogen/timestamp D:/QTBuild/build/qtdeclarative/src/qml/Qml_autogen/mocs_compilation.cpp
      cmd.exe /C "cd /D D:\QTBuild\build\qtdeclarative\src\qml && D:\QtOfficial\Tools\CMake_64\bin\cmake.exe -E cmake_autogen D:/QTBuild/build/qtdeclarative/src/qml/CMakeFiles/Qml_autogen.dir/AutogenInfo.json Debug && D:\QtOfficial\Tools\CMake_64\bin\cmake.exe -E touch D:/QTBuild/build/qtdeclarative/src/qml/Qml_autogen/timestamp && D:\QtOfficial\Tools\CMake_64\bin\cmake.exe -E cmake_transform_depfile Ninja gccdepfile D:/QTBuild/qt5 D:/QTBuild/qt5/qtdeclarative/src/qml D:/QTBuild/build D:/QTBuild/build/qtdeclarative/src/qml D:/QTBuild/build/qtdeclarative/src/qml/Qml_autogen/deps D:/QTBuild/build/CMakeFiles/d/22a46e50067909309adde8200c57f7f100a62e4abd23fcea57e2db61867efdee.d"
      AutoMoc subprocess error
      ------------------------
      The moc process failed to compile
        "SRC:/qtdeclarative/src/qml/qml/qqmlloggingcategory_p.h"
      into
        "BIN:/qtdeclarative/src/qml/Qml_autogen/include/moc_qqmlloggingcategory_p.cpp"
      included by
        "SRC:/qtdeclarative/src/qml/qml/qqmlloggingcategory.cpp"Command
      -------
      D:/QTBuild/build/qtbase/bin/moc.exe -DBUILDING_QT__ -DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_MAKE_PROGRAM=D:/TW/Tools/Ninja/ninja.exe -DDebug -DENABLE_ASSEMBLER_WX_EXCLUSIVE=1 -DENABLE_DFG_JIT=0 -DENABLE_DFG_JIT_UTILITY_METHODS=1 -DENABLE_JIT_CONSTANT_BLINDING=0 -DENABLE_LLINT=0 -DFEATURE_msvc_obj_debug_info=ON -DJS_EXPORT_PRIVATE= -DNOMINMAX -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_QML_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_INTEGER_EVENT_COORDINATES -DQT_NO_URL_CAST_FROM_STRING -DQT_QMAKE_TARGET_MKSPEC=win32-arm64-msvc -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32 -DWTFInvokeCrashHook=qmlWTFInvokeCrashHook -DWTFReportAssertionFailure=qmlWTFReportAssertionFailure -DWTFReportAssertionFailureWithMessage=qmlWTFReportAssertionFailureWithMessage -DWTFReportBacktrace=qmlWTFReportBacktrace -DWTF_EXPORT_PRIVATE= -DWTF_USE_UDIS86=0 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -ID:/QTBuild/build/qtbase/include -ID:/QTBuild/build/qtbase/include/QtQml -ID:/QTBuild/qt5/qtdeclarative/src/qml -ID:/QTBuild/build/qtdeclarative/src/qml -ID:/QTBuild/build/qtdeclarative/src/qml/compiler -ID:/QTBuild/build/qtdeclarative/src/qml/jsruntime -ID:/QTBuild/build/qtdeclarative/src/qml/memory -ID:/QTBuild/build/qtdeclarative/src/qml/qmldirparser -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/assembler -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/disassembler -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/disassembler/udis86 -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/jit -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/runtime -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/stubs -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/stubs/runtime -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/stubs/wtf -ID:/QTBuild/qt5/qtdeclarative/src/3rdparty/masm/wtf -ID:/QTBuild/qt5/qtdeclarative/src/qml/.generated -ID:/QTBuild/qt5/qtdeclarative/src/qml/compiler -ID:/QTBuild/qt5/qtdeclarative/src/qml/debugger -ID:/QTBuild/qt5/qtdeclarative/src/qml/jsruntime -ID:/QTBuild/qt5/qtdeclarative/src/qml/memory -ID:/QTBuild/qt5/qtdeclarative/src/qml/qmldirparser -ID:/QTBuild/build/qtbase/include/QtQml/6.2.0 -ID:/QTBuild/build/qtbase/include/QtQml/6.2.0/QtQml -ID:/QTBuild/build/qtbase/src/corelib -ID:/QTBuild/build/qtbase/include/QtCore/6.2.0 -ID:/QTBuild/build/qtbase/include/QtCore/6.2.0/QtCore -ID:/QTBuild/build/qtbase/include/QtCore -ID:/QTBuild/qt5/qtbase/mkspecs/win32-msvc -ID:/QTBuild/build/qtbase/include/QtNetwork -ID:/QTBuild/build/qtdeclarative/src/qml/.generated/debug -ID:/QTBuild/build/qtdeclarative/src/qml/jit -ID:/QTBuild/qt5/qtdeclarative/src/qml/jit -ID:/QTBuild/qt5/qtdeclarative/src/qml/animations --output-json --output-dep-file -o D:/QTBuild/build/qtdeclarative/src/qml/Qml_autogen/include/moc_qqmlloggingcategory_p.cpp D:/QTBuild/qt5/qtdeclarative/src/qml/qml/qqmlloggingcategory_p.hOutput
      ------
      D:/QTBuild/qt5/qtdeclarative/src/qml/qml/qqmlloggingcategory_p.h(74:1): error: Parse error at "{"
      
      [3006/7262] Generating qqmljsgrammar.cpp, qqmljsgrammar_p.h, qqmljsparser_p.h, qqmljsparser.cpp
      ninja: build stopped: subcommand failed.
      

       

      The error occurs for both NMake and Ninja generators

        Attachments

        1. CMakeError.log
          50 kB
        2. CMakeOutput.log
          32 kB
        3. trace_log.zip
          14.41 MB
        4. CMakeLists.txt
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            sidmn SIDHARTH NAIR
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes