Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
6.9.0 RC
-
None
-
Windows 11 (64-bit)
Description
While following the official recipe to build Qt6 source code on Windows 11 using VS 2022, I encountered the following error:
[6584/12407] Building CXX object qtopcua\src\opcua\CMakeFiles\OpcUa.dir\client\qopcuanodeids.cpp.obj FAILED: qtopcua/src/opcua/CMakeFiles/OpcUa.dir/client/qopcuanodeids.cpp.obj C:\PROGRA~1\MICROS~4\2022\PROFES~1\VC\Tools\MSVC\1442~1.344\bin\Hostx86\x64\cl.exe /nologo /TP -DNOMINMAX -DOpcUa_EXPORTS -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_OPCUA_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC_COMPAT -DQT_NETWORK_LIB -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_CONTEXTLESS_CONNECT=1 -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_FOREACH=1 -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_NO_STD_FORMAT_SUPPORT -DQT_USE_QSTRINGBUILDER -DUNICODE -DUSE_CUSTOM_NODEIDS_METAOBJECT -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -D_WINDLL -IC:\Qt6Mod\qt6\qt6-build\qtopcua\src\opcua\OpcUa_autogen\include -IC:\Qt6Mod\qt6\qt6-build\qtbase\include -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtOpcUa -IC:\Qt6Mod\qt6\qtopcua\src\opcua -IC:\Qt6Mod\qt6\qt6-build\qtopcua\src\opcua -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtOpcUa\6.10.0 -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtOpcUa\6.10.0\QtOpcUa -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtCore -IC:\Qt6Mod\qt6\qtbase\mkspecs\win32-msvc -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtNetwork -IC:\Qt6Mod\qt6\qt6-build\qtbase\src\corelib -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtCore\6.10.0 -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtCore\6.10.0\QtCore -IC:\Qt6Mod\qt6\qt6-build\qtbase\src\network -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtNetwork\6.10.0 -IC:\Qt6Mod\qt6\qt6-build\qtbase\include\QtNetwork\6.10.0\QtNetwork /DWIN32 /D_WINDOWS /DNDEBUG -O2 -Ob3 -O2 -Ob3 -std:c++17 -MD /W3 /wd5105 /constexpr:steps4600000 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -guard:cf -Gw /EHs-c- /wd4530 /wd4577 /YuC:/Qt6Mod/qt6/qt6-build/qtopcua/src/opcua/CMakeFiles/OpcUa.dir/cmake_pch.hxx /FpC:/Qt6Mod/qt6/qt6-build/qtopcua/src/opcua/CMakeFiles/OpcUa.dir/./cmake_pch.cxx.pch /FIC:/Qt6Mod/qt6/qt6-build/qtopcua/src/opcua/CMakeFiles/OpcUa.dir/cmake_pch.hxx /showIncludes /Foqtopcua\src\opcua\CMakeFiles\OpcUa.dir\client\qopcuanodeids.cpp.obj /Fdqtopcua\src\opcua\CMakeFiles\OpcUa.dir\ /FS -c C:\Qt6Mod\qt6\qtopcua\src\opcua\client\qopcuanodeids.cpp C:\Qt6Mod\qt6\qtopcua\src\opcua\client\qopcuanodeidsmetaobject.cpp(8075): fatal error C1060: compiler is out of heap space [6600/12407] Building CXX object qtopcua\src\opcua\CMakeFiles\OpcUa.dir\client\qopcuagenericstructhandlerprivate.cpp.obj ninja: build stopped: subcommand failed.
I am using the dev branch from GitHub and commit:
8f108aab07e4d2b5b8022e98ffa5433029e08269
The build commands typed on the console were:
git clone https://code.qt.io/qt/qt6.git
cd qt6
.\init-repository.batmkdir qt6-build
cd qt6-build
..\configure.bat -prefix C:\Qt6Patches
cmake --build .
It might be important to point out that VS2022 command prompt reports x86_x64 platform:
********************************************************************** ** Visual Studio 2022 Developer Command Prompt v17.12.3 ** Copyright (c) 2022 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x86_x64''