vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

[v8] build error on x64-windows

Open dschu012 opened this issue 3 months ago • 2 comments

Package: v8:[email protected]#8

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.50.35719.0
  • CMake Version: 3.30.1
  • vcpkg-tool version: 2025-10-16-71538f2694db93da4668782d094768ba74c45991 vcpkg-scripts version: d081671f0e 2025-12-01 (52 minutes ago)

To Reproduce

vcpkg install v8

Failure logs

Downloading msys2-pkgconf-2.4.3-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/pkgconf-2.4.3-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-pkgconf-2.4.3-1-x86_64.pkg.tar.zst
Downloading msys2-bash-5.2.037-2-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/bash-5.2.037-2-x86_64.pkg.tar.zst
Successfully downloaded msys2-bash-5.2.037-2-x86_64.pkg.tar.zst
Downloading msys2-coreutils-8.32-5-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/coreutils-8.32-5-x86_64.pkg.tar.zst
Successfully downloaded msys2-coreutils-8.32-5-x86_64.pkg.tar.zst
Downloading msys2-file-5.46-2-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/file-5.46-2-x86_64.pkg.tar.zst
Successfully downloaded msys2-file-5.46-2-x86_64.pkg.tar.zst
Downloading msys2-gawk-5.3.2-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/gawk-5.3.2-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-gawk-5.3.2-1-x86_64.pkg.tar.zst
Downloading msys2-grep-1~3.0-7-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/grep-1~3.0-7-x86_64.pkg.tar.zst
Successfully downloaded msys2-grep-1~3.0-7-x86_64.pkg.tar.zst
Downloading msys2-gzip-1.14-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/gzip-1.14-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-gzip-1.14-1-x86_64.pkg.tar.zst
Downloading msys2-diffutils-3.12-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/diffutils-3.12-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-diffutils-3.12-1-x86_64.pkg.tar.zst
Downloading msys2-make-4.4.1-2-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/make-4.4.1-2-x86_64.pkg.tar.zst
Successfully downloaded msys2-make-4.4.1-2-x86_64.pkg.tar.zst
-- Using cached msys2-pkgconf-2.4.3-1-x86_64.pkg.tar.zst
Downloading msys2-sed-4.9-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/sed-4.9-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-sed-4.9-1-x86_64.pkg.tar.zst
Downloading msys2-msys2-runtime-3.6.2-2-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.6.2-2-x86_64.pkg.tar.zst
Successfully downloaded msys2-msys2-runtime-3.6.2-2-x86_64.pkg.tar.zst
Downloading msys2-libiconv-1.18-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/libiconv-1.18-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-libiconv-1.18-1-x86_64.pkg.tar.zst
Downloading msys2-libintl-0.22.5-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/libintl-0.22.5-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-libintl-0.22.5-1-x86_64.pkg.tar.zst
Downloading msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/gmp-6.3.0-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-gmp-6.3.0-1-x86_64.pkg.tar.zst
Downloading msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/gcc-libs-13.3.0-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-gcc-libs-13.3.0-1-x86_64.pkg.tar.zst
Downloading msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/libbz2-1.0.8-4-x86_64.pkg.tar.zst
Successfully downloaded msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst
Downloading msys2-liblzma-5.8.1-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/liblzma-5.8.1-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-liblzma-5.8.1-1-x86_64.pkg.tar.zst
Downloading msys2-libzstd-1.5.7-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/libzstd-1.5.7-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-libzstd-1.5.7-1-x86_64.pkg.tar.zst
Downloading msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/zlib-1.3.1-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-zlib-1.3.1-1-x86_64.pkg.tar.zst
Downloading msys2-libreadline-8.2.013-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/libreadline-8.2.013-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-libreadline-8.2.013-1-x86_64.pkg.tar.zst
Downloading msys2-mpfr-4.2.2-1-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/mpfr-4.2.2-1-x86_64.pkg.tar.zst
Successfully downloaded msys2-mpfr-4.2.2-1-x86_64.pkg.tar.zst
Downloading msys2-libpcre-8.45-5-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/libpcre-8.45-5-x86_64.pkg.tar.zst
Successfully downloaded msys2-libpcre-8.45-5-x86_64.pkg.tar.zst
Downloading msys2-ncurses-6.5.20240831-2-x86_64.pkg.tar.zst, trying https://mirror.msys2.org/msys/x86_64/ncurses-6.5.20240831-2-x86_64.pkg.tar.zst
Successfully downloaded msys2-ncurses-6.5.20240831-2-x86_64.pkg.tar.zst
-- Using msys root at D:/Git/vcpkg/downloads/tools/msys2/9f5744ea01eda4df
-- Fetching https://chromium.googlesource.com/v8/v8.git 7d3d62c91f69a702e5aa54c6b4dbbaa883683717...
-- Extracting source D:/Git/vcpkg/downloads/v8-7d3d62c91f69a702e5aa54c6b4dbbaa883683717.tar.gz
-- Applying patch D:/Git/vcpkg/ports/v8/v8.patch
-- Using source at D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean
-- Fetching submodules
-- Generating v8 build files. Please wait...
-- Generating build (x64-windows-dbg)...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
    Command failed: D:/Git/vcpkg/installed/x64-windows/tools/gn/gn.exe gen D:/Git/vcpkg/buildtrees/v8/x64-windows-dbg "--args=is_component_build=true target_cpu=\"x64\" v8_monolithic=false v8_use_external_startup_data=true use_sysroot=false is_clang=false use_custom_libcxx=false v8_enable_verify_heap=false icu_use_data_file=false is_debug=true enable_iterator_debugging=true pkg_config_libdir=\"/d/Git/vcpkg/installed/x64-windows/debug/lib/pkgconfig\""
    Working Directory: D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean
    Error code: 1
    See logs for more information:
      D:\Git\vcpkg\buildtrees\v8\generate-x64-windows-dbg-out.log
      D:\Git\vcpkg\buildtrees\v8\generate-x64-windows-dbg-err.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-gn/vcpkg_gn_configure.cmake:10 (vcpkg_execute_required_process)
  installed/x64-windows/share/vcpkg-gn/vcpkg_gn_configure.cmake:34 (z_vcpkg_gn_configure_generate)
  ports/v8/portfile.cmake:161 (vcpkg_gn_configure)
  scripts/ports.cmake:206 (include)



D:\Git\vcpkg\buildtrees\v8\generate-x64-windows-dbg-out.log
ERROR at //build/config/win/visual_studio_version.gni:27:7: Script returned non-zero exit code.
      exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
      ^----------
Current dir: D:/Git/vcpkg/buildtrees/v8/x64-windows-dbg/
Command: D:/Git/vcpkg/installed/x64-windows/manual-tools/vcpkg-tool-python2/python.exe D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean/build/vs_toolchain.py get_toolchain_dir
Returned 1.
See //build/toolchain/win/BUILD.gn:8:1: whence it was imported.
import("//build/config/win/visual_studio_version.gni")
^----------------------------------------------------
See //BUILD.gn:1195:1: which caused the file to be included.
action("postmortem-metadata") {
^------------------------------
D:\Git\vcpkg\buildtrees\v8\generate-x64-windows-dbg-err.log
Traceback (most recent call last):
  File "D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean/build/vs_toolchain.py", line 573, in <module>
    sys.exit(main())
  File "D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean/build/vs_toolchain.py", line 569, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean/build/vs_toolchain.py", line 546, in GetToolchainDir
    runtime_dll_dirs = SetEnvironmentAndGetRuntimeDllDirs()
  File "D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean/build/vs_toolchain.py", line 106, in SetEnvironmentAndGetRuntimeDllDirs
    os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath()
  File "D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean/build/vs_toolchain.py", line 197, in DetectVisualStudioPath
    version_as_year = GetVisualStudioVersion()
  File "D:/Git/vcpkg/buildtrees/v8/src/a883683717-d6c82ef7bb.clean/build/vs_toolchain.py", line 187, in GetVisualStudioVersion
    ' Supported versions are: %s.' % supported_versions_str)
Exception: No supported Visual Studio can be found. Supported versions are: 16.0 (2019), 15.0 (2017).

dschu012 avatar Dec 01 '25 20:12 dschu012

The error occurs because it's looking for Exception: No supported Visual Studio can be found. Supported versions are: 16.0 (2019), 15.0 (2017). For Visual Studio 2019 and 2017, the port itself needs to be updated for the new versions.

RuslanSemchenko avatar Dec 02 '25 08:12 RuslanSemchenko

btw, The Chromium team has upgraded the required Visual Studio toolchain version to VS2022.

End of support for Window SDK 10.0.19041 is 2025-10-14

WangHoi avatar Dec 04 '25 14:12 WangHoi