microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.27k stars 6.42k forks source link

[qt] build failure #34971

Closed huangjx-bazhou closed 8 months ago

huangjx-bazhou commented 1 year ago

Operating system

Windows 11

Compiler

MSVC

Steps to reproduce the behavior

.\vcpkg.exe install qt:x64-windows --x-buildtrees-root=E:/v

Failure logs

PS E:\huangjx\vcpkg> .\vcpkg.exe install qt:x64-windows --x-buildtrees-root=E:/v Computing installation plan... The following packages will be built and installed: qt[core,default-features]:x64-windows -> 6.6.0

-- Building x64-windows-dbg CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: D:/CMake/bin/cmake.exe --build . --config Debug --target install -- -v -j17 Working Directory: E:/v/qtwebengine/x64-windows-dbg See logs for more information: E:\v\qtwebengine\install-x64-windows-dbg-out.log

Call Stack (most recent call first): installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process) installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build) ports/qtwebengine/portfile.cmake:112 (vcpkg_cmake_install) scripts/ports.cmake:168 (include)

Additional context

D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe /nologo /showIncludes /FC -I........\src\here-src-6-1e08092769.clean\src\3rdparty\gn\src -I. -DNO_LAST_COMMIT_POSITION /O2 /DNDEBUG /Zc:inline /WX /DNOMINMAX /DUNICODE /DWIN32_LEAN_AND_MEAN /DWINVER=0x0A00 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_UNICODE /D_WIN32_WINNT=0x0A00 /FS /W4 /Zi /wd4099 /wd4100 /wd4127 /wd4244 /wd4267 /wd4505 /wd4577 /wd4838 /wd4996 /std:c++17 /GR- /D_HAS_EXCEPTIONS=0 /c ........\src\here-src-6-1e08092769.clean\src\3rdparty\gn\src\gn\commands.cc /Fosrc/gn/commands.obj E:\v\qtwebengine\src\here-src-6-1e08092769.clean\src\3rdparty\gn\src\gn\escape.h(1): error C2220: the following warning is treated as an error E:\v\qtwebengine\src\here-src-6-1e08092769.clean\src\3rdparty\gn\src\gn\escape.h(1): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss [69/197] CXX src/gn/command_format.obj ninja: build stopped: subcommand failed. [0/1] Generating gn.exe FAILED: gn.exe E:/v/qtwebengine/x64-windows-dbg/src/gn/gn.exe C:\Windows\system32\cmd.exe /C "cd /D E:\v\qtwebengine\x64-windows-dbg\src\gn && E:\v\qtwebengine\x64-windows-venv\Scripts\python.exe E:/v/qtwebengine/src/here-src-6-1e08092769.clean/src/3rdparty/gn/build/gen.py --no-last-commit-position --out-path E:/v/qtwebengine/x64-windows-dbg/src/gn/Release --cc "D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe" --cxx "D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe" --ld "D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe" --platform msvc --ar "D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/lib.exe" --qt-version 6.6.0.qtwebengine.qt.io && "D:\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe" -C E:/v/qtwebengine/x64-windows-dbg/src/gn/Release gn.exe" ninja: build stopped: subcommand failed. \gn && D:\CMake\bin\cmake.exe --build . && D:\CMake\bin\cmake.exe -E touch E:/v/qtwebengine/x64-windows-dbg/src/gn/src/gn-stamp/gn-build" [92/298] "D:\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\cl.exe" /TP -DNOMINMAX -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_AS_CONST=1 -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_PLUGIN -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DQT_WEBENGINEQUICKDELEGATESQML_LIB -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -Dqtwebenginequickdelegatesplugin_EXPORTS -IE:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui\qtwebenginequickdelegatesplugin_autogen\include -IE:\v\qtwebengine\src\here-src-6-1e08092769.clean\src\webenginequick\ui -IE:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui -IE:\v\qtwebengine\x64-windows-dbg\include -external:IE:\huangjx\vcpkg\installed\x64-windows\share\Qt6\mkspecs\win32-msvc -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6 -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtQml -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtCore -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtQmlIntegration -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtNetwork -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -std:c++17 -MDd /W3 /EHs-c- /wd4530 /wd4577 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -Zc:cplusplus -permissive- -utf-8 /showIncludes /Fosrc\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir\qtwebenginequickdelegatesplugin_autogen\mocs_compilation.cpp.obj /Fdsrc\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir\ /FS -c E:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui\qtwebenginequickdelegatesplugin_autogen\mocs_compilation.cpp cl : Command line warning D9025 : overriding '/EHs' with '/EHs-' cl : Command line warning D9025 : overriding '/EHc' with '/EHc-' [93/298] "D:\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\cl.exe" /TP -DNOMINMAX -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_AS_CONST=1 -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_PLUGIN -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DQT_WEBENGINEQUICKDELEGATESQML_LIB -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -Dqtwebenginequickdelegatesplugin_EXPORTS -IE:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui\qtwebenginequickdelegatesplugin_autogen\include -IE:\v\qtwebengine\src\here-src-6-1e08092769.clean\src\webenginequick\ui -IE:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui -IE:\v\qtwebengine\x64-windows-dbg\include -external:IE:\huangjx\vcpkg\installed\x64-windows\share\Qt6\mkspecs\win32-msvc -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6 -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtQml -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtCore -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtQmlIntegration -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtNetwork -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -std:c++17 -MDd /W3 /EHs-c- /wd4530 /wd4577 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -Zc:cplusplus -permissive- -utf-8 /showIncludes /Fosrc\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir.rcc\qrc_qtwebenginequickdelegatesplugin.cpp.obj /Fdsrc\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir\ /FS -c E:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui.rcc\qrc_qtwebenginequickdelegatesplugin.cpp cl : Command line warning D9025 : overriding '/EHs' with '/EHs-' cl : Command line warning D9025 : overriding '/EHc' with '/EHc-' [95/298] "D:\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\cl.exe" /TP -DNOMINMAX -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NETWORK_LIB -DQT_NO_AS_CONST -DQT_NO_AS_CONST=1 -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QEXCHANGE -DQT_PLUGIN -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DQT_WEBENGINEQUICKDELEGATESQML_LIB -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -Dqtwebenginequickdelegatesplugin_EXPORTS -IE:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui\qtwebenginequickdelegatesplugin_autogen\include -IE:\v\qtwebengine\src\here-src-6-1e08092769.clean\src\webenginequick\ui -IE:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui -IE:\v\qtwebengine\x64-windows-dbg\include -external:IE:\huangjx\vcpkg\installed\x64-windows\share\Qt6\mkspecs\win32-msvc -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6 -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtQml -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtCore -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtQmlIntegration -external:IE:\huangjx\vcpkg\installed\x64-windows\include\Qt6\QtNetwork -external:W0 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -std:c++17 -MDd /W3 /EHs-c- /wd4530 /wd4577 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:ternary -Zc:externConstexpr -Zc:wchar_t -bigobj -Zc:__cplusplus -permissive- -utf-8 /showIncludes /Fosrc\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir\qtwebenginequickdelegatesplugin_QtWebEngine_ControlsDelegatesPlugin.cpp.obj /Fdsrc\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir\ /FS -c E:\v\qtwebengine\x64-windows-dbg\src\webenginequick\ui\qtwebenginequickdelegatesplugin_QtWebEngine_ControlsDelegatesPlugin.cpp cl : Command line warning D9025 : overriding '/EHs' with '/EHs-' cl : Command line warning D9025 : overriding '/EHc' with '/EHc-' [96/298] C:\Windows\system32\cmd.exe /C "cd . && D:\CMake\bin\cmake.exe -E vs_link_dll --intdir=src\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\mt.exe --manifests -- "D:\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\Hostx64\x64\link.exe" src\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir\qtwebenginequickdelegatesplugin_autogen\mocs_compilation.cpp.obj src\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir\qtwebenginequickdelegatesplugin_QtWebEngine_ControlsDelegatesPlugin.cpp.obj src\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir.rcc\qrc_qtwebenginequickdelegatesplugin.cpp.obj src\webenginequick\ui\CMakeFiles\qtwebenginequickdelegatesplugin.dir\qtwebenginequickdelegatesplugin_resource.rc.res /out:Qt6\qml\QtWebEngine\ControlsDelegates\qtwebenginequickdelegatesplugind.dll /implib:Qt6\qml\QtWebEngine\ControlsDelegates\qtwebenginequickdelegatesplugind.lib /pdb:Qt6\qml\QtWebEngine\ControlsDelegates\qtwebenginequickdelegatesplugind.pdb /dll /version:0.0 /machine:x64 /nologo /debug /INCREMENTAL -DYNAMICBASE -NXCOMPAT -LARGEADDRESSAWARE lib\Qt6WebEngineQuickDelegatesQmld.lib E:\huangjx\vcpkg\installed\x64-windows\debug\lib\Qt6Qmld.lib E:\huangjx\vcpkg\installed\x64-windows\debug\lib\Qt6Networkd.lib ws2_32.lib shell32.lib E:\huangjx\vcpkg\installed\x64-windows\debug\lib\Qt6Cored.lib mpr.lib userenv.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." FAILED: src/gn/src/gn-stamp/gn-build E:/v/qtwebengine/x64-windows-dbg/src/gn/src/gn-stamp/gn-build C:\Windows\system32\cmd.exe /C "cd /D E:\v\qtwebengine\x64-windows-dbg\src\gn && D:\CMake\bin\cmake.exe --build . && D:\CMake\bin\cmake.exe -E touch E:/v/qtwebengine/x64-windows-dbg/src/gn/src/gn-stamp/gn-build" ninja: build stopped: subcommand failed.

Adela0814 commented 1 year ago

Please make sure you have the English language pack installed using the Visual Studio Installer. And you may need to enable utf-8 in Control panel - Region - Region Settings: image

zynfly commented 11 months ago

image I also encountered this error.

github-actions[bot] commented 11 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

jimwang118 commented 8 months ago

We hope your question was answered to your satisfaction; if it wasn't, you can reopen with more info.