docwire
docwire copied to clipboard
boost-build bootstrapping failing with "The system cannot find the path specified."
Running the build.ps1 as recommended by the instructions results in the following error:
-- Installing: C:/Users/<USER_NAME>/workspace/docwire/vcpkg/packages/boost-build_x64-windows/share/boost-build/copyright
-- Bootstrapping...
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: C:/Users/<USER_NAME>/workspace/docwire/vcpkg/packages/boost-build_x64-windows/tools/boost-build/bootstrap.bat msvc
Working Directory: C:/Users/<USER_NAME>/workspace/docwire/vcpkg/packages/boost-build_x64-windows/tools/boost-build
Error code: 1
See logs for more information:
C:\Users\<USER_NAME>\workspace\docwire\vcpkg\buildtrees\boost-build\bootstrap-x64-windows-out.log
C:\Users\<USER_NAME>\workspace\docwire\vcpkg\buildtrees\boost-build\bootstrap-x64-windows-err.log
Call Stack (most recent call first):
ports/boost-build/portfile.cmake:65 (vcpkg_execute_required_process)
scripts/ports.cmake:170 (include)
booststrap-x64-windows-out.log:
Building the B2 engine..
...
Building is done. To install, run:
.\b2 --prefix=DIR install
booststrap-x64-windows-err.log:
The system cannot find the path specified.
GitHub Continuous Integration builds are fine for 2024.01.05 and current "head" as well.
We suspect a long directory path or a dot in the directory name because of the following notice in vcpkg documentation https://github.com/microsoft/vcpkg?tab=readme-ov-file#quick-start-windows:
"First, download and bootstrap vcpkg itself; it can be installed anywhere, but generally we recommend using vcpkg as a submodule so the consuming repo can stay self-contained. Alternatively, vcpkg can be installed globally; we recommend somewhere like C:\src\vcpkg or C:\dev\vcpkg, since otherwise you may run into path issues for some port build systems."
Follow up ideas:
- simpler path can be checked on original machine
- more complicated path can be checked on CI machines