microsoft / vcpkg

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

[v8] Build error #33447

Open bacoln opened 1 year ago

bacoln commented 1 year ago

Copy issue body from


E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py:12: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
  import pipes
Traceback (most recent call last):
  File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 573, in <module>
    sys.exit(main())
             ^^^^^^
  File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 569, in main
    return commands[sys.argv[1]](*sys.argv[2:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 546, in GetToolchainDir
    runtime_dll_dirs = SetEnvironmentAndGetRuntimeDllDirs()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 106, in SetEnvironmentAndGetRuntimeDllDirs
    os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath()
StarGate-One commented 1 year ago

See How to report a package build failure [explanation video] #30604

bacoln commented 1 year ago

DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13

Adela0814 commented 1 year ago

Please provide your repro steps and failure logs. see https://github.com/microsoft/vcpkg/issues/30604.

bacoln commented 1 year ago

Package: v8:x64-windows -> 9.1.269.39#6

Host Environment

To Reproduce

vcpkg install Failure logs

-- Using cached msys2-pkgconf-1.9.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.015-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.44-5-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.2.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.12-2-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-1.9.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.21-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.2.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-11.3.0-3-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.2.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.001-3-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-3-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.4-1-x86_64.pkg.tar.zst.
-- Using msys root at E:/Program/vcpkg/downloads/tools/msys2/fe2fc2a8e5496621
-- Using cached E:/Program/vcpkg/downloads/v8-7d3d62c91f69a702e5aa54c6b4dbbaa883683717.tar.gz
-- Cleaning sources at E:/Program/vcpkg/buildtrees/v8/src/a883683717-e774d37ef1.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source E:/Program/vcpkg/downloads/v8-7d3d62c91f69a702e5aa54c6b4dbbaa883683717.tar.gz
-- Applying patch E:/Program/vcpkg/ports/v8/v8.patch
-- Using source at E:/Program/vcpkg/buildtrees/v8/src/a883683717-e774d37ef1.clean
-- Fetching submodules
-- Generating v8 build files. Please wait...
-- Generating build (x64-windows-dbg)...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: E:/C++/ZYQQNT/vcpkg_installed/x64-windows/tools/gn/gn.exe gen E:/Program/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=\"/e/C++/ZYQQNT/vcpkg_installed/x64-windows/debug/lib/pkgconfig\""
    Working Directory: E:/Program/vcpkg/buildtrees/v8/src/a883683717-e774d37ef1.clean
    Error code: 1
    See logs for more information:
      E:\Program\vcpkg\buildtrees\v8\generate-x64-windows-dbg-out.log
      E:\Program\vcpkg\buildtrees\v8\generate-x64-windows-dbg-err.log

Call Stack (most recent call first):
  E:/C++/ZYQQNT/vcpkg_installed/x64-windows/share/vcpkg-gn/vcpkg_gn_configure.cmake:11 (vcpkg_execute_required_process)
  E:/C++/ZYQQNT/vcpkg_installed/x64-windows/share/vcpkg-gn/vcpkg_gn_configure.cmake:35 (z_vcpkg_gn_configure_generate)
  ports/v8/portfile.cmake:150 (vcpkg_gn_configure)
  scripts/ports.cmake:147 (include)
E:\Program\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: E:/Program/vcpkg/buildtrees/v8/x64-windows-dbg/ Command: E:/Program/vcpkg/downloads/tools/python/python-3.11.4-x64/python.exe E:/Program/vcpkg/buildtrees/v8/src/a883683717-e774d37ef1.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") { ^------------------------------ ```
E:\Program\vcpkg\buildtrees\v8\generate-x64-windows-dbg-err.log ``` E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py:12: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13 import pipes Traceback (most recent call last): File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 573, in sys.exit(main()) ^^^^^^ File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 569, in main return commands[sys.argv[1]](*sys.argv[2:]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 546, in GetToolchainDir runtime_dll_dirs = SetEnvironmentAndGetRuntimeDllDirs() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 106, in SetEnvironmentAndGetRuntimeDllDirs os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath() ^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 197, in DetectVisualStudioPath version_as_year = GetVisualStudioVersion() ^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Program\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 186, in GetVisualStudioVersion raise Exception('No supported Visual Studio can be found.' Exception: No supported Visual Studio can be found. Supported versions are: 16.0 (2019), 15.0 (2017). ```
**Additional context**
vcpkg.json ``` { "name": "zhyee", "description": "中异软件", "homepage": "http://zhongyee.cn", "license": "GPL-3.0-or-later", "version-string": "latest", "dependencies": [ "v8" ], "maintainers": [ "zhyee" ], "supports": "windows" } ```
StarGate-One commented 1 year ago

Call Stack (most recent call first): E:/C++/ZYQQNT/vcpkg_installed/x64-windows/share/vcpkg-gn/vcpkg_gn_configure.cmake:11 (vcpkg_execute_required_process) E:/C++/ZYQQNT/vcpkg_installed/x64-windows/share/vcpkg-gn/vcpkg_gn_configure.cmake:35 (z_vcpkg_gn_configure_generate)

I might suggest changing the path of vcpkg from E:\C++ to something like E:\CPP as many of the tools used by vcpkg have been around for a long time and do not like spaces and/or special characters in the path name.

Adela0814 commented 1 year ago

@bacoln Have you tried changing the vcpkg root directory to solve your problem?

raphtalia commented 1 year ago

Package: v8:x64-windows -> 9.1.269.39#4

Host Environment

To Reproduce

vcpkg install Failure logs

Consider adding vcpkg-tool-gn as a host dependency of this port or create an issue at https://github.com/microsoft/vcpkg/issues
-- Found external ninja('1.11.0').
-- Using cached msys2-pkgconf-1.9.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.015-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.44-5-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.2.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.12-2-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-1.9.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.21-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.2.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-11.3.0-3-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.2.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.001-3-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-3-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.4-1-x86_64.pkg.tar.zst.
-- Using msys root at C:/Users/kriss/Documents/GitHub/vcpkg/downloads/tools/msys2/fe2fc2a8e5496621
-- Using cached C:/Users/kriss/Documents/GitHub/vcpkg/downloads/v8-7d3d62c91f69a702e5aa54c6b4dbbaa883683717.tar.gz
-- Cleaning sources at C:/Users/kriss/Documents/GitHub/vcpkg/buildtrees/v8/src/a883683717-e774d37ef1.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/kriss/Documents/GitHub/vcpkg/downloads/v8-7d3d62c91f69a702e5aa54c6b4dbbaa883683717.tar.gz
-- Applying patch C:/Users/kriss/AppData/Local/vcpkg/registries/git-trees/f57ec75cb9169900555359752c65e8e4c79c34ec/v8.patch
-- Using source at C:/Users/kriss/Documents/GitHub/vcpkg/buildtrees/v8/src/a883683717-e774d37ef1.clean
-- Fetching submodules
-- Generating v8 build files. Please wait...
CMake Warning at scripts/cmake/vcpkg_configure_gn.cmake:20 (message):
  This function 'vcpkg_configure_gn' is obsolete.  Use 'vcpkg_gn_configure'
  in port 'vcpkg-gn'.
Call Stack (most recent call first):
  C:/Users/kriss/AppData/Local/vcpkg/registries/git-trees/f57ec75cb9169900555359752c65e8e4c79c34ec/portfile.cmake:150 (vcpkg_configure_gn)
  scripts/ports.cmake:147 (include)

-- Generating build (x64-windows-dbg)...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: C:/Users/kriss/Documents/GitHub/vcpkg/downloads/tools/gn/q5ExVHmXyD34Q_Tzb-aRxsPipO-e37-csVRhVM7IJh0C/gn.exe gen C:/Users/kriss/Documents/GitHub/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=\"/c/Users/kriss/Documents/GitHub/ckts/ckts/vcpkg_installed/x64-windows/debug/lib/pkgconfig\""
    Working Directory: C:/Users/kriss/Documents/GitHub/vcpkg/buildtrees/v8/src/a883683717-e774d37ef1.clean
    Error code: 1
    See logs for more information:
      C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\generate-x64-windows-dbg-out.log
      C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\generate-x64-windows-dbg-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_gn.cmake:9 (vcpkg_execute_required_process)
  scripts/cmake/vcpkg_configure_gn.cmake:38 (z_vcpkg_configure_gn_generate)
  C:/Users/kriss/AppData/Local/vcpkg/registries/git-trees/f57ec75cb9169900555359752c65e8e4c79c34ec/portfile.cmake:150 (vcpkg_configure_gn)
  scripts/ports.cmake:147 (include)
C:\Users\kriss\Documents\GitHub\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: C:/Users/kriss/Documents/GitHub/vcpkg/buildtrees/v8/x64-windows-dbg/ Command: C:/Users/kriss/Documents/GitHub/vcpkg/downloads/tools/python/python-3.11.5-x64/python.exe C:/Users/kriss/Documents/GitHub/vcpkg/buildtrees/v8/src/a883683717-e774d37ef1.clean/build/vs_toolchain.py get_toolchain_dir Returned 1. See //build/config/win/BUILD.gn:11:1: whence it was imported. import("//build/config/win/visual_studio_version.gni") ^---------------------------------------------------- See //build/config/BUILDCONFIG.gn:346:5: which caused the file to be included. "//build/config/win:lean_and_mean", ^--------------------------------- ```
C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\generate-x64-windows-dbg-err.log ``` C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py:12: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13 import pipes Traceback (most recent call last): File "C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 573, in sys.exit(main()) ^^^^^^ File "C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 569, in main return commands[sys.argv[1]](*sys.argv[2:]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 546, in GetToolchainDir runtime_dll_dirs = SetEnvironmentAndGetRuntimeDllDirs() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 106, in SetEnvironmentAndGetRuntimeDllDirs os.environ['GYP_MSVS_OVERRIDE_PATH'] = DetectVisualStudioPath() ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 197, in DetectVisualStudioPath version_as_year = GetVisualStudioVersion() ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\kriss\Documents\GitHub\vcpkg\buildtrees\v8\src\a883683717-e774d37ef1.clean\build\vs_toolchain.py", line 186, in GetVisualStudioVersion raise Exception('No supported Visual Studio can be found.' Exception: No supported Visual Studio can be found. Supported versions are: 16.0 (2019), 15.0 (2017). ```
**Additional context**
vcpkg.json ``` { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", "name": "ckts", "version-string": "0.0.1", "dependencies": [ "commonlibsse-ng", "v8" ] } ```
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.

github-actions[bot] commented 10 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.