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

Cannot build Boost/1.86.0 with Conan 2 #17750

Open
IrvingDrew opened this issue Feb 11, 2025 · 1 comment
Open

Cannot build Boost/1.86.0 with Conan 2 #17750

IrvingDrew opened this issue Feb 11, 2025 · 1 comment

Comments

@IrvingDrew
Copy link

Describe the bug

Application versions:

  • CMake version 3.30.2
  • Conan version 2.12.1
  • Gcc 14.2.0(msys64/ucrt64)
  • Windows 11 64 Intel

Configs:

[requires]
boost/1.86.0
fmt/11.0.2
eigen/3.4.0
spdlog/1.15.0

[generators]
CMakeDeps
CMakeToolchain
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=14
os=Windows

Error:

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=14
os=Windows

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=14
os=Windows


======== Computing dependency graph ========
Graph root
    cli
Requirements
    boost/1.86.0#ce76e7477e466d7d8cbcf738c5d64175 - Cache
    bzip2/1.0.8#d00dac990f08d991998d624be81a9526 - Cache
    zlib/1.3.1#b8bc2603263cf7eccbd6e17e66b0ed76 - Cache
Build requirements
    b2/5.2.1#91bc73931a0acb655947a81569ed8b80 - Cache
Resolved version ranges
    b2/[>=5.2 <6]: b2/5.2.1
    zlib/[>=1.2.11 <2]: zlib/1.3.1

======== Computing necessary packages ========
Connecting to remote 'conancenter' anonymously
boost/1.86.0: Main binary package 'ec850d81fd48da3c3eb0f2ed251b465d2e22a8a3' missing
boost/1.86.0: Checking 9 compatible configurations
boost/1.86.0: Compatible configurations not found in cache, checking servers
boost/1.86.0: '753a694fea13f7b25f9b1f2c2e969adacc3b98c4': compiler.cppstd=14
boost/1.86.0: '68076226ff02ce22a5eec6f90fb8c536517af615': compiler.cppstd=gnu14
boost/1.86.0: '6129808a62a2756710d61dc6fef160c978366e42': compiler.cppstd=17
boost/1.86.0: '5fa7e219b30ebb9e631faf4361254ec946a62f2e': compiler.cppstd=20
boost/1.86.0: '289eea46ccad06257de012706bc794c0cef46c94': compiler.cppstd=gnu20
boost/1.86.0: '5a18613e05d5d27650016cc6f6b5f50ccd1b6819': compiler.cppstd=23
boost/1.86.0: 'b18199000ad08b74eac4498da700f1a16448c462': compiler.cppstd=gnu23
boost/1.86.0: '02f59eed48728f171018dc8e288cc5a3e33f576f': compiler.cppstd=26
boost/1.86.0: '65bd338bb3147dc9b753d13c2d758dd14d9aa370': compiler.cppstd=gnu26
Requirements
    boost/1.86.0#ce76e7477e466d7d8cbcf738c5d64175:ec850d81fd48da3c3eb0f2ed251b465d2e22a8a3 - Build
    bzip2/1.0.8#d00dac990f08d991998d624be81a9526:3784f82c839358eebcdedab0eb64eaa9eb25d01c#4786777ba528a5f170ca0f04edff616b - Cache
    zlib/1.3.1#b8bc2603263cf7eccbd6e17e66b0ed76:0534efa715363b456efc91df5dd071bc6eefb323#a35000455d693b2b5c250762399eb251 - Cache
Build requirements
    b2/5.2.1#91bc73931a0acb655947a81569ed8b80:522dcea5982a3f8a5b624c16477e47195da2f84f#5f19dadaa36632e4f4999a053c9edf2c - Cache

======== Installing packages ========
b2/5.2.1: Already installed! (1 of 4)
bzip2/1.0.8: Already installed! (2 of 4)
zlib/1.3.1: Already installed! (3 of 4)

-------- Installing package boost/1.86.0 (4 of 4) --------
boost/1.86.0: Building from source
boost/1.86.0: Package boost/1.86.0:ec850d81fd48da3c3eb0f2ed251b465d2e22a8a3
boost/1.86.0: Building your package in C:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\b
boost/1.86.0: Calling generate()
boost/1.86.0: Generators folder: C:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\b\build-release\conan
boost/1.86.0: Generating aggregated env files
boost/1.86.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat']
boost/1.86.0: Calling build()
boost/1.86.0: WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file.
boost/1.86.0: WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file.
boost/1.86.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\tools\build\src\tools\gcc.jam' file.
boost/1.86.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\tools\build\src\tools\gcc.jam' file.
boost/1.86.0: WARN: replace_in_file didn't find pattern '    <conditional>@numa' in 'C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\libs\fiber\build\Jamfile.v2' file.
boost/1.86.0: WARN: Patching user-config.jam
boost/1.86.0: WARN:
using zlib : 1.3.1 : <include>"C:/Users/xwc19/.conan2/p/b/zlibe72a6fbfe1594/p/include" <search>"C:/Users/xwc19/.conan2/p/b/zlibe72a6fbfe1594/p/lib" <name>z ;
using bzip2 : 1.0.8 : <include>"C:/Users/xwc19/.conan2/p/b/bzip26284ab3cd7433/p/include" <search>"C:/Users/xwc19/.conan2/p/b/bzip26284ab3cd7433/p/lib" <name>bz2 ;
using "gcc" :  :  "C:/msys64/ucrt64/bin/g++.EXE" :
 ;
boost/1.86.0: WARN: b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\tools\build\user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv threading=multi visibility=hidden link=static variant=release --with-atomic --with-charconv --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --with-process --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-url --with-wave toolset=gcc cxxstd=17 cxxstd-dialect=gnu define=_GLIBCXX_USE_CXX11_ABI=1 pch=on linkflags="" cxxflags="-fPIC" install --prefix=C:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\p -j20 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\b\build-release"
boost/1.86.0: RUN: b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\tools\build\user-config.jam -sNO_ZLIB=0 -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.icu=off --disable-icu boost.locale.iconv=off --disable-iconv threading=multi visibility=hidden link=static variant=release --with-atomic --with-charconv --with-chrono --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --with-fiber --with-filesystem --with-graph --with-iostreams --with-json --with-locale --with-log --with-math --with-nowide --with-process --with-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-url --with-wave toolset=gcc cxxstd=17 cxxstd-dialect=gnu define=_GLIBCXX_USE_CXX11_ABI=1 pch=on linkflags="" cxxflags="-fPIC" install --prefix=C:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\p -j20 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\b\build-release"
notice: found boost-build.jam at C:/Users/xwc19/.conan2/p/boostcfb011e43f97d/s/src/boost-build.jam
notice: loading B2 from C:/Users/xwc19/.conan2/p/b2c45ac73ef9f80/p/bin/.b2/build-system.jam
notice: Searching 'C:\WINDOWS' 'C:\Users\xwc19' 'D:\cadence\Cadence\SPB_Data' 'C:\Users\xwc19' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\build' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\contrib' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\options' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\tools' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\util' 'C:/Users/xwc19/.conan2/p/b2c45ac73ef9f80/p/bin/.b2' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\WINDOWS' 'C:\Users\xwc19' 'D:\cadence\Cadence\SPB_Data' 'C:\Users\xwc19' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\build' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\contrib' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\options' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\tools' 'C:\Users\xwc19\.conan2\p\b2c45ac73ef9f80\p\bin\.b2\util' 'C:/Users/xwc19/.conan2/p/b2c45ac73ef9f80/p/bin/.b2'.
notice: Loading explicitly specified user configuration file:
    C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\tools\build\user-config.jam
notice: Searching 'C:\Users\xwc19\.conan2\p\boostcfb011e43f97d\s\src\tools\build' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/xwc19/.conan2/p/boostcfb011e43f97d/s/src/tools/build'.
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: will use 'C:/msys64/ucrt64/bin/g++.EXE' for gcc, condition <toolset>gcc-14
notice: using gcc libraries :: <toolset>gcc-14 :: C:/msys64/ucrt64/bin C:/msys64/ucrt64/lib C:/msys64/ucrt64/lib32 C:/msys64/ucrt64/lib64
notice: using gcc archiver :: <toolset>gcc-14 :: C:/msys64/ucrt64/x86_64-w64-mingw32/bin/ar.exe
notice: using rc compiler :: <toolset>gcc-14 :: C:\msys64\ucrt64\bin\windres.exe
notice: [openssl] Using pre-installed library
notice: [openssl] Condition
notice: using boost library auto_config <layout>system
notice: [zlib] zlib is already configured
notice: [bzip2] bzip is already configured
notice: iostreams: not using lzma compression
notice: iostreams: not using zstd compression
notice: [python-cfg] Configuring python...
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\ProgramData\Anaconda3\python.exe" 2>&1'
notice: [python-cfg] running command 'python -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...requested configuration matched!
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg]   interpreter command: "python"
notice: [python-cfg]   include path: "C:\ProgramData\Anaconda3\Include"
notice: [python-cfg]   library path: "C:\ProgramData\Anaconda3\libs"
notice: [python-cfg]   DLL search path: "C:\ProgramData\Anaconda3"
notice: [python-cfg] Checking for NumPy...
notice: [python-cfg] running command 'python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())"'
notice: [python-cfg] NumPy enabled
Performing configuration checks

    - default address-model    : 64-bit [1]
    - default architecture     : x86 [1]
    - compiler supports SSE2   : yes [2]
    - compiler supports SSE4.1 : yes [2]
    - cxx11_static_assert      : yes [2]
    - has synchronization.lib  : yes [2]
    - cxx11_variadic_templates : yes [2]
    - cxx11_decltype           : yes [2]
    - GCC libquadmath and __float128 support : yes [2]
    - cxx11_hdr_ratio          : yes [2]
    - cxx11_template_aliases   : yes [2]
    - cxx11_char16_t           : yes [2]
    - cxx11_char32_t           : yes [2]
    - has std::atomic_ref      : no [2]
    - has statx                : no [2]
    - has statx syscall        : no [2]
    - has BCrypt API           : yes [2]
    - cxx11_rvalue_references  : yes [2]
    - cxx11_scoped_enums       : yes [2]
    - cxx11_noexcept           : yes [2]
    - cxx11_nullptr            : yes [2]
    - cxx11_defaulted_functions : yes [2]
    - cxx11_defaulted_moves    : yes [2]
    - cxx11_deleted_functions  : yes [2]
    - cxx11_function_template_default_args : yes [2]
    - cxx11_final              : yes [2]
    - cxx11_override           : yes [2]
    - has init_priority attribute : yes [2]
    - has stat::st_blksize     : no [2]
    - has stat::st_mtim        : no [2]
    - has stat::st_mtimensec   : no [2]
    - has stat::st_mtimespec   : no [2]
    - has stat::st_birthtim    : no [2]
    - has stat::st_birthtimensec : no [2]
    - has stat::st_birthtimespec : no [2]
    - has fdopendir(O_NOFOLLOW) : no [2]
    - has dirent::d_type       : no [2]
    - has POSIX *at APIs       : no [2]
    - has fallocate            : no [2]
    - cxx11_auto_declarations  : yes [2]
    - cxx11_constexpr          : yes [2]
    - cxx11_hdr_mutex          : yes [2]
    - cxx11_hdr_tuple          : yes [2]
    - cxx11_lambdas            : yes [2]
    - cxx11_thread_local       : yes [2]
    - zlib                     : yes [2]
    - bzip2                    : yes [2]
    - cxx11_basic_alignas      : yes [2]
    - cxx11_hdr_functional     : yes [2]
    - cxx11_hdr_type_traits    : yes [2]
    - cxx11_range_based_for    : yes [2]
    - cxx11_smart_ptr          : yes [2]
    - native atomic int32 supported : yes [2]
    - has message compiler     : no [2]
    - native syslog supported  : no [2]
    - pthread supports robust mutexes : no [2]
    - Boost.Regex is header-only : yes [2]
    - compiler supports SSSE3  : yes [2]
    - compiler supports AVX2   : yes [2]
    - gcc visibility           : yes [2]
    - sfinae_expr              : yes [2]
    - cxx11_unified_initialization_syntax : yes [2]
    - cxx11_hdr_initializer_list : yes [2]
    - cxx11_hdr_chrono         : yes [2]
    - cxx11_numeric_limits     : yes [2]
    - cxx11_hdr_array          : yes [2]
    - cxx11_hdr_atomic         : yes [2]
    - cxx11_allocator          : yes [2]
    - cxx11_explicit_conversion_operators : yes [2]
    - cxx14_decltype_auto      : yes [2]
    - cxx14_generic_lambdas    : yes [2]
    - cxx14_return_type_deduction : yes [2]
    - cxx14_variable_templates : yes [2]
    - gcc visibility           : yes [3]
    - cxx11_noexcept           : yes [3]
    - cxx11_rvalue_references  : yes [3]
    - sfinae_expr              : yes [3]
    - cxx11_auto_declarations  : yes [3]
    - cxx11_lambdas            : yes [3]
    - cxx11_unified_initialization_syntax : yes [3]
    - cxx11_hdr_tuple          : yes [3]
    - cxx11_hdr_initializer_list : yes [3]
    - cxx11_hdr_chrono         : yes [3]
    - cxx11_thread_local       : yes [3]
    - cxx11_constexpr          : yes [3]
    - cxx11_nullptr            : yes [3]
    - cxx11_numeric_limits     : yes [3]
    - cxx11_decltype           : yes [3]
    - cxx11_hdr_array          : yes [3]
    - cxx11_hdr_atomic         : yes [3]
    - cxx11_hdr_type_traits    : yes [3]
    - cxx11_allocator          : yes [3]
    - cxx11_explicit_conversion_operators : yes [3]
    - cxx14_decltype_auto      : yes [3]
    - cxx14_generic_lambdas    : yes [3]
    - cxx14_return_type_deduction : yes [3]
    - cxx14_variable_templates : yes [3]
    - long double support      : yes [3]
    - Has Large File Support   : yes [2]
    - Has attribute init_priority : yes [2]
    - has_icu builds           : no [2]
    - std_wstreambuf builds    : yes [2]
    - std_wstreambuf           : yes [2]
    - libbacktrace builds      : no [2]
    - cxx11_rvalue_references  : yes [4]
    - libbacktrace builds      : no [4]
    - addr2line builds         : no [2]
    - addr2line builds         : no [4]
    - WinDbg builds            : yes [2]
    - WinDbg builds            : yes [4]
    - WinDbgCached builds      : yes [2]
    - BOOST_COMP_GNUC >= 4.3.0 : yes [2]
    - cxx11_hdr_thread         : yes [2]
    - cxx11_hdr_regex          : yes [2]

[1] gcc-14
[2] gcc-14/rls/x86_6/bst.l-off/bst.l-off/cxstd-17-gnu/lnk-sttc/nm-on/pythn-3.9/thrdp-wn32/thrd-mlt/vsblt-hdn
[3] gcc-14/rls/x86_6/bst.l-off/bst.l-off/cxstd-17-gnu/lnk-sttc/nm-on/pch-off/pythn-3.9/thrdp-wn32/thrd-mlt/vsblt-hdn
[4] gcc-14/rls/x86_6/bst.l-off/bst.l-off/bld-no/cxstd-17-gnu/lnk-sttc/nm-on/pythn-3.9/thrdp-wn32/thrd-mlt/vsblt-hdn

Component configuration:

    - atomic                   : building
    - charconv                 : building
    - chrono                   : building
    - cobalt                   : not building
    - container                : building
    - context                  : building
    - contract                 : building
    - coroutine                : building
    - date_time                : building
    - exception                : building
    - fiber                    : building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : not building
    - headers                  : not building
    - iostreams                : building
    - json                     : building
    - locale                   : building
    - log                      : building
    - math                     : building
    - mpi                      : not building
    - nowide                   : building
    - process                  : building
    - program_options          : building
    - python                   : not building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - stacktrace               : building
    - system                   : building
    - test                     : building
    - thread                   : building
    - timer                    : building
    - type_erasure             : building
    - url                      : building
    - wave                     : building
    - predef                   : not building

...skipped <pC:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\b\build-release\boost\bin.v2\libs\stacktrace\build\gcc-14\rls\x86_6\cxstd-17-gnu\lnk-sttc\nm-on\thrdp-wn32\thrd-mlt\vsblt-hdn>libboost_stacktrace_from_exception.a for lack of <pC:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\b\build-release\boost\bin.v2\libs\stacktrace\build\gcc-14\rls\x86_6\cxstd-17-gnu\lnk-sttc\nm-on\thrdp-wn32\thrd-mlt\vsblt-hdn>from_exception.o...

...failed updating 0 target...

boost/1.86.0: ERROR:
Package 'ec850d81fd48da3c3eb0f2ed251b465d2e22a8a3' build failed
boost/1.86.0: WARN: Build folder C:\Users\xwc19\.conan2\p\b\boostad5189f70b9ea\b\build-release
ERROR: boost/1.86.0: Error in build() method, line 1167
        self.run(full_command)
        ConanException: Error 1 while executing

How to reproduce it

Apply the above configuration and call conan install with building missing.

I also tried different Boost versions, but this problem always occured.

@memsharded
Copy link
Member

Hi @IrvingDrew

Thanks for your feedback.

Some quick information: recipes and packages in ConanCenter are built and tested with msvc compiler. This means that support for other compilers might vary, and there can be recipes that are not ready and will not compile with other compilers in Windows, and there can be even libraries that will fail to compile with other compilers in Windows, not because of the Conan recipe, but the library build system might have limitations too. So in general for using ConanCenter recipes and packages in Windows, the msvc compiler is recommended.

For reporting issues against the Conan client, it is much better to start with a default minimal project, like the one created with the template conan new cmake_lib. Please also report your Conan version (conan version output).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants