Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[boost] boost:x64-windows build failed #38549

Closed
imprnoob opened this issue May 3, 2024 · 4 comments
Closed

[boost] boost:x64-windows build failed #38549

imprnoob opened this issue May 3, 2024 · 4 comments
Assignees
Labels
requires:more-information This Issue requires more information to solve

Comments

@imprnoob
Copy link

imprnoob commented May 3, 2024

Describe the bug
Error message displayed during library installation: Command failure "ninjia.exe-v"

Environment

  • OS: [e.g. Windows]
  • visual studio: 2022

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install boost:x64-windows
  2. See error
    Repro code when

Expected behavior
install success

Failure logs
config-x64-windows-out.log

Additional context
The error information is as follows:

CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
Working Directory: F:/src/vcpkg/buildtrees/boost-headers/x64-windows-rel/vcpkg-parallel-configure
Error code: 1
See logs for more information:
F:\src\vcpkg\buildtrees\boost-headers\config-x64-windows-rel-CMakeCache.txt.log
F:\src\vcpkg\buildtrees\boost-headers\config-x64-windows-out.log

Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:261 (vcpkg_execute_required_process)
installed/x64-windows/share/vcpkg-boost/boost-install.cmake:55 (vcpkg_cmake_configure)
ports/boost-headers/portfile.cmake:12 (boost_configure_and_install)
scripts/ports.cmake:175 (include)

error: building boost-headers:x64-windows failed with: BUILD_FAILED
Elapsed time to handle boost-headers:x64-windows: 1.1 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-headers
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[boost-headers]+Build+error+on+x64-windows&body=Copy+issue+body+from+F%3A%2Fsrc%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

@Cheney-W Cheney-W changed the title Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v [boost] boost:x64-windows build failed May 6, 2024
@Cheney-W Cheney-W added the requires:more-information This Issue requires more information to solve label May 6, 2024
@Cheney-W
Copy link
Contributor

Cheney-W commented May 6, 2024

Could you please provide the below logs to us? Thank you!

F:\src\vcpkg\buildtrees\boost-headers\config-x64-windows-rel-CMakeCache.txt.log
F:\src\vcpkg\buildtrees\boost-headers\config-x64-windows-out.log

@Neumann-A
Copy link
Contributor

Neumann-A commented May 7, 2024

@Cheney-W: The config log is there. However, the problem seems to be unrelated to boost. The problem here is that CMake is not able to run a simple test program:

    cl : Command line error D8050 : cannot execute 'C:\PROGRA~1\MICROS~3\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\c1xx.dll': failed to get command line into debug records

    ninja: build stopped: subcommand failed.

One issue could be the windows version: https://developercommunity.visualstudio.com/t/cl-command-line-error-d8027-cannot-execute-pathtoc/1106548
but the general advice seems to be to reinstall VS

@Cheney-W
Copy link
Contributor

Cheney-W commented May 7, 2024

@imprnoob Could you please reinstall Visual Studio and see if this issue still persists? Thank you!

@Neumann-A
Copy link
Contributor

@tensor5375 that is a different issue and duplicate to #38974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:more-information This Issue requires more information to solve
Projects
None yet
Development

No branches or pull requests

3 participants