microsoft / vcpkg

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

[boost-cobalt] Build error on x64-linux #40290

Open CBlackSun opened 1 month ago

CBlackSun commented 1 month ago

Package: boost-cobalt:x64-linux@1.85.0#2

Host Environment

To Reproduce

vcpkg install boost

Failure logs

-- Using cached boostorg-cobalt-boost-1.85.0.tar.gz.
-- Cleaning sources at /home/gk/vcpkg/buildtrees/boost-cobalt/src/ost-1.85.0-74ba267639.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/gk/vcpkg/downloads/boostorg-cobalt-boost-1.85.0.tar.gz
-- Using source at /home/gk/vcpkg/buildtrees/boost-cobalt/src/ost-1.85.0-74ba267639.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: /usr/local/bin/cmake --build . --config Debug --target install -- -v -j23
    Working Directory: /home/gk/vcpkg/buildtrees/boost-cobalt/x64-linux-dbg
    See logs for more information:
      /home/gk/vcpkg/buildtrees/boost-cobalt/install-x64-linux-dbg-out.log
      /home/gk/vcpkg/buildtrees/boost-cobalt/install-x64-linux-dbg-err.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  installed/x64-linux/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)
/home/gk/vcpkg/buildtrees/boost-cobalt/install-x64-linux-dbg-err.log ``` ninja: error: unknown target 'install' ```
/home/gk/vcpkg/buildtrees/boost-cobalt/install-x64-linux-dbg-out.log ``` Change Dir: '/home/gk/vcpkg/buildtrees/boost-cobalt/x64-linux-dbg' Run Build Command(s): /home/gk/vcpkg/downloads/tools/ninja/1.10.2-linux/ninja -v -v -j23 install ```
Cheney-W commented 1 month ago

I can't reproduce this issue in my side with the latest vcpkg, my test env as below:

Ubuntu 23.10
GNU 13.2.0
Installing 7/7 boost-cobalt:x64-linux@1.85.0#2...
Building boost-cobalt:x64-linux@1.85.0#2...
-- Downloading https://github.com/boostorg/cobalt/archive/boost-1.85.0.tar.gz -> boostorg-cobalt-boost-1.85.0.tar.gz...
-- Extracting source /mnt/cheney/vcpkg/downloads/boostorg-cobalt-boost-1.85.0.tar.gz
-- Using source at /mnt/cheney/vcpkg/buildtrees/boost-cobalt/src/ost-1.85.0-74ba267639.clean
-- Configuring x64-linux
-- Building x64-linux-dbg
-- Building x64-linux-rel
-- Installing: /mnt/cheney/vcpkg/packages/boost-cobalt_x64-linux/share/boost-cobalt/copyright
-- Performing post-build validation
Stored binaries in 1 destinations in 259 ms.
Elapsed time to handle boost-cobalt:x64-linux: 7.7 s
boost-cobalt:x64-linux package ABI: 04d69951b0c0853790e52e71c692d185d3e99bc36bb08adf147f007745b253c6
Total install time: 15 s
The package boost-cobalt is compatible with built-in CMake targets of FindBoost.cmake:

    find_package(Boost REQUIRED COMPONENTS cobalt)
    target_link_libraries(main PRIVATE Boost::cobalt)

or the generated cmake configs via:

    find_package(boost_cobalt REQUIRED CONFIG)
    target_link_libraries(main PRIVATE Boost::cobalt)
sunz123 commented 1 month ago

I have the same problem. but my computer is windows11 and compiler is msbuild 16.4.0.56107.

mayconcarlete commented 1 month ago

same with wsl2 windows 11

dg0yt commented 1 month ago

Fails when compiler capabilites are insufficient. The config log has this or similar:

-- Boost.Cobalt: not building, can't include <coroutine>.

Cf. https://github.com/boostorg/cobalt/blob/develop/cmake/CheckRequirements.cmake

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