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 failure when using MinGW LLVM with Clang #38840

Closed
moogion opened this issue May 21, 2024 · 2 comments
Closed

[boost-coroutine] build failure when using MinGW LLVM with Clang #38840

moogion opened this issue May 21, 2024 · 2 comments
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@moogion
Copy link

moogion commented May 21, 2024

Package: boost-coroutine:x64-mingw-static@1.84.0

Host Environment

Windows

  • Host: x64-windows
  • Compiler: Clang 17.0.6
  • vcpkg-tool version: 2024-04-23-d6945642ee5c3076addd1a42c331bbf4cfc97457
    vcpkg-scripts version: 261dd68 2024-05-20 (15 hours ago)

Compiler

MinGW, Clang

Steps to reproduce the behavior

`vcpkg install boost-coroutine:x64-mingw-static`

Failure logs

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

Call Stack (most recent call first):
  G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/share/boost-build/boost-modular-build.cmake:139 (vcpkg_cmake_install)
  C:/Users/moogion/AppData/Local/vcpkg/registries/git-trees/b6c89a5afa462111f3180af3c843fbc11ed3fd63/portfile.cmake:12 (boost_modular_build)
  scripts/ports.cmake:175 (include)



G:\vcpkg\buildtrees\boost-coroutine\install-x64-mingw-static-dbg-out.log
Change Dir: 'G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg'

Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe -v -v -j17 install
[1/2] C:\WINDOWS\system32\cmd.exe /C "cd /D G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean\build && G:\repositories\moogion\tuwe\build\x64-mingw-debug\vcpkg_installed\x64-mingw-static\tools\boost-build\b2.exe toolset=clang --user-config=G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg/user-config.jam --stagedir=G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg/stage --build-dir=G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-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 17 -sBOOST_ROOT=G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/tools/boost-build -sBOOST_BUILD_PATH=G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/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 G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg/CMakeFiles/boost 
C:\WINDOWS\system32\cmd.exe /C "cd /D G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean\build && G:\repositories\moogion\tuwe\build\x64-mingw-debug\vcpkg_installed\x64-mingw-static\tools\boost-build\b2.exe toolset=clang --user-config=G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg/user-config.jam --stagedir=G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg/stage --build-dir=G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-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 17 -sBOOST_ROOT=G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/tools/boost-build -sBOOST_BUILD_PATH=G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/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:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/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:
    G:\vcpkg\buildtrees\boost-coroutine\x64-mingw-static-dbg\user-config.jam
notice: Searching 'G:\vcpkg\buildtrees\boost-coroutine\x64-mingw-static-dbg' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg'.
notice: will use 'D:/llvm-mingw/bin/x86_64-w64-mingw32-g++.exe' for clang-linux, condition <toolset>clang-linux-17

Building target '../build/stage'
     Build request: object(property-set)@308 <address-model>64 <architecture>x86 <debug-symbols>on <link>static <runtime-link>static <target-os>windows <threadapi>win32 <threading>multi <toolset>clang <variant>debug
     Command line free features:
     Target requirements: <define>BOOST_ALL_NO_LIB=1 <define>BOOST_COROUTINES_SOURCE <hardcode-dll-paths>false <include>../include&&/G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/include <library>/boost/context//boost_context <link>shared:<define>BOOST_COROUTINES_DYN_LINK=1 <linkflags>--target=x86_64-windows-gnu -static <location>/G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg/stage/lib <relevant>cxxflags:<relevant>segmented-stacks <relevant>cxxflags:<relevant>target-os <relevant>cxxflags:<relevant>toolset <relevant>define:<relevant>link <tag>@Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean>%Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.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 <translate-path>@Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean\build>%Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean\build>.stage-translate-path

     Common properties:  <address-model>64 <architecture>x86 <asynch-exceptions>off <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <define>BOOST_COROUTINES_SOURCE <exception-handling>on <extern-c-nothrow>off <hardcode-dll-paths>false <host-os>windows <include>../include&&/G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/include <inlining>off <install-dependencies>off <library>/boost/context//boost_context <link>static <linkflags>--target=x86_64-windows-gnu -static <location>/G:/vcpkg/buildtrees/boost-coroutine/x64-mingw-static-dbg/stage/lib <optimization>off <os>NT <pch>on <profiling>off <relevant>cxxflags:<relevant>segmented-stacks <relevant>cxxflags:<relevant>target-os <relevant>cxxflags:<relevant>toolset <relevant>define:<relevant>link <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<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean>%Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean>.tag <target-os>windows <threadapi>win32 <threading>multi <toolset-clang:platform>linux <toolset-clang:version>17 <toolset>clang <translate-path>@Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean\build>%Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean\build>.stage-translate-path <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on

     Building target '../boost_context'
         Build request: object(property-set)@335 <address-model>64 <architecture>x86 <asynch-exceptions>off <coverage>off <debug-symbols>on <exception-handling>on <extern-c-nothrow>off <inlining>off <link>static <optimization>off <os>NT <pch>on <profiling>off <relevant>variant <rtti>on <runtime-debugging>on <runtime-link>static <stdlib>native <strip>off <target-os>windows <threadapi>win32 <threading>multi <toolset-clang:platform>linux <toolset-clang:version>17 <toolset>clang <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on
         Command line free features:
         Target requirements: <define>BOOST_ALL_NO_LIB=1 <file>/boost//G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/debug/lib/libboost_context.a <include>../include&&/G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/include <linkflags>--target=x86_64-windows-gnu -static <tag>@Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean>%Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean>.tag <variant>debug

         Common properties:  <address-model>64 <architecture>x86 <asynch-exceptions>off <coverage>off <debug-symbols>on <define>BOOST_ALL_NO_LIB=1 <exception-handling>on <extern-c-nothrow>off <file>/boost//G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/debug/lib/libboost_context.a <hardcode-dll-paths>true <host-os>windows <include>../include&&/G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/include <inlining>off <install-dependencies>off <link>static <linkflags>--target=x86_64-windows-gnu -static <optimization>off <os>NT <pch>on <profiling>off <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<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean>%Jamfile<G:\vcpkg\buildtrees\boost-coroutine\src\ost-1.84.0-0ea211966d.clean>.tag <target-os>windows <threadapi>win32 <threading>multi <toolset-clang:platform>linux <toolset-clang:version>17 <toolset>clang <user-interface>console <variant>debug <vectorize>off <warnings-as-errors>off <warnings>on
error: Unable to find file or target named
error:     '/boost//G:/repositories/moogion/tuwe/build/x64-mingw-debug/vcpkg_installed/x64-mingw-static/debug/lib/libboost_context.a'
error: referred to from project at
error:     '..'



ninja: build stopped: subcommand failed.

Additional context

vcpkg.json
{
  "dependencies": [
    "ftxui",
    "boost-beast"
  ]
}

Used by LLVM-MinGW to compile with Clang.

libboost_context.lib is created, and libboost_context.a is expected to be created, which is configured, as far as I can tell, by the boost-modular-build-helper package (probably due to rules in boost-modular-build.cmake).

@moogion moogion added the category:port-bug The issue is with a library, which is something the port should already support label May 21, 2024
@Neumann-A
Copy link
Contributor

won't be fixed. Old boost version compared to current baseline.

@moogion
Copy link
Author

moogion commented May 21, 2024

Ah, really, a simple baselines update helped. I apologize for the inconvenience!

vcpkg x-update-baseline

The documentation is not very friendly or I'm stupid.
Thank you very much!

@moogion moogion closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

2 participants