microsoft / vcpkg

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

[boost-coroutine] Build error on x64-windows-static #39104

Closed markdhenning closed 3 months ago

markdhenning commented 3 months ago

Package: boost-coroutine:x64-windows-static@1.80.0#1

Host Environment boost-build-failure.zip

To Reproduce

vcpkg install

Failure logs

-- Using cached boostorg-coroutine-boost-1.80.0.tar.gz.
-- Cleaning sources at C:/src/vcpkg/buildtrees/boost-coroutine/src/ost-1.80.0-b1ff22a432.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/src/vcpkg/downloads/boostorg-coroutine-boost-1.80.0.tar.gz
-- Using source at C:/src/vcpkg/buildtrees/boost-coroutine/src/ost-1.80.0-b1ff22a432.clean
-- Found external ninja('1.11.0').
-- Getting CMake variables for x64-windows-static
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: C:/src/vcpkg/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j21
    Working Directory: C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg
    See logs for more information:
      C:\src\vcpkg\buildtrees\boost-coroutine\install-x64-windows-static-dbg-out.log

Call Stack (most recent call first):
  C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/boost-modular-build.cmake:136 (vcpkg_cmake_install)
  buildtrees/versioning_/versions/boost-coroutine/58decd230ff2227603af8e6e95dfcf45fab3b032/portfile.cmake:12 (boost_modular_build)
  scripts/ports.cmake:175 (include)
C:\src\vcpkg\buildtrees\boost-coroutine\install-x64-windows-static-dbg-out.log ``` Change Dir: 'C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg' Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j21 install [1/2] C:\WINDOWS\system32\cmd.exe /C "cd /D C:\src\vcpkg\buildtrees\boost-coroutine\src\ost-1.80.0-b1ff22a432.clean\build && C:\src\boost-build-failure\boost-build-failure\vcpkg_installed\x64-windows-static\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/user-config.jam --stagedir=C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/stage --build-dir=C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg runtime-link=static link=static address-model=64 architecture=x86 target-os=windows threadapi=win32 variant=debug --disable-icu --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j20 -sBOOST_ROOT=C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/tools/boost-build --debug-configuration --debug-building --debug-generators --ignore-site-config --hash -q debug-symbols=on -d +2 threading=multi stage" FAILED: CMakeFiles/boost C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/CMakeFiles/boost C:\WINDOWS\system32\cmd.exe /C "cd /D C:\src\vcpkg\buildtrees\boost-coroutine\src\ost-1.80.0-b1ff22a432.clean\build && C:\src\boost-build-failure\boost-build-failure\vcpkg_installed\x64-windows-static\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/user-config.jam --stagedir=C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/stage --build-dir=C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg runtime-link=static link=static address-model=64 architecture=x86 target-os=windows threadapi=win32 variant=debug --disable-icu --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j20 -sBOOST_ROOT=C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/tools/boost-build --debug-configuration --debug-building --debug-generators --ignore-site-config --hash -q debug-symbols=on -d +2 threading=multi stage" notice: loading B2 from C:/src/boost-build-failure/boost-build-failure/vcpkg_instal [boost-build-failure.zip](https://github.com/user-attachments/files/15539522/boost-build-failure.zip) led/x64-windows-static/x64-windows/tools/boost-build/src/kernel/bootstrap.jam notice: Site configuration files will be ignored due to the notice: --ignore-site-config command-line option. notice: Loading explicitly specified user configuration file: C:\src\vcpkg\buildtrees\boost-coroutine\x64-windows-static-dbg\user-config.jam notice: Searching 'C:\src\vcpkg\buildtrees\boost-coroutine\x64-windows-static-dbg' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from 'C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg'. notice: [msvc-cfg] msvc-14.3 detected, command: 'C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.40.33807\bin\Hostx64\x64\cl.exe' notice: will use 'C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.40.33807/bin/Hostx64/x64/cl.exe' for msvc, condition msvc-144 notice: [msvc-cfg] condition: 'msvc-144/x86/32', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat x86' notice: [msvc-cfg] condition: 'msvc-144//32', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat x86' notice: [msvc-cfg] condition: 'msvc-144/x86/64', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat amd64' notice: [msvc-cfg] condition: 'msvc-144//64', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat amd64' notice: [msvc-cfg] condition: 'msvc-144/x86/', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat amd64' notice: [msvc-cfg] condition: 'msvc-144//', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat amd64' notice: [msvc-cfg] condition: 'msvc-144/ia64/64', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat x86_ia64' notice: [msvc-cfg] condition: 'msvc-144/ia64/', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat x86_ia64' notice: [msvc-cfg] condition: 'msvc-144/arm/32', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat x86_arm' notice: [msvc-cfg] condition: 'msvc-144/arm/64', setup: 'C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows/share/boost-build/nothing.bat x86_arm64' Building target '../build/stage' Build request: object(property-set)@398 64 x86 on static static windows win32 multi msvc debug Command line free features: Target requirements: -machine:x64 -nologo BOOST_ALL_NO_LIB=1 BOOST_COROUTINES_SOURCE false ../include&&/C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows-static/include /boost/context//boost_context shared:BOOST_COROUTINES_DYN_LINK=1 -machine:x64 -nologo -debug -INCREMENTAL /C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/stage/lib cxxflags:segmented-stacks cxxflags:target-os cxxflags:toolset define:link threading:runtime-link threading:toolset @Jamfile%Jamfile.tag linux,gcc,on:-DBOOST_USE_SEGMENTED_STACKS linux,gcc,on:-fsplit-stack clang,on:-DBOOST_USE_SEGMENTED_STACKS clang,on:-fsplit-stack msvc,shared:multi @Jamfile%Jamfile.stage-translate-path Common properties: 64 x86 -machine:x64 -nologo off off object on BOOST_ALL_NO_LIB=1 BOOST_COROUTINES_SOURCE linker on on off false windows ../include&&/C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows-static/include off off /boost/context//boost_context static -machine:x64 -nologo -debug -INCREMENTAL /C:/src/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/stage/lib yes yes off NT on on off cxxflags:segmented-stacks cxxflags:target-os cxxflags:toolset define:link threading:runtime-link threading:toolset auto on on static native off false project-relative @Jamfile%Jamfile.tag windows on win32 multi 144 msvc @Jamfile%Jamfile.stage-translate-path console debug off off on desktop Building target '../boost_context' Build request: object(property-set)@425 64 x86 off off object on linker on on off off static yes yes off NT on on off variant on on static native off windows on win32 multi 144 msvc debug off off on desktop Command line free features: Target requirements: -machine:x64 -nologo BOOST_ALL_NO_LIB=1 /boost//C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows-static/debug/lib/boost_context-vc140-mt-gd.lib ../include&&/C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows-static/include -machine:x64 -nologo -debug -INCREMENTAL threading:runtime-link threading:toolset @Jamfile%Jamfile.tag msvc,shared:multi debug Common properties: 64 x86 -machine:x64 -nologo off off object on BOOST_ALL_NO_LIB=1 linker on on off /boost//C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows-static/debug/lib/boost_context-vc140-mt-gd.lib true windows ../include&&/C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows-static/include off off static -machine:x64 -nologo -debug -INCREMENTAL yes yes off NT on on off threading:runtime-link threading:toolset variant auto on on static native off false project-relative @Jamfile%Jamfile.tag windows on win32 multi 144 msvc console debug off off on desktop error: Unable to find file or target named error: '/boost//C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/x64-windows-static/debug/lib/boost_context-vc140-mt-gd.lib' error: referred to from project at error: '..' ninja: build stopped: subcommand failed. ```

Additional context

vcpkg.json ``` { "dependencies": [ "boost-asio" ], "builtin-baseline": "980ec0f49d81f794778386f7bd518b2cc9c092f0", "overrides": [ { "name": "boost-format", "version": "1.80.0#1" }, { "name": "boost-serialization", "version": "1.80.0#1" }, { "name": "boost-iostreams", "version": "1.80.0#1" }, { "name": "boost-any", "version": "1.80.0#1" }, { "name": "boost-multi-index", "version": "1.80.0#1" }, { "name": "boost-foreach", "version": "1.80.0#1" }, { "name": "boost-property-tree", "version": "1.80.0#1" }, { "name": "boost-interprocess", "version": "1.80.0#1" }, { "name": "boost-variant2", "version": "1.80.0#1" }, { "name": "boost-system", "version": "1.80.0#1" }, { "name": "boost-rational", "version": "1.80.0#1" }, { "name": "boost-pool", "version": "1.80.0#1" }, { "name": "boost-ratio", "version": "1.80.0#1" }, { "name": "boost-coroutine", "version": "1.80.0#1" }, { "name": "boost-context", "version": "1.80.0#1" }, { "name": "boost-chrono", "version": "1.80.0#1" }, { "name": "boost-atomic", "version": "1.80.0#1" }, { "name": "boost-align", "version": "1.80.0#1" }, { "name": "boost-thread", "version": "1.80.0#1" }, { "name": "boost-asio", "version": "1.80.0#1" }, { "name": "boost-core", "version": "1.80.0#1" }, { "name": "boost-integer", "version": "1.80.0#1" }, { "name": "boost-io", "version": "1.80.0#1" }, { "name": "boost-date-time", "version": "1.80.0#1" }, { "name": "boost-algorithm", "version": "1.80.0#1" }, { "name": "boost-array", "version": "1.80.0#1" }, { "name": "boost-assert", "version": "1.80.0#1" }, { "name": "boost-bind", "version": "1.80.0#1" }, { "name": "boost-build", "version": "1.80.0#1" }, { "name": "boost-concept-check", "version": "1.80.0#1" }, { "name": "boost-config", "version": "1.80.0#1" }, { "name": "boost-container", "version": "1.80.0#1" }, { "name": "boost-container-hash", "version": "1.80.0#1" }, { "name": "boost-conversion", "version": "1.80.0#1" }, { "name": "boost-core", "version": "1.80.0#1" }, { "name": "boost-date-time", "version": "1.80.0#1" }, { "name": "boost-describe", "version": "1.80.0#1" }, { "name": "boost-detail", "version": "1.80.0#1" }, { "name": "boost-exception", "version": "1.80.0#1" }, { "name": "boost-function", "version": "1.80.0#1" }, { "name": "boost-function-types", "version": "1.80.0#1" }, { "name": "boost-functional", "version": "1.80.0#1" }, { "name": "boost-fusion", "version": "1.80.0#1" }, { "name": "boost-integer", "version": "1.80.0#1" }, { "name": "boost-intrusive", "version": "1.80.0#1" }, { "name": "boost-io", "version": "1.80.0#1" }, { "name": "boost-iterator", "version": "1.80.0#1" }, { "name": "boost-lexical-cast", "version": "1.80.0#1" }, { "name": "boost-modular-build-helper", "version": "1.80.0#1" }, { "name": "boost-move", "version": "1.80.0#1" }, { "name": "boost-mp11", "version": "1.80.0#1" }, { "name": "boost-mpl", "version": "1.80.0#1" }, { "name": "boost-numeric-conversion", "version": "1.80.0#1" }, { "name": "boost-optional", "version": "1.80.0#1" }, { "name": "boost-predef", "version": "1.80.0#1" }, { "name": "boost-preprocessor", "version": "1.80.0#1" }, { "name": "boost-range", "version": "1.80.0#1" }, { "name": "boost-regex", "version": "1.80.0#1" }, { "name": "boost-smart-ptr", "version": "1.80.0#1" }, { "name": "boost-static-assert", "version": "1.80.0#1" }, { "name": "boost-throw-exception", "version": "1.80.0#1" }, { "name": "boost-tokenizer", "version": "1.80.0#1" }, { "name": "boost-tuple", "version": "1.80.0#1" }, { "name": "boost-type-traits", "version": "1.80.0#1" }, { "name": "boost-typeof", "version": "1.80.0#1" }, { "name": "boost-uninstall", "version": "1.80.0#1" }, { "name": "boost-uninstall", "version": "1.80.0#1" }, { "name": "boost-unordered", "version": "1.80.0#1" }, { "name": "boost-utility", "version": "1.80.0#1" }, { "name": "boost-vcpkg-helpers", "version": "1.80.0#1" }, { "name": "boost-endian", "version": "1.80.0#1" }, { "name": "boost-variant", "version": "1.80.0#1" }, { "name": "boost-type-index", "version": "1.80.0#1" }, { "name": "boost-spirit", "version": "1.80.0#1" }, { "name": "boost-proto", "version": "1.80.0#1" }, { "name": "boost-phoenix", "version": "1.80.0#1" }, { "name": "boost-winapi", "version": "1.80.0#1" } ] } ```

Copy issue body from C:/src/boost-build-failure/boost-build-failure/vcpkg_installed/x64-windows-static/vcpkg/issue_body.md

jimwang118 commented 3 months ago

You can refer to this https://github.com/microsoft/vcpkg/issues/38980#issuecomment-2138632860 to solve your issue. Or update the boost baseline to the time after this PR https://github.com/microsoft/vcpkg/pull/36119 is merged.

jimwang118 commented 3 months ago

Thanks for posting this issue. Please reopen this issue if this is still a problem for you.