microsoft / vcpkg

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

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

Closed CainDez closed 4 months ago

CainDez commented 4 months ago

Package: boost-coroutine:x64-windows-static@1.83.0

Host Environment

To Reproduce

vcpkg install

Failure logs

-- Using cached boostorg-coroutine-boost-1.83.0.tar.gz.
-- Cleaning sources at D:/devtools/vcpkg/buildtrees/boost-coroutine/src/ost-1.83.0-554f073b34.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/devtools/vcpkg/downloads/boostorg-coroutine-boost-1.83.0.tar.gz
-- Using source at D:/devtools/vcpkg/buildtrees/boost-coroutine/src/ost-1.83.0-554f073b34.clean
-- 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: D:/devtools/CMake/bin/cmake.exe --build . --config Debug --target install -- -v -j21
    Working Directory: D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg
    See logs for more information:
      D:\devtools\vcpkg\buildtrees\boost-coroutine\install-x64-windows-static-dbg-out.log

Call Stack (most recent call first):
  D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/boost-modular-build.cmake:139 (vcpkg_cmake_install)
  C:/Users/zhuxj/AppData/Local/vcpkg/registries/git-trees/d8a5c2cff3de497580fc8dc363ebc3e8ec0c9a1d/portfile.cmake:12 (boost_modular_build)
  scripts/ports.cmake:191 (include)
D:\devtools\vcpkg\buildtrees\boost-coroutine\install-x64-windows-static-dbg-out.log ``` Change Dir: 'D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg' Run Build Command(s): D:/devtools/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v -v -j21 install [1/2] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean\build && D:\projects\A3_2.5G\out\build\x64-debug\vcpkg_installed\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/user-config.jam --stagedir=D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/stage --build-dir=D:/devtools/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 -j 21 -sBOOST_ROOT=D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/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 D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/CMakeFiles/boost C:\WINDOWS\system32\cmd.exe /C "cd /D D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean\build && D:\projects\A3_2.5G\out\build\x64-debug\vcpkg_installed\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/user-config.jam --stagedir=D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/stage --build-dir=D:/devtools/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 -j 21 -sBOOST_ROOT=D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/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 D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/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: D:\devtools\vcpkg\buildtrees\boost-coroutine\x64-windows-static-dbg\user-config.jam notice: Searching 'D:\devtools\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 'D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg'. notice: [msvc-cfg] msvc-14.3 detected, command: 'D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\Hostx64\arm\cl.exe' notice: will use 'D:/Program Files/Microsoft Visual Studio/2022/Community/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: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86' notice: [msvc-cfg] condition: 'msvc-144//32', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86' notice: [msvc-cfg] condition: 'msvc-144/x86/64', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64' notice: [msvc-cfg] condition: 'msvc-144//64', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64' notice: [msvc-cfg] condition: 'msvc-144/x86/', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64' notice: [msvc-cfg] condition: 'msvc-144//', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64' notice: [msvc-cfg] condition: 'msvc-144/ia64/64', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_ia64' notice: [msvc-cfg] condition: 'msvc-144/ia64/', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_ia64' notice: [msvc-cfg] condition: 'msvc-144/arm/32', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_arm' notice: [msvc-cfg] condition: 'msvc-144/arm/64', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_arm64' Building target '../build/stage' Build request: object(property-set)@412 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&&/D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/include /boost/context//boost_context shared:BOOST_COROUTINES_DYN_LINK=1 -machine:x64 -nologo -debug -INCREMENTAL /D:/devtools/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&&/D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/include off off /boost/context//boost_context static -machine:x64 -nologo -debug -INCREMENTAL /D:/devtools/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)@441 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//D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/debug/lib/boost_context-vc140-mt-gd.lib ../include&&/D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/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//D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/debug/lib/boost_context-vc140-mt-gd.lib true windows ../include&&/D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/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//D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/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", "boost-thread" ] } ```
CainDez commented 4 months ago

build failed after update visual studio to 17.10

Cheney-W commented 4 months ago

I can't reproduce this issue in my side with the latest vcpkg, and the latest version of boost is 1.85.0, could you please remove the local vcpkg/downloads folder and reinstall this port again?

CainDez commented 4 months ago

I can't reproduce this issue in my side with the latest vcpkg, and the latest version of boost is 1.85.0, could you please remove the local vcpkg/downloads folder and reinstall this port again?

Boost version i used is 1.83.0 and vcpkg is the latest. It's build success after I roolback visual studio to 17.9.6. It looks like Visual Studio's issue.

{ "default-registry": { "kind": "git", "baseline": "e85cafa30def190eca0dc1413bf8c04e434af567", "repository": "https://github.com/microsoft/vcpkg" }, "registries": [ { "kind": "artifact", "location": "https://github.com/microsoft/vcpkg-ce-catalog/archive/refs/heads/main.zip", "name": "microsoft" } ] }

Cheney-W commented 4 months ago

https://github.com/microsoft/vcpkg/pull/36119

Cheney-W commented 4 months ago

If you must use version 1.83.0 of boost, please apply the modifications in above PR to your local boost file.

CainDez commented 4 months ago

If you must use version 1.83.0 of boost, please apply the modifications in above PR to your local boost file.

I update the baseline to the latest,it' build successs now. Thank you very much!