vcpkg icon indicating copy to clipboard operation
vcpkg copied to clipboard

[boost-cobalt] Build error on x64-windows

Open chenhee opened this issue 1 year ago • 1 comments

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

chenhee avatar Jun 28 '24 08:06 chenhee

I can't reproduce this issue in my side with the latest vcpkg. image

Cheney-W avatar Jun 28 '24 10:06 Cheney-W

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"
}

abhcs avatar Jul 23 '24 20:07 abhcs

i have the same issue, someone knows how to fix?

UPD: Need to install VS2022

seedmonn avatar Aug 01 '24 11:08 seedmonn

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()

greenozon avatar Aug 06 '24 18:08 greenozon

https://github.com/microsoft/vcpkg/issues/40290#issuecomment-2269639431

dg0yt avatar Aug 06 '24 19:08 dg0yt

Can be closed.

JackBoosY avatar Dec 31 '24 05:12 JackBoosY