Closed SerhiiPavlyk closed 2 months ago
This issue has been solved by PR: https://github.com/microsoft/vcpkg/pull/36119.
However, if you want to install a boost
version less than 1.84.0#1, please use a Visual Studio which the version earlier than 17.10.
Thank you very much for the answer. I have a question: how can I add these changes to my local copy, since I can't see the files that have been modified by these PR in the master branch?
If you do not have to use Boost 1.80.0, I think you could add below codes in your vcpkg.json:
"overrides": [
---
{
"name": "cpprestsdk",
"version": "2.10.0"
}
{
"name": "boost-modular-build-helper",
"version": "1.84.0#1"
}
],
Thank you very much for your reply. I tried your suggestion, but got another error during the build. Package: boost-filesystem:x64-windows-static@1.80.0
Failure logs
-- Using cached boostorg-filesystem-boost-1.80.0.tar.gz.
-- Cleaning sources at .../vcpkg/buildtrees/boost-filesystem/src/ost-1.80.0-fe22a488e3.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source .../vcpkg/downloads/boostorg-filesystem-boost-1.80.0.tar.gz
-- Using source at .../vcpkg/buildtrees/boost-filesystem/src/ost-1.80.0-fe22a488e3.clean
-- Getting CMake variables for x64-windows-static
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: ...cmake/bin/cmake.exe --build . --config Debug --target install -- -v -j13
Working Directory: .../vcpkg/buildtrees/boost-filesystem/x64-windows-static-dbg
See logs for more information:
...\vcpkg\buildtrees\boost-filesystem\install-x64-windows-static-dbg-out.log
Call Stack (most recent call first):
static-mt-vs2022/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
static-mt-vs2022/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
static-mt-vs2022/x64-windows/share/boost-build/boost-modular-build.cmake:139 (vcpkg_cmake_install)
buildtrees/versioning_/versions/boost-filesystem/77d8b1f9dff7eec868e4c8007c399bb123d80a97/portfile.cmake:12 (boost_modular_build)
scripts/ports.cmake:192 (include)
I have replaced sensitive path information with ... I used --- to hide the sensitive information in vcpkg.json.
Package: boost-coroutine:x64-windows-static-md@1.80.0
Host Environment
To Reproduce
vcpkg install
Failure logs
install-x64-windows-static-md-dbg-out.log
``` Change Dir: '.../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg' Run Build Command(s): .../vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v -v -j13 install [1/2] C:\Windows\system32\cmd.exe /C "cd /D ...\vcpkg\buildtrees\boost-coroutine\src\ost-1.80.0-b1ff22a432.clean\build && ...\vcpkg\static-md-vs2022\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=.../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg/user-config.jam --stagedir=.../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg/stage --build-dir=.../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg runtime-link=shared link=static address-model=64 architecture=x86 target-os=windows threadapi=win32 variant=debug --disable-icu --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j12 -sBOOST_ROOT=.../vcpkg/static-md-vs2022/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=.../vcpkg/static-md-vs2022/x64-windows/tools/boost-build --debug-configuration --debug-building --debug-generators --ignore-site-config --hash -q debug-symbols=on -d +2 threading=multi stage" FAILED: CMakeFiles/boost .../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg/CMakeFiles/boost C:\Windows\system32\cmd.exe /C "cd /D ...\vcpkg\buildtrees\boost-coroutine\src\ost-1.80.0-b1ff22a432.clean\build && ...\vcpkg\static-md-vs2022\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=.../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg/user-config.jam --stagedir=.../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg/stage --build-dir=.../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg runtime-link=shared link=static address-model=64 architecture=x86 target-os=windows threadapi=win32 variant=debug --disable-icu --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j12 -sBOOST_ROOT=.../vcpkg/static-md-vs2022/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=.../vcpkg/static-md-vs2022/x64-windows/tools/boost-build --debug-configuration --debug-building --debug-generators --ignore-site-config --hash -q debug-symbols=on -d +2 threading=multi stage" notice: loading B2 from .../vcpkg/static-md-vs2022/x64-windows/tools/boost-build/src/kernel/bootstrap.jam notice: Site configuration files will be ignored due to the notice: --ignore-site-config command-line option. notice: Loading explicitly specified user configuration file: ...\vcpkg\buildtrees\boost-coroutine\x64-windows-static-md-dbg\user-config.jam notice: Searching '...\vcpkg\buildtrees\boost-coroutine\x64-windows-static-md-dbg' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from '.../vcpkg/buildtrees/boost-coroutine/x64-windows-static-md-dbg'. notice: [msvc-cfg] msvc-14.3 detected, command: '...\Visual Studio 2022\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe' notice: [msvc-cfg] msvc-14.1 detected, command: '...\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm\cl.exe' notice: will use '.../Visual Studio 2022/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe' for msvc, conditionAdditional context
vcpkg.json
``` { "name": "---", "version-string": "---", "dependencies": [ --- "cpprestsdk" ], "builtin-baseline": "---", "overrides": [ --- { "name": "cpprestsdk", "version": "2.10.0" } ], "vcpkg-configuration": { "overlay-triplets": [ "./src/vcpkg-triplets" ] } } ```