[boost-cobalt] Build error on x64-windows
Package: boost-cobalt:[email protected]#2
Host Environment
- Host: x64-windows
- Compiler: MSVC 19.24.28322.0
- vcpkg-tool version: 2024-06-10-02590c430e4ed9215d27870138c2e579cc338772 vcpkg-scripts version: e3ad383ce 2024-06-27 (10 hours ago)
To Reproduce
vcpkg install boost
Failure logs
-- Using cached boostorg-cobalt-boost-1.85.0.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/boost-cobalt/src/ost-1.85.0-74ba267639.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/boostorg-cobalt-boost-1.85.0.tar.gz
-- Using source at D:/vcpkg/buildtrees/boost-cobalt/src/ost-1.85.0-74ba267639.clean
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
Command failed: D:/vcpkg/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j17
Working Directory: D:/vcpkg/buildtrees/boost-cobalt/x64-windows-dbg
See logs for more information:
D:\vcpkg\buildtrees\boost-cobalt\install-x64-windows-dbg-out.log
D:\vcpkg\buildtrees\boost-cobalt\install-x64-windows-dbg-err.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
installed/x64-windows/share/vcpkg-boost/boost-install.cmake:65 (vcpkg_cmake_install)
ports/boost-cobalt/portfile.cmake:12 (boost_configure_and_install)
scripts/ports.cmake:192 (include)
D:\vcpkg\buildtrees\boost-cobalt\install-x64-windows-dbg-err.log
ninja: error: unknown target 'install'
D:\vcpkg\buildtrees\boost-cobalt\install-x64-windows-dbg-out.log
Change Dir: 'D:/vcpkg/buildtrees/boost-cobalt/x64-windows-dbg'
Run Build Command(s): D:/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v -v -j17 install
I can't reproduce this issue in my side with the latest vcpkg.
I get the same error in a similar environment:
"boost-cobalt": {
"name": "boost-cobalt",
"version": "1.85.0",
"port-version": 2,
...}
"os": {
"name": "Windows 11 Enterprise",
"version": 23H2
"build": 22631.3155
}
"compiler": "Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x86"
"vcpkg": {
"version": "2024-07-10-d2dfc73769081bdd9b782d08d27794780b7a99b9"
}
i have the same issue, someone knows how to fix?
UPD: Need to install VS2022
Boost Cobalt lib has prerequisites located in CheckRequirements.cmake file
you need a MSVC compiler of version >= 19.30
if(MSVC_VERSION AND MSVC_VERSION LESS 1930)
message(STATUS "Boost.Cobalt: not building, the lowest supported MSVC version is 1930. ${MSVC_VERSION} is not supported")
return()
endif()
https://github.com/microsoft/vcpkg/issues/40290#issuecomment-2269639431
Can be closed.