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-thread] Build error on x64-windows #44022

Open
TheGrandUser opened this issue Feb 25, 2025 · 1 comment
Open

[boost-thread] Build error on x64-windows #44022

TheGrandUser opened this issue Feb 25, 2025 · 1 comment
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@TheGrandUser
Copy link

Package: boost-thread:[email protected]

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.42.34436.0
  • vcpkg-tool version: 2025-02-11-bec4296bf5289dc9ce83b4f5095943e44162f9c2
    vcpkg-scripts version: d8f4a47 2025-02-25 (6 hours ago)

To Reproduce

vcpkg install

Failure logs

-- Using cached boostorg-thread-boost-1.83.0.tar.gz
-- Cleaning sources at D:/vcpkg/vcpkg/buildtrees/boost-thread/src/ost-1.83.0-690cb03abf.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/vcpkg/downloads/boostorg-thread-boost-1.83.0.tar.gz
-- Using source at D:/vcpkg/vcpkg/buildtrees/boost-thread/src/ost-1.83.0-690cb03abf.clean
-- Including C:/Users/Andrew/AppData/Local/vcpkg/registries/git-trees/f2f50fecd4338161565a0425c3e9b55fdbe68424/b2-options.cmake
-- Found external ninja('1.12.1').
-- Getting CMake variables for x64-windows
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: D:/vcpkg/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j9
    Working Directory: D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg
    See logs for more information:
      D:\vcpkg\vcpkg\buildtrees\boost-thread\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/boost-modular-build.cmake:139 (vcpkg_cmake_install)
  C:/Users/Andrew/AppData/Local/vcpkg/registries/git-trees/f2f50fecd4338161565a0425c3e9b55fdbe68424/portfile.cmake:12 (boost_modular_build)
  scripts/ports.cmake:196 (include)



D:\vcpkg\vcpkg\buildtrees\boost-thread\install-x64-windows-dbg-out.log
Change Dir: 'D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg'

Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j9 install
[1/2] C:\WINDOWS\system32\cmd.exe /C "cd /D D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean\build && G:\Kohera3D\KoheraAlgo\vcpkg_installed\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg/user-config.jam --stagedir=D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg/stage --build-dir=D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg runtime-link=shared link=shared address-model=64 architecture=x86 target-os=windows threadapi=win32 variant=debug --disable-icu /boost/thread//boost_thread --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j 9 -sBOOST_ROOT=G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=G:/Kohera3D/KoheraAlgo/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:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg/CMakeFiles/boost 
C:\WINDOWS\system32\cmd.exe /C "cd /D D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean\build && G:\Kohera3D\KoheraAlgo\vcpkg_installed\x64-windows\tools\boost-build\b2.exe toolset=msvc --user-config=D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg/user-config.jam --stagedir=D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg/stage --build-dir=D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg runtime-link=shared link=shared address-model=64 architecture=x86 target-os=windows threadapi=win32 variant=debug --disable-icu /boost/thread//boost_thread --with-atomic --with-random --with-date_time --with-filesystem --with-system --with-thread --with-chrono -j 9 -sBOOST_ROOT=G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/tools/boost-build -sBOOST_BUILD_PATH=G:/Kohera3D/KoheraAlgo/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 G:/Kohera3D/KoheraAlgo/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:\vcpkg\vcpkg\buildtrees\boost-thread\x64-windows-dbg\user-config.jam
notice: Searching 'D:\vcpkg\vcpkg\buildtrees\boost-thread\x64-windows-dbg' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'D:/vcpkg/vcpkg/buildtrees/boost-thread/x64-windows-dbg'.
notice: [msvc-cfg] msvc-14.3 detected, command: 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64\cl.exe'
notice: will use 'C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe' for msvc, condition <toolset>msvc-144
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>x86/<address-model>32', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>/<address-model>32', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>x86/<address-model>64', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>/<address-model>64', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>x86/<address-model>', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>/<address-model>', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat amd64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>ia64/<address-model>64', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_ia64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>ia64/<address-model>', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_ia64'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>arm/<address-model>32', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_arm'
notice: [msvc-cfg] condition: '<toolset>msvc-144/<architecture>arm/<address-model>64', setup: 'G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/share/boost-build/nothing.bat x86_arm64'

Building target '../build/boost_thread'
     Build request: object(property-set)@411 <address-model>64 <architecture>x86 <debug-symbols>on <link>shared <runtime-link>shared <target-os>windows <threadapi>win32 <threading>multi <toolset>msvc <variant>debug
     Command line free features:
     Target requirements: <archiveflags>-machine:x64 -nologo <conditional>@Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean\build>%Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean\build>.requirements <define>BOOST_ALL_NO_LIB=1 <include>../include&&/G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/include <library>/boost/date_time//boost_date_time <link>shared:<define>BOOST_THREAD_BUILD_DLL=1 <link>static:<define>BOOST_THREAD_BUILD_LIB=1 <linkflags>-machine:x64 -nologo -debug -INCREMENTAL <relevant>cxxflags:<relevant>toolset <relevant>define:<relevant>link <relevant>define:<relevant>target-os <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <relevant>warnings:<relevant>toolset <tag>@Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean\build>%Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean\build>.tag <target-os>windows:<define>BOOST_USE_WINDOWS_H <target-os>windows:<define>WIN32_LEAN_AND_MEAN <threading>multi <toolset>clang-3.0:<cxxflags>-Wno-delete-non-virtual-dtor <toolset>clang:<cxxflags>-Wextra <toolset>clang:<cxxflags>-Wno-long-long <toolset>clang:<cxxflags>-Wno-unused-parameter <toolset>clang:<cxxflags>-Wno-variadic-macros <toolset>clang:<cxxflags>-Wunused-function <toolset>clang:<warnings>on <toolset>darwin-4.6.2:<cxxflags>-Wno-delete-non-virtual-dtor <toolset>darwin-4.7.0:<cxxflags>-Wno-delete-non-virtual-dtor <toolset>darwin-4:<cxxflags>-Wno-variadic-macros <toolset>darwin-5:<cxxflags>-Wno-variadic-macros <toolset>darwin:<cxxflags>-Wextra <toolset>darwin:<cxxflags>-Wno-long-long <toolset>darwin:<cxxflags>-Wno-unused-parameter <toolset>darwin:<cxxflags>-Wunused-function <toolset>darwin:<cxxflags>-fpermissive <toolset>darwin:<cxxflags>-pedantic <toolset>gcc-4:<cxxflags>-Wno-variadic-macros <toolset>gcc-5:<cxxflags>-Wno-variadic-macros <toolset>gcc:<cxxflags>-Wextra <toolset>gcc:<cxxflags>-Wno-long-long <toolset>gcc:<cxxflags>-Wno-unused-parameter <toolset>gcc:<cxxflags>-Wunused-function <toolset>gcc:<cxxflags>-pedantic <toolset>intel:<cxxflags>-wd1418 <toolset>intel:<cxxflags>-wd193,304,383,444 <toolset>intel:<cxxflags>-wd2415 <toolset>intel:<cxxflags>-wd593,981 <toolset>msvc,<runtime-link>shared:<threading>multi <toolset>msvc:<cxxflags>/wd4100 <toolset>msvc:<cxxflags>/wd4512 <toolset>msvc:<cxxflags>/wd6246 <toolset>pathscale:<cxxflags>-Wno-long-long <toolset>pathscale:<cxxflags>-pedantic <warnings>all

     Common properties:  <address-model>64 <architecture>x86 <archiveflags>-machine:x64 -nologo <asynch-exceptions>off <coverage>off <cxxflags>/wd4100 <cxxflags>/wd4512 <cxxflags>/wd6246 <debug-store>object <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <define>BOOST_THREAD_BUILD_DLL=1 <define>BOOST_THREAD_USES_CHRONO <define>BOOST_THREAD_WIN32 <define>BOOST_USE_WINDOWS_H <define>WIN32_LEAN_AND_MEAN <embed-manifest-via>linker <embed-manifest>on <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>true <host-os>windows <include>../include&&/G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/include <inlining>off <install-dependencies>off <library>/boost/chrono//boost_chrono <library>/boost/date_time//boost_date_time <link>shared <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>cxxflags:<relevant>toolset <relevant>define:<relevant>link <relevant>define:<relevant>target-os <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <relevant>warnings:<relevant>toolset <response-file>auto <rtti>on <runtime-debugging>on <runtime-link>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean\build>%Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean\build>.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>all <windows-api>desktop

     Building target '../boost_chrono'
         Build request: object(property-set)@439 <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>shared <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>shared <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>all <windows-api>desktop
         Command line free features:
         Target requirements: <archiveflags>-machine:x64 -nologo <define>BOOST_ALL_NO_LIB=1 <file>/boost//G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/debug/lib/boost_chrono-vc140-mt-gd.lib <include>../include&&/G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/include <library>/boost/date_time//boost_date_time <linkflags>-machine:x64 -nologo -debug -INCREMENTAL <relevant>threading:<relevant>runtime-link <relevant>threading:<relevant>toolset <tag>@Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean>%Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.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//G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/debug/lib/boost_chrono-vc140-mt-gd.lib <hardcode-dll-paths>true <host-os>windows <include>../include&&/G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/include <inlining>off <install-dependencies>off <library>/boost/date_time//boost_date_time <link>shared <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>shared <stdlib>native <strip>off <suppress-import-lib>false <symlink-location>project-relative <tag>@Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.clean>%Jamfile<D:\vcpkg\vcpkg\buildtrees\boost-thread\src\ost-1.83.0-690cb03abf.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>all <windows-api>desktop

error: Unable to find file or target named

error:     '/boost//G:/Kohera3D/KoheraAlgo/vcpkg_installed/x64-windows/debug/lib/boost_chrono-vc140-mt-gd.lib'

error: referred to from project at

error:     '..'



ninja: build stopped: subcommand failed.

Additional context

vcpkg.json
{
  "dependencies": [
    "eigen3",
    "boost-chrono",
    "boost-thread"
  ]
}


I had attempted to reproduce this issue with a fresh project but was unable to do so. I am unsure what might be the critical difference between the fresh project and my main project.

@LilyWangLL LilyWangLL added the requires:repro The issue is not currently repro-able label Feb 26, 2025
@Neumann-A
Copy link
Contributor

I had attempted to reproduce this issue with a fresh project but was unable to do so. I am unsure what might be the critical difference between the fresh project and my main project.

Newer vcpkg checkout? Boost gets built with CMake now and no longer with b2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

3 participants