Closed xiaozhuai closed 2 years ago
vcpkg cannot do anything about an ICE (Error 1001). Upstream might have a workaround.
@Neumann-A Thanks. Should I report this to angle or Visual Studio? I succeed with vs 17.1.6 before. And Yesterday, I upgrade my vs to 17.2, it broken.
@JonLiu1993 I can suc build it on vs 17.1.6. Then I upgrade to 17.2, it broken. I've switch to English language pack, here is the log.
D:\vcpkg\vcpkg\buildtrees\angle\src\ee2b7d070a-83a419ab43.clean\src\compiler/translator/StaticType.h(156): fatal error C1001: Internal compiler error.
(compiler file 'msc1.cpp', line 1693)
To work around this problem, try simplifying or changing the program near the locations listed above.
If possible please provide a repro here: https://developercommunity.visualstudio.com
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
This issue was fixed by Visual Studio 2022 dev branch but have not published yet.
@JackBoosY Thanks! Waiting for it. Will it be published on 17.2 LTSC channel?
I upgrade to Visual Studio LTSC 17.2.1 and still got the same problem.
This is a compiler bug which means it should be reported through Developer Community. https://developercommunity.visualstudio.com/search?space=62
I know of an internal bug reported about this but don't know how to point you folks to it. I know the compiler team is looking at it because it breaks all the webkit/chromium forks.
OS Version Windows 11 22H2
Note I tweaked my x64-windows triplet by adding set(VCPKG_PLATFORM_TOOLSET v143)
I'm also encountering the same issue using compiler version 17.2.1. hopefully the compiler team will address this issue shortly as my application build is now broken (I assume the fault is compiler related and vcpkg)
install-x64-windows-dbg-out.log
Note I just updated to 17.2.2 which was released earlier today and the bug still persists.
It still doesn't work (Upgraded to the lastest version of compiler and vcpkg)
Still not working in 17.2.3
Unbelievable microsoft!!!
On Tue, May 31, 2022 at 11:28 PM jeremy-visionaid @.***> wrote:
Still not working in 17.2.3
— Reply to this email directly, view it on GitHub https://github.com/microsoft/vcpkg/issues/24704#issuecomment-1143077470, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTGRYCI65WGRHSUDIVNVLLVM3KEJANCNFSM5V4GDWPQ . You are receiving this because you commented.Message ID: @.***>
Still seems to be an issue in 17.2.4 as well.
error: building angle:x64-windows failed with: BUILD_FAILED package: angle[core]:x64-windows -> chromium_4472#3 vcpkg-tool version: 2022-03-30-692785ac944e81417840c6de244fb3e18a4b35eb vcpkg-scripts version: 3d8f78171 2022-06-15 (14 hours ago)
Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.2.4
Still not working in 17.2.5
I successfully installed in 17.3.0-pre.2.0
PS F:\Feature-test\angle\vcpkg> ./vcpkg install angle:x64-windows
Computing installation plan...
The following packages will be built and installed:
angle[core]:x64-windows -> chromium_4472#3
Detecting compiler hash for triplet "x64-windows"...
Restored 0 packages from C:\Users\test\AppData\Local\vcpkg\archives in 228.2 us. Use --debug to see more details.
Installing 1/1 angle:x64-windows...
Building angle[core]:x64-windows...
-- Using cached google-angle-d15be77864e18f407c317be6f6bc06ee2b7d070a.tar.gz.
-- Cleaning sources at F:/Feature-test/angle/vcpkg/buildtrees/angle/src/ee2b7d070a-83a419ab43.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source F:/Feature-test/angle/vcpkg/downloads/google-angle-d15be77864e18f407c317be6f6bc06ee2b7d070a.tar.gz
-- Applying patch 001-fix-uwp.patch
-- Applying patch 002-fix-builder-error.patch
-- Applying patch 003-fix-mingw.patch
-- Using source at F:/Feature-test/angle/vcpkg/buildtrees/angle/src/ee2b7d070a-83a419ab43.clean
-- Using cached F:/Feature-test/angle/vcpkg/downloads/angle-09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e.tar.gz
-- Extracting source F:/Feature-test/angle/vcpkg/downloads/angle-09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e.tar.gz
-- Applying patch third-party-zlib-far-undef.patch
-- Using source at F:/Feature-test/angle/vcpkg/buildtrees/angle/src/8ee76d4a8e-895bfc7289.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
PS F:\Feature-test\angle\vcpkg> ./vcpkg install angle:x64-windows --debug
[DEBUG] To include the environment variables in debug output, pass --debug-env
[DEBUG] Feature flag 'binarycaching' unset
[DEBUG] Feature flag 'manifests' unset
[DEBUG] Feature flag 'compilertracking' unset
[DEBUG] Feature flag 'registries' unset
[DEBUG] Feature flag 'versions' unset
[DEBUG] Failed to open: F:\Feature-test\angle\vcpkg\vcpkg-bundle.json
[DEBUG] Using scripts-root: F:\Feature-test\angle\vcpkg\scripts
[DEBUG] Bundle config: readonly=0, usegitregistry=0, embeddedsha=nullopt
[DEBUG] Using builtin-ports: F:\Feature-test\angle\vcpkg\ports
[DEBUG] Using installed-root: F:\Feature-test\angle\vcpkg\installed
[DEBUG] Using buildtrees-root: F:\Feature-test\angle\vcpkg\buildtrees
[DEBUG] Using packages-root: F:\Feature-test\angle\vcpkg\packages
[DEBUG] Using vcpkg-root: F:\Feature-test\angle\vcpkg
[DEBUG] Using scripts-root: F:\Feature-test\angle\vcpkg\scripts
[DEBUG] Using builtin-registry: F:\Feature-test\angle\vcpkg\versions
[DEBUG] Using downloads-root: F:\Feature-test\angle\vcpkg\downloads
[DEBUG] Default binary cache path is: C:\Users\test\AppData\Local\vcpkg\archives
Computing installation plan...
[DEBUG] CreateProcessW("F:\Feature-test\angle\vcpkg\downloads\tools\cmake-3.22.2-windows\cmake-3.22.2-windows-i386\bin\cmake.exe" --version)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 3736: cmd_execute_and_stream_data() returned 0 after 44571 us
[DEBUG] CreateProcessW("F:\Feature-test\angle\vcpkg\downloads\tools\cmake-3.22.2-windows\cmake-3.22.2-windows-i386\bin\cmake.exe" -DVCPKG_ROOT_DIR=F:/Feature-test/angle/vcpkg -DPACKAGES_DIR=F:/Feature-test/angle/vcpkg/packages -DBUILDTREES_DIR=F:/Feature-test/angle/vcpkg/buildtrees -D_VCPKG_INSTALLED_DIR=F:/Feature-test/angle/vcpkg/installed -DDOWNLOADS=F:/Feature-test/angle/vcpkg/downloads -DVCPKG_MANIFEST_INSTALL=OFF -P "F:\Feature-test\angle\vcpkg\buildtrees\0.vcpkg_tags.cmake")
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 3736: cmd_execute_and_stream_data() returned 0 after 20858 us
The following packages will be built and installed:
angle[core]:x64-windows -> chromium_4472#3
[DEBUG] CreateProcessW("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -all -prerelease -legacy -products * -format xml)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 3736: cmd_execute_and_stream_data() returned 0 after 33588 us
Detecting compiler hash for triplet "x64-windows"...
[DEBUG] Found path: C:\Program Files\Git\cmd\git.exe
[DEBUG] CreateProcessW("C:\Program Files\Git\cmd\git.exe" --version)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 3736: cmd_execute_and_stream_data() returned 0 after 30931 us
[DEBUG] CreateProcessW("F:\Feature-test\angle\vcpkg\downloads\tools\powershell-core-7.2.3-windows\pwsh.exe" --version)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 3736: cmd_execute_and_stream_data() returned 0 after 175927 us
[DEBUG] command line: cmd /c "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary/Build\vcvarsall.bat" -vcvars_ver=14.33.31517 amd64 2>&1 <NUL & echo cdARN4xjKueKScMy9C6H & set
[DEBUG] CreateProcessW(cmd /c "C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Auxiliary/Build\vcvarsall.bat" -vcvars_ver=14.33.31517 amd64 2>&1 <NUL & echo cdARN4xjKueKScMy9C6H & set)
[DEBUG] ReadFile() finished with GetLastError(): 109
[DEBUG] 3736: cmd_execute_and_stream_data() returned 0 after 903805 us
[DEBUG] **********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.3.0-pre.2.0
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
.......
Total elapsed time: 7.3 min
angle provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(unofficial-angle CONFIG REQUIRED)
# note: 9 additional targets are not displayed. target_link_libraries(main PRIVATE unofficial::angle::libEGL unofficial::angle::libANGLE unofficial::angle::libGLESv2 unofficial::angle::angle_common)
[DEBUG] D:\a\_work\1\s\src\vcpkg\install.cpp(1287):
[DEBUG] Time in subprocesses: 435588414 us
[DEBUG] Time in parsing JSON: 165 us
[DEBUG] Time in JSON reader: 139 us
[DEBUG] Time in filesystem: 52977 us
[DEBUG] Time in loading ports: 913 us
[DEBUG] Exiting after 7.3 min (438019836 us)
I successfully installed in 17.3.0-pre.2.0
@JonLiu1993 Great! Waiting for a stable release.
Still broken in 17.2.6.
In case anyone is still in need of a workaround, you could add the following to the desired triplet config:
set(VCPKG_PLATFORM_TOOLSET v142)
17.3.0 has dropped and Angle is now building successfully 👍
Host Environment
To Reproduce
./vcpkg install angle:x64-windows
install-x64-windows-dbg-out.log