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-coroutine] Build error on x64-windows-static #39330

Closed
CainDez opened this issue Jun 17, 2024 · 6 comments
Closed

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

CainDez opened this issue Jun 17, 2024 · 6 comments
Assignees
Labels
category:question This issue is a question

Comments

@CainDez
Copy link

CainDez commented Jun 17, 2024

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

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.40.33811.0
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: f7423ee 2024-06-14 (3 days ago)

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 <toolset>msvc-144
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>x86/<address-model>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: '<toolset>msvc-144/<architecture>/<address-model>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: '<toolset>msvc-144/<architecture>x86/<address-model>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: '<toolset>msvc-144/<architecture>/<address-model>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: '<toolset>msvc-144/<architecture>x86/<address-model>', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>/<address-model>', setup: 'D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>ia64/<address-model>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: '<toolset>msvc-144/<architecture>ia64/<address-model>', 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: '<toolset>msvc-144/<architecture>arm/<address-model>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: '<toolset>msvc-144/<architecture>arm/<address-model>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 <address-model>64 <architecture>x86 <debug-symbols>on <link>static <runtime-link>static <target-os>windows <threadapi>win32 <threading>multi <toolset>msvc <variant>debug
     Command line free features:
     Target requirements: <archiveflags>-machine:x64 -nologo <define>BOOST_ALL_NO_LIB=1 <define>BOOST_COROUTINES_SOURCE <hardcode-dll-paths>false <include>../include&&/D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/include <library>/boost/context//boost_context <link>shared:<define>BOOST_COROUTINES_DYN_LINK=1 <linkflags>-machine:x64 -nologo -debug -INCREMENTAL <location>/D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/stage/lib <relevant>cxxflags:<relevant>segmented-stacks <relevant>cxxflags:<relevant>target-os <relevant>cxxflags:<relevant>toolset <relevant>define:<relevant>link <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <tag>@Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean>%Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean>.tag <target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS <target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack <toolset>clang,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS <toolset>clang,<segmented-stacks>on:<cxxflags>-fsplit-stack <toolset>msvc,<runtime-link>shared:<threading>multi <translate-path>@Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean\build>%Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean\build>.stage-translate-path

     Common properties:  <address-model>64 <architecture>x86 <archiveflags>-machine:x64 -nologo <asynch-exceptions>off <coverage>off <debug-store>object <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <define>BOOST_COROUTINES_SOURCE <embed-manifest-via>linker <embed-manifest>on <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>false <host-os>windows <include>../include&&/D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/include <inlining>off <install-dependencies>off <library>/boost/context//boost_context <link>static <linkflags>-machine:x64 -nologo -debug -INCREMENTAL <location>/D:/devtools/vcpkg/buildtrees/boost-coroutine/x64-windows-static-dbg/stage/lib <midl-robust>yes <midl-stubless-proxy>yes <optimization>off <os>NT <pch>on <preserve-test-targets>on <profiling>off <relevant>cxxflags:<relevant>segmented-stacks <relevant>cxxflags:<relevant>target-os <relevant>cxxflags:<relevant>toolset <relevant>define:<relevant>link <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>static <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean>%Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean>.tag <target-os>windows <testing.execute>on <threadapi>win32 <threading>multi <toolset-msvc:version>144 <toolset>msvc <translate-path>@Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean\build>%Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean\build>.stage-translate-path <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on <windows-api>desktop

     Building target '../boost_context'
         Build request: object(property-set)@441 <address-model>64 <architecture>x86 <asynch-exceptions>off <coverage>off <debug-store>object <debug-symbols>on <embed-manifest-via>linker <embed-manifest>on <exception-handling>on <extern-c-nothrow>off <inlining>off <link>static <midl-robust>yes <midl-stubless-proxy>yes <optimization>off <os>NT <pch>on <preserve-test-targets>on <profiling>off <relevant>variant <rtti>on <runtime-debugging>on <runtime-link>static <stdlib>native <strip>off <target-os>windows <testing.execute>on <threadapi>win32 <threading>multi <toolset-msvc:version>144 <toolset>msvc <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on <windows-api>desktop
         Command line free features:
         Target requirements: <archiveflags>-machine:x64 -nologo <define>BOOST_ALL_NO_LIB=1 <file>/boost//D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/debug/lib/boost_context-vc140-mt-gd.lib <include>../include&&/D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/include <linkflags>-machine:x64 -nologo -debug -INCREMENTAL <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <tag>@Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean>%Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean>.tag <toolset>msvc,<runtime-link>shared:<threading>multi <variant>debug

         Common properties:  <address-model>64 <architecture>x86 <archiveflags>-machine:x64 -nologo <asynch-exceptions>off <coverage>off <debug-store>object <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <embed-manifest-via>linker <embed-manifest>on <exception-handling>on <extern-c-nothrow>off <file>/boost//D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/debug/lib/boost_context-vc140-mt-gd.lib <hardcode-dll-paths>true <host-os>windows <include>../include&&/D:/projects/A3_2.5G/out/build/x64-debug/vcpkg_installed/x64-windows-static/include <inlining>off <install-dependencies>off <link>static <linkflags>-machine:x64 -nologo -debug -INCREMENTAL <midl-robust>yes <midl-stubless-proxy>yes <optimization>off <os>NT <pch>on <preserve-test-targets>on <profiling>off <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <relevant>variant <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>static <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean>%Jamfile<D:\devtools\vcpkg\buildtrees\boost-coroutine\src\ost-1.83.0-554f073b34.clean>.tag <target-os>windows <testing.execute>on <threadapi>win32 <threading>multi <toolset-msvc:version>144 <toolset>msvc <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on <windows-api>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
Copy link
Author

CainDez commented Jun 17, 2024

build failed after update visual studio to 17.10

@Cheney-W Cheney-W added the requires:repro The issue is not currently repro-able label Jun 17, 2024
@Cheney-W
Copy link
Contributor

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
Copy link
Author

CainDez commented Jun 17, 2024

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
Copy link
Contributor

#36119

@Cheney-W
Copy link
Contributor

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

@CainDez
Copy link
Author

CainDez commented Jun 17, 2024

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!

@CainDez CainDez closed this as completed Jun 17, 2024
@Cheney-W Cheney-W added category:question This issue is a question and removed requires:repro The issue is not currently repro-able labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:question This issue is a question
Projects
None yet
Development

No branches or pull requests

2 participants