windows: depends config fails #32578

issue John-zhan openend this issue on May 21, 2025
  1. John-zhan commented at 1:04 pm on May 21, 2025: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    “cmake -B build –preset vs2022-static” execute this config, and bitcoin–9.0\build\vcpkg_installed\vcpkg\blds\libevent\config-x64-windows-static-out.log display such info:

    [1/2] “D:/Program Files/CMake/bin/cmake.exe” -E chdir “..” “D:/Program Files/CMake/bin/cmake.exe” “F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/blds/libevent/src/.12-stable-1d4b950f74.clean” “-G” “Ninja” “-DCMAKE_BUILD_TYPE=Release” “-DCMAKE_INSTALL_PREFIX=F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/pkgs/libevent_x64-windows-static” “-DFETCHCONTENT_FULLY_DISCONNECTED=ON” “-DEVENT__DISABLE_OPENSSL=ON” “-DEVENT__DISABLE_THREAD_SUPPORT=OFF” “-DEVENT__LIBRARY_TYPE=STATIC” “-DEVENT__MSVC_STATIC_RUNTIME=ON” “-DEVENT__DISABLE_BENCHMARK=ON” “-DEVENT__DISABLE_TESTS=ON” “-DEVENT__DISABLE_REGRESS=ON” “-DEVENT__DISABLE_SAMPLES=ON” “-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe” “-DBUILD_SHARED_LIBS=OFF” “-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/toolchains/windows.cmake” “-DVCPKG_TARGET_TRIPLET=x64-windows-static” “-DVCPKG_SET_CHARSET_FLAG=ON” “-DVCPKG_PLATFORM_TOOLSET=v143” “-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON” “-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON” “-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON” “-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE” “-DCMAKE_VERBOSE_MAKEFILE=ON” “-DVCPKG_APPLOCAL_DEPS=OFF” “-DCMAKE_TOOLCHAIN_FILE=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/buildsystems/vcpkg.cmake” “-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON” “-DVCPKG_CXX_FLAGS=” “-DVCPKG_CXX_FLAGS_RELEASE=” “-DVCPKG_CXX_FLAGS_DEBUG=” “-DVCPKG_C_FLAGS=” “-DVCPKG_C_FLAGS_RELEASE=” “-DVCPKG_C_FLAGS_DEBUG=” “-DVCPKG_CRT_LINKAGE=static” “-DVCPKG_LINKER_FLAGS=” “-DVCPKG_LINKER_FLAGS_RELEASE=” “-DVCPKG_LINKER_FLAGS_DEBUG=” “-DVCPKG_TARGET_ARCHITECTURE=x64” “-DCMAKE_INSTALL_LIBDIR:STRING=lib” “-DCMAKE_INSTALL_BINDIR:STRING=bin” “-D_VCPKG_ROOT_DIR=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg” “-D_VCPKG_INSTALLED_DIR=F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed” “-DVCPKG_MANIFEST_INSTALL=OFF” FAILED: ../CMakeCache.txt “D:/Program Files/CMake/bin/cmake.exe” -E chdir “..” “D:/Program Files/CMake/bin/cmake.exe” “F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/blds/libevent/src/.12-stable-1d4b950f74.clean” “-G” “Ninja” “-DCMAKE_BUILD_TYPE=Release” “-DCMAKE_INSTALL_PREFIX=F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/pkgs/libevent_x64-windows-static” “-DFETCHCONTENT_FULLY_DISCONNECTED=ON” “-DEVENT__DISABLE_OPENSSL=ON” “-DEVENT__DISABLE_THREAD_SUPPORT=OFF” “-DEVENT__LIBRARY_TYPE=STATIC” “-DEVENT__MSVC_STATIC_RUNTIME=ON” “-DEVENT__DISABLE_BENCHMARK=ON” “-DEVENT__DISABLE_TESTS=ON” “-DEVENT__DISABLE_REGRESS=ON” “-DEVENT__DISABLE_SAMPLES=ON” “-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe” “-DBUILD_SHARED_LIBS=OFF” “-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/toolchains/windows.cmake” “-DVCPKG_TARGET_TRIPLET=x64-windows-static” “-DVCPKG_SET_CHARSET_FLAG=ON” “-DVCPKG_PLATFORM_TOOLSET=v143” “-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON” “-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON” “-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON” “-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE” “-DCMAKE_VERBOSE_MAKEFILE=ON” “-DVCPKG_APPLOCAL_DEPS=OFF” “-DCMAKE_TOOLCHAIN_FILE=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/buildsystems/vcpkg.cmake” “-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON” “-DVCPKG_CXX_FLAGS=” “-DVCPKG_CXX_FLAGS_RELEASE=” “-DVCPKG_CXX_FLAGS_DEBUG=” “-DVCPKG_C_FLAGS=” “-DVCPKG_C_FLAGS_RELEASE=” “-DVCPKG_C_FLAGS_DEBUG=” “-DVCPKG_CRT_LINKAGE=static” “-DVCPKG_LINKER_FLAGS=” “-DVCPKG_LINKER_FLAGS_RELEASE=” “-DVCPKG_LINKER_FLAGS_DEBUG=” “-DVCPKG_TARGET_ARCHITECTURE=x64” “-DCMAKE_INSTALL_LIBDIR:STRING=lib” “-DCMAKE_INSTALL_BINDIR:STRING=bin” “-D_VCPKG_ROOT_DIR=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg” “-D_VCPKG_INSTALLED_DIR=F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed” “-DVCPKG_MANIFEST_INSTALL=OFF” CMake Error at CMakeLists.txt:22 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.

    Update the VERSION argument value. Or, use the syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier.

    Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

    – Configuring incomplete, errors occurred! [2/2] “D:/Program Files/CMake/bin/cmake.exe” -E chdir “../../x64-windows-static-dbg” “D:/Program Files/CMake/bin/cmake.exe” “F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/blds/libevent/src/.12-stable-1d4b950f74.clean” “-G” “Ninja” “-DCMAKE_BUILD_TYPE=Debug” “-DCMAKE_INSTALL_PREFIX=F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/pkgs/libevent_x64-windows-static/debug” “-DFETCHCONTENT_FULLY_DISCONNECTED=ON” “-DEVENT__DISABLE_OPENSSL=ON” “-DEVENT__DISABLE_THREAD_SUPPORT=OFF” “-DEVENT__LIBRARY_TYPE=STATIC” “-DEVENT__MSVC_STATIC_RUNTIME=ON” “-DEVENT__DISABLE_BENCHMARK=ON” “-DEVENT__DISABLE_TESTS=ON” “-DEVENT__DISABLE_REGRESS=ON” “-DEVENT__DISABLE_SAMPLES=ON” “-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe” “-DBUILD_SHARED_LIBS=OFF” “-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/toolchains/windows.cmake” “-DVCPKG_TARGET_TRIPLET=x64-windows-static” “-DVCPKG_SET_CHARSET_FLAG=ON” “-DVCPKG_PLATFORM_TOOLSET=v143” “-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON” “-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON” “-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON” “-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE” “-DCMAKE_VERBOSE_MAKEFILE=ON” “-DVCPKG_APPLOCAL_DEPS=OFF” “-DCMAKE_TOOLCHAIN_FILE=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/buildsystems/vcpkg.cmake” “-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON” “-DVCPKG_CXX_FLAGS=” “-DVCPKG_CXX_FLAGS_RELEASE=” “-DVCPKG_CXX_FLAGS_DEBUG=” “-DVCPKG_C_FLAGS=” “-DVCPKG_C_FLAGS_RELEASE=” “-DVCPKG_C_FLAGS_DEBUG=” “-DVCPKG_CRT_LINKAGE=static” “-DVCPKG_LINKER_FLAGS=” “-DVCPKG_LINKER_FLAGS_RELEASE=” “-DVCPKG_LINKER_FLAGS_DEBUG=” “-DVCPKG_TARGET_ARCHITECTURE=x64” “-DCMAKE_INSTALL_LIBDIR:STRING=lib” “-DCMAKE_INSTALL_BINDIR:STRING=bin” “-D_VCPKG_ROOT_DIR=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg” “-D_VCPKG_INSTALLED_DIR=F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed” “-DVCPKG_MANIFEST_INSTALL=OFF” FAILED: ../../x64-windows-static-dbg/CMakeCache.txt “D:/Program Files/CMake/bin/cmake.exe” -E chdir “../../x64-windows-static-dbg” “D:/Program Files/CMake/bin/cmake.exe” “F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/blds/libevent/src/.12-stable-1d4b950f74.clean” “-G” “Ninja” “-DCMAKE_BUILD_TYPE=Debug” “-DCMAKE_INSTALL_PREFIX=F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/pkgs/libevent_x64-windows-static/debug” “-DFETCHCONTENT_FULLY_DISCONNECTED=ON” “-DEVENT__DISABLE_OPENSSL=ON” “-DEVENT__DISABLE_THREAD_SUPPORT=OFF” “-DEVENT__LIBRARY_TYPE=STATIC” “-DEVENT__MSVC_STATIC_RUNTIME=ON” “-DEVENT__DISABLE_BENCHMARK=ON” “-DEVENT__DISABLE_TESTS=ON” “-DEVENT__DISABLE_REGRESS=ON” “-DEVENT__DISABLE_SAMPLES=ON” “-DCMAKE_MAKE_PROGRAM=D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe” “-DBUILD_SHARED_LIBS=OFF” “-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/toolchains/windows.cmake” “-DVCPKG_TARGET_TRIPLET=x64-windows-static” “-DVCPKG_SET_CHARSET_FLAG=ON” “-DVCPKG_PLATFORM_TOOLSET=v143” “-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON” “-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON” “-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON” “-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE” “-DCMAKE_VERBOSE_MAKEFILE=ON” “-DVCPKG_APPLOCAL_DEPS=OFF” “-DCMAKE_TOOLCHAIN_FILE=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg/scripts/buildsystems/vcpkg.cmake” “-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON” “-DVCPKG_CXX_FLAGS=” “-DVCPKG_CXX_FLAGS_RELEASE=” “-DVCPKG_CXX_FLAGS_DEBUG=” “-DVCPKG_C_FLAGS=” “-DVCPKG_C_FLAGS_RELEASE=” “-DVCPKG_C_FLAGS_DEBUG=” “-DVCPKG_CRT_LINKAGE=static” “-DVCPKG_LINKER_FLAGS=” “-DVCPKG_LINKER_FLAGS_RELEASE=” “-DVCPKG_LINKER_FLAGS_DEBUG=” “-DVCPKG_TARGET_ARCHITECTURE=x64” “-DCMAKE_INSTALL_LIBDIR:STRING=lib” “-DCMAKE_INSTALL_BINDIR:STRING=bin” “-D_VCPKG_ROOT_DIR=D:/Program Files/Microsoft Visual Studio/2022/Community/VC/vcpkg” “-D_VCPKG_INSTALLED_DIR=F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed” “-DVCPKG_MANIFEST_INSTALL=OFF” CMake Error at CMakeLists.txt:22 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake.

    Update the VERSION argument value. Or, use the syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier.

    Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

    – Configuring incomplete, errors occurred! ninja: build stopped: subcommand failed.

    Expected behaviour

    successfuly execute: cmake -B build –preset vs2022-static

    Steps to reproduce

    execute cmake -B build –preset vs2022-static

    Relevant log output

    正在安装 40/93 个 libevent[core,thread]:x64-windows-static@2.1.12#7… 正在生成 libevent[core,thread]:x64-windows-static@2.1.12#7… C:\Users\win11\AppData\Local\vcpkg\registries\git-trees\49a66da074def8806e42235e6c64af567987498f: info: installing from git registry git+https://github.com/microsoft/vcpkg@49a66da074def8806e42235e6c64af567987498f – Using cached libevent-libevent-release-2.1.12-stable.tar.gz – Extracting source C:/Users/win11/AppData/Local/vcpkg/downloads/libevent-libevent-release-2.1.12-stable.tar.gz – Applying patch fix-file_path.patch – Applying patch fix-LibeventConfig_cmake_in_path.patch – Applying patch fix-usage.patch – Applying patch fix-android-threads.patch – Using source at F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/blds/libevent/src/.12-stable-1d4b950f74.clean – Found external ninja(‘1.12.1’). – Configuring x64-windows-static CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message): Command failed: “D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe” -v Working Directory: F:/workspace/code/github/bitcoin-29.0/build/vcpkg_installed/vcpkg/blds/libevent/x64-windows-static-rel/vcpkg-parallel-configure Error code: 1

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    29.0

    Operating system and version

    microsoft visual studio 2022 17.14.0

    Machine specifications

    No response

  2. hebasto added the label Windows on May 21, 2025
  3. maflcko added the label Upstream on May 21, 2025
  4. maflcko removed the label Windows on May 21, 2025
  5. maflcko removed the label Upstream on May 21, 2025
  6. maflcko added the label Bug on May 21, 2025
  7. maflcko added the label Build system on May 21, 2025
  8. maflcko added the label Windows on May 21, 2025
  9. maflcko removed the label Bug on May 21, 2025
  10. maflcko added the label Upstream on May 21, 2025
  11. hebasto commented at 1:32 pm on May 21, 2025: member

    @John-zhan

    You could use the same workaround as we use in the CI. See #32184.

  12. hebasto renamed this:
    depends config fails
    windows: depends config fails
    on May 21, 2025
  13. bitcoin deleted a comment on May 25, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-05-25 18:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me