microsoft / vcpkg

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

Colmap [boost-serialization] Build error #33828

Closed devadharshini97 closed 6 months ago

devadharshini97 commented 1 year ago

While trying to install colmap in my windows system i ran into the below error. Please help me out. Thank you! Host Environment

To Reproduce

vcpkg install colmap[cuda-redist]:x64-windows Failure logs


-- Using cached boostorg-serialization-boost-1.83.0.tar.gz.
-- Cleaning sources at C:/Users/devad/vcpkg/buildtrees/boost-serialization/src/ost-1.83.0-9459440727.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/devad/vcpkg/downloads/boostorg-serialization-boost-1.83.0.tar.gz
-- Using source at C:/Users/devad/vcpkg/buildtrees/boost-serialization/src/ost-1.83.0-9459440727.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: C:/Users/devad/vcpkg/downloads/tools/cmake-3.27.1-windows/cmake-3.27.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j13
    Working Directory: C:/Users/devad/vcpkg/buildtrees/boost-serialization/x64-windows-dbg
    See logs for more information:
      C:\Users\devad\vcpkg\buildtrees\boost-serialization\install-x64-windows-dbg-out.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/boost-build/boost-modular-build.cmake:139 (vcpkg_cmake_install)
  ports/boost-serialization/portfile.cmake:12 (boost_modular_build)
  scripts/ports.cmake:147 (include)

error: building boost-serialization:x64-windows failed with: BUILD_FAILED
Elapsed time to handle boost-serialization:x64-windows: 30 s
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+boost-serialization
You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?title=[boost-serialization]+Build+error&body=Copy+issue+body+from+C%3A%2FUsers%2Fdevad%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Here are links to the attached files:
[issue_body.md](https://github.com/microsoft/vcpkg/files/12643867/issue_body.md)
[install-x64-windows-dbg-out.log](https://github.com/microsoft/vcpkg/files/12643871/install-x64-windows-dbg-out.log)
MonicaLiu0311 commented 1 year ago

Please provide more detailed logs:

    See logs for more information:
      C:\Users\devad\vcpkg\buildtrees\boost-serialization\install-x64-windows-dbg-out.log
devadharshini97 commented 1 year ago

I added the log files in my previous post yesterday. I will attach it again here, please let me know if you are unable to open it.

Here are links to the attached files: issue_body.md install-x64-windows-dbg-out.log

MonicaLiu0311 commented 1 year ago
PS G:\vcpkg> ./vcpkg install colmap[cuda-redist]:x64-windows --binarysource=clear --recurse
The following packages will be built and installed:
  * boost-accumulators:x64-windows -> 1.83.0
  * boost-geometry:x64-windows -> 1.83.0
  * boost-graph:x64-windows -> 1.83.0
  * boost-property-tree:x64-windows -> 1.83.0
  * boost-serialization:x64-windows -> 1.83.0
  * boost-ublas:x64-windows -> 1.83.0
  * cgal[core,qt]:x64-windows -> 5.6
    colmap[core,cuda-redist]:x64-windows -> 2023-03-12#1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Installing 1/8 boost-serialization:x64-windows...
Building boost-serialization:x64-windows...
-- Downloading https://github.com/boostorg/serialization/archive/boost-1.83.0.tar.gz -> boostorg-serialization-boost-1.83.0.tar.gz...
-- Extracting source G:/vcpkg/downloads/boostorg-serialization-boost-1.83.0.tar.gz
-- Using source at G:/vcpkg/buildtrees/boost-serialization/src/ost-1.83.0-9459440727.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Copying headers
-- Copying headers done
-- Installing: G:/vcpkg/packages/boost-serialization_x64-windows/share/boost-serialization/usage
-- Installing: G:/vcpkg/packages/boost-serialization_x64-windows/share/boost-serialization/copyright
-- Performing post-build validation
Elapsed time to handle boost-serialization:x64-windows: 50 s

Sorry I didn't repro your issue. It may be due to b2.exe is treated as a virus by anti-virus software: #13353

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

github-actions[bot] commented 12 months 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.

MonicaLiu0311 commented 6 months ago

Will close issue because https://github.com/microsoft/vcpkg/pull/32309 and https://github.com/microsoft/vcpkg/issues/38533.