microsoft / vcpkg

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

[boost-headers] Build failure on x64-windows #41320

Open cr3881 opened 2 weeks ago

cr3881 commented 2 weeks ago

Package: boost-headers:x64-windows@1.85.0#1

Host Environment

To Reproduce

vcpkg install boost-system boost-log boost-filesystem boost-chrono boost-regex boost-statechart boost-assign boost-bimap boost-program-options boost-dll boost-uuid libjpeg-turbo libressl libpng pybind11 catch2 cppzmq tinyxml2 libxml2 nlohmann-json protobuf

Failure logs

-- Using cached boostorg-headers-boost-1.85.0.tar.gz.
-- Cleaning sources at D:/projects/vcpkg/buildtrees/boost-headers/src/ost-1.85.0-f4cb877742.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/projects/vcpkg/downloads/boostorg-headers-boost-1.85.0.tar.gz
-- Using source at D:/projects/vcpkg/buildtrees/boost-headers/src/ost-1.85.0-f4cb877742.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe" --build . --config Release --target install -- -v -j13
    Working Directory: D:/projects/vcpkg/buildtrees/boost-headers/x64-windows-rel
    See logs for more information:
      D:\projects\vcpkg\buildtrees\boost-headers\install-x64-windows-rel-out.log
      D:\projects\vcpkg\buildtrees\boost-headers\install-x64-windows-rel-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-headers/portfile.cmake:12 (boost_configure_and_install)
  scripts/ports.cmake:192 (include)
D:\projects\vcpkg\buildtrees\boost-headers\install-x64-windows-rel-err.log ``` CMake Error at cmake_install.cmake:73 (file): file INSTALL cannot find "D:/projects/vcpkg/installed/x64-windows/share/boost/cmake-build/../config/BoostConfig.cmake": File exists. ```
D:\projects\vcpkg\buildtrees\boost-headers\install-x64-windows-rel-out.log ``` Change Dir: 'D:/projects/vcpkg/buildtrees/boost-headers/x64-windows-rel' Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j13 install -- Install configuration: "Release" -- Installing: D:/projects/vcpkg/packages/boost-headers_x64-windows/include -- Installing: D:/projects/vcpkg/packages/boost-headers_x64-windows/include/boost -- Installing: D:/projects/vcpkg/packages/boost-headers_x64-windows/include/boost/headers -- Installing: D:/projects/vcpkg/packages/boost-headers_x64-windows/include/boost/headers/.gitkeep -- Installing: D:/projects/vcpkg/packages/boost-headers_x64-windows/lib/cmake/boost_headers-1.85.0/boost_headers-targets.cmake -- Installing: D:/projects/vcpkg/packages/boost-headers_x64-windows/lib/cmake/boost_headers-1.85.0/boost_headers-config.cmake -- Installing: D:/projects/vcpkg/packages/boost-headers_x64-windows/lib/cmake/boost_headers-1.85.0/boost_headers-config-version.cmake [0/1] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\projects\vcpkg\buildtrees\boost-headers\x64-windows-rel && "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -P cmake_install.cmake" FAILED: CMakeFiles/install.util C:\WINDOWS\system32\cmd.exe /C "cd /D D:\projects\vcpkg\buildtrees\boost-headers\x64-windows-rel && "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -P cmake_install.cmake" ninja: build stopped: subcommand failed. ```
JonLiu1993 commented 1 week ago

@cr3881, Could you install boost-headers directly using command ./vcpkg install boost-headers? In your installation command, vcpkg install boost-system boost-log boost-filesystem boost-chrono boost-regex boost-statechart boost-assign boost-bimap boost-program-options boost-dll boost-uuid libjpeg-turbo libressl libpng pybind11 catch2 cppzmq tinyxml2 libxml2 nlohmann-json protobuf Some ports conflict with each other.