conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
946 stars 1.72k forks source link

[package] boost/1.81.0: Fails to build with Clang 15 on Windows #15149

Open sogartar opened 1 year ago

sogartar commented 1 year ago

Description

When building Boost it does not give a good error in the output, just that b2 failed to update some targets.

...failed updating 6 targets...
boost/1.81.0:
boost/1.81.0: ERROR: Package '62c93f29b9f76c328a46007549cc459447eeb77b' build failed
boost/1.81.0: WARN: Build folder C:\.conan\c61a72\1\build-debug
ERROR: boost/1.81.0: Error in build() method, line 874
        self.run(full_command)
        ConanException: Error 1 while executing b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\5d11a4\1\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=debug --with-atomic --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-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=clang-win cxxflags=-std=c++20 pch=on linkflags="-stdlib=None" cxxflags="-fPIC -stdlib=None" install --prefix=C:\.conan\6876cace\1 -j4 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\c61a72\1\build-debug"

Package and Environment Details

Conan profile

[settings] arch=x86_64 arch_build=x86_64 build_type=Debug compiler=clang compiler.version=15 compiler.cppstd=20 os=Windows os_build=Windows [options] [build_requires] [conf] tools.cmake.cmaketoolchain:generator=Ninja [env] CONAN_CMAKE_GENERATOR=Ninja CC=clang CXX=clang++ CMAKE_GENERATOR=Ninja

Steps to reproduce

conan workspace install ../conan-workspace.yml --build=missing --profile ../conan-clang-debug-profile

I have a package that depends on Boost, which triggers Boost's build.

Logs

Click to expand log conan workspace install ../conan-workspace.yml --build=missing --profile ../conan-clang-debug-profile Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Debug compiler=clang compiler.cppstd=20 compiler.version=15 os=Windows os_build=Windows [options] [build_requires] [env] CC=clang CMAKE_GENERATOR=Ninja CONAN_CMAKE_GENERATOR=Ninja CXX=clang++ [conf] tools.cmake.cmaketoolchain:generator=Ninja boost/1.81.0: WARN: Package binary is corrupted, removing: 62c93f29b9f76c328a46007549cc459447eeb77b Requirements boost/1.81.0 from 'conancenter' - Cache bzip2/1.0.8 from 'conancenter' - Cache eigen/3.4.0 from 'conancenter' - Cache nlohmann_json/3.11.2 from 'conancenter' - Cache polymorphic_value/1.3.0 from 'conancenter' - Cache zlib/1.2.13 from 'conancenter' - Cache modscheme_lib/0.1 from user folder - Editable modscheme_server/0.1 from user folder - Editable Packages boost/1.81.0:62c93f29b9f76c328a46007549cc459447eeb77b - Build bzip2/1.0.8:664a290ff8a4232d40ea8d66ae4e20ff2cb6ef7b - Cache eigen/3.4.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache nlohmann_json/3.11.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache polymorphic_value/1.3.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache zlib/1.2.13:01822c8126f3805e61534fa72215516497c36eb2 - Cache modscheme_lib/0.1:27e502d47a8725d19299a32b559b4f6dd00ec394 - Editable modscheme_server/0.1:1a022cf2f8fb5768319a46ddef85fc367f8c90bd - Editable Build requirements b2/4.9.2 from 'conancenter' - Cache Build requirements packages b2/4.9.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache Installing (downloading, building) binaries... b2/4.9.2: Already installed! bzip2/1.0.8: Already installed! eigen/3.4.0: Already installed! nlohmann_json/3.11.2: Already installed! polymorphic_value/1.3.0: Already installed! zlib/1.2.13: Already installed! boost/1.81.0: Applying build-requirement: b2/4.9.2 boost/1.81.0: WARN: Build folder is dirty, removing it: C:\.conan\c61a72\1 boost/1.81.0: Building your package in C:\.conan\c61a72\1 boost/1.81.0: Generator txt created conanbuildinfo.txt boost/1.81.0: Calling generate() boost/1.81.0: Aggregating env generators boost/1.81.0: Calling build() boost/1.81.0: WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\.conan\5d11a4\1\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file. boost/1.81.0: WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\.conan\5d11a4\1\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file. boost/1.81.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:\.conan\5d11a4\1\src\tools\build\src\tools\gcc.jam' file. boost/1.81.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\.conan\5d11a4\1\src\tools\build\src\tools\gcc.jam' file. boost/1.81.0: WARN: replace_in_file didn't find pattern ' @numa' in 'C:\.conan\5d11a4\1\src\libs\fiber\build\Jamfile.v2' file. boost/1.81.0: WARN: Patching user-config.jam boost/1.81.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior boost/1.81.0: WARN: using zlib : 1.2.13 : "C:/Users/sogartary/.conan/data/zlib/1.2.13/_/_/package/01822c8126f3805e61534fa72215516497c36eb2/include" "C:/Users/sogartary/.conan/data/zlib/1.2.13/_/_/package/01822c8126f3805e61534fa72215516497c36eb2/lib" zlib ; using bzip2 : 1.0.8 : "C:/Users/sogartary/.conan/data/bzip2/1.0.8/_/_/package/664a290ff8a4232d40ea8d66ae4e20ff2cb6ef7b/include" "C:/Users/sogartary/.conan/data/bzip2/1.0.8/_/_/package/664a290ff8a4232d40ea8d66ae4e20ff2cb6ef7b/lib" bz2 ; using "clang-win" : : C:/LLVM/bin/clang++.EXE : ; boost/1.81.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior boost/1.81.0: WARN: b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\5d11a4\1\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=debug --with-atomic --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-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=clang-win cxxflags=-std=c++20 pch=on linkflags="-stdlib=None" cxxflags="-fPIC -stdlib=None" install --prefix=C:\.conan\6876cace\1 -j4 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\c61a72\1\build-debug" notice: found boost-build.jam at C:/.conan/5d11a4/1/src/boost-build.jam notice: loading B2 from C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/kernel/bootstrap.jam notice: Searching 'C:\Users\sogartary' 'C:\Users\sogartary' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/kernel' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/util' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/build' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/tools' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/contrib' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/.' for site-config configuration file 'site-config.jam'. notice: Configuration file 'site-config.jam' not found in 'C:\Users\sogartary' 'C:\Users\sogartary' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/kernel' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/util' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/build' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/tools' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/contrib' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/.'. notice: Loading explicitly specified user configuration file: C:\.conan\5d11a4\1\src\tools\build\user-config.jam notice: Searching 'C:\.conan\5d11a4\1\src\tools\build' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from 'C:/.conan/5d11a4/1/src/tools/build'. notice: [zlib] Using pre-installed library notice: [zlib] Condition notice: [bzip2] Using pre-installed library notice: [bzip2] Condition notice: [msvc-cfg] msvc-14.2 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\Hostx64\x64\cl.exe' notice: [clang-win] using compiler '"C:/LLVM/bin/clang++.EXE"', version '15.0.6', target 'x86_64', default address-model=64 notice: will use 'C:/LLVM/bin/clang++.EXE' for clang-win, condition clang-win-15.0.6 notice: [clang-win] x86-32: notice: [clang-win] x86-32: using assembler 'ml.exe' notice: [clang-win] x86-32: using archiver 'lib.exe' notice: [clang-win] x86-32: using manifest-tool 'mt.exe' notice: [clang-win] x86-32: using resource-compiler 'rc.exe' notice: [clang-win] x86-32: using mc-compiler 'mc.exe' notice: [clang-win] x86-32: using idl-compiler 'midl.exe' notice: [clang-win] arm-32: notice: [clang-win] arm-32: using assembler 'armasm.exe' notice: [clang-win] arm-32: using archiver 'lib.exe' notice: [clang-win] arm-32: using manifest-tool 'mt.exe' notice: [clang-win] arm-32: using resource-compiler 'rc.exe' notice: [clang-win] arm-32: using mc-compiler 'mc.exe' notice: [clang-win] arm-32: using idl-compiler 'midl.exe' notice: [clang-win] x86-64: notice: [clang-win] x86-64: using assembler 'ml64.exe' notice: [clang-win] x86-64: using archiver 'lib.exe' notice: [clang-win] x86-64: using manifest-tool 'mt.exe' notice: [clang-win] x86-64: using resource-compiler 'rc.exe' notice: [clang-win] x86-64: using mc-compiler 'mc.exe' notice: [clang-win] x86-64: using idl-compiler 'midl.exe' notice: [clang-win] arm-64: notice: [clang-win] arm-64: using assembler 'armasm64.exe' notice: [clang-win] arm-64: using archiver 'lib.exe' notice: [clang-win] arm-64: using manifest-tool 'mt.exe' notice: [clang-win] arm-64: using resource-compiler 'rc.exe' notice: [clang-win] arm-64: using mc-compiler 'mc.exe' notice: [clang-win] arm-64: using idl-compiler 'midl.exe' 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:\Program Files\Python38\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:\Program Files\Python38\Include" notice: [python-cfg] library path: "C:\Program Files\Python38\libs" notice: [python-cfg] DLL search path: "C:\Program Files\Python38" 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 : none [1] - default architecture : none [1] - compiler supports SSE2 : no [2] - compiler supports SSE4.1 : no [2] - has synchronization.lib : no [2] - has std::atomic_ref : no [2] - has statx : no [2] - has statx syscall : no [2] - has BCrypt API : no [2] - is Windows CE : no [2] - has init_priority attribute : no [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 POSIX *at APIs : no [2] - cxx11_auto_declarations : no [2] - cxx11_constexpr : no [2] - cxx11_defaulted_functions : no [2] - cxx11_final : no [2] - cxx11_hdr_mutex : no [2] - cxx11_hdr_tuple : no [2] - cxx11_lambdas : no [2] - cxx11_noexcept : no [2] - cxx11_nullptr : no [2] - cxx11_rvalue_references : no [2] - cxx11_template_aliases : no [2] - cxx11_thread_local : no [2] - cxx11_variadic_templates : no [2] - cxx11_auto_declarations : no [3] - cxx11_constexpr : no [3] - cxx11_defaulted_functions : no [3] - cxx11_final : no [3] - cxx11_hdr_mutex : no [3] - cxx11_hdr_tuple : no [3] - cxx11_lambdas : no [3] - cxx11_noexcept : no [3] - cxx11_nullptr : no [3] - cxx11_rvalue_references : no [3] - cxx11_template_aliases : no [3] - cxx11_thread_local : no [3] - cxx11_variadic_templates : no [3] - has_icu builds : no [2] - zlib : no [4] - bzip2 : no [4] warning: Boost.Json was explicitly requested, but will not be built, because it requires C++11. note: To enable C++11 support, use the 'cxxstd=11' command line argument. - cxx11_decltype : no [2] - cxx11_basic_alignas : no [2] - cxx11_decltype : no [3] - cxx11_basic_alignas : no [3] - cxx11_defaulted_moves : no [2] - cxx11_hdr_functional : no [2] - cxx11_hdr_type_traits : no [2] - cxx11_override : no [2] - cxx11_range_based_for : no [2] - cxx11_scoped_enums : no [2] - cxx11_smart_ptr : no [2] - cxx11_static_assert : no [2] - cxx11_defaulted_moves : no [3] - cxx11_hdr_functional : no [3] - cxx11_hdr_type_traits : no [3] - cxx11_override : no [3] - cxx11_range_based_for : no [3] - cxx11_scoped_enums : no [3] - cxx11_smart_ptr : no [3] - cxx11_static_assert : no [3] - native atomic int32 supported : no [2] - has message compiler : no [2] - native syslog supported : no [2] - pthread supports robust mutexes : no [2] - compiler supports SSSE3 : no [2] - compiler supports AVX2 : no [2] - gcc visibility : no [2] - sfinae_expr : no [2] - cxx11_unified_initialization_syntax : no [2] - cxx11_hdr_initializer_list : no [2] - cxx11_hdr_chrono : no [2] - cxx11_numeric_limits : no [2] - cxx11_hdr_array : no [2] - cxx11_hdr_atomic : no [2] - cxx11_allocator : no [2] - cxx11_explicit_conversion_operators : no [2] - gcc visibility : no [3] - sfinae_expr : no [3] - cxx11_unified_initialization_syntax : no [3] - cxx11_hdr_initializer_list : no [3] - cxx11_hdr_chrono : no [3] - cxx11_numeric_limits : no [3] - cxx11_hdr_array : no [3] - cxx11_hdr_atomic : no [3] - cxx11_allocator : no [3] - cxx11_explicit_conversion_operators : no [3] - std::fstream is moveable and swappable : no [2] - Has Large File Support : no [2] - Has attribute init_priority : no [2] - std::fstream is moveable and swappable : no [3] - Has Large File Support : no [3] - Has attribute init_priority : no [3] - libbacktrace builds : no [2] - libbacktrace builds : no [3] - addr2line builds : no [2] - addr2line builds : no [3] - WinDbg builds : no [2] - WinDbg builds : no [3] - WinDbgCached builds : no [2] - WinDbgCached builds : no [3] - BOOST_COMP_GNUC >= 4.3.0 : no [2] - cxx11_hdr_thread : no [2] - cxx11_hdr_regex : no [2] - cxx11_hdr_thread : no [3] - cxx11_hdr_regex : no [3] [1] clng-15.0. [2] clng-win-15.0./dbg/adrs-mdl-64/archt-x86/bst.l-off/bst.l-off/lnk-sttc/nm-on/pythn-3.8/thrdp-wn32/thrd-mlt/vsblt-hdn [3] clng-win-15.0./dbg/adrs-mdl-64/archt-x86/bst.l-off/bst.l-off/bld-no/lnk-sttc/nm-on/pythn-3.8/thrdp-wn32/thrd-mlt/vsblt-hdn [4] lnk-sttc Component configuration: - atomic : building - chrono : 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 - 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 : not building - wave : building ...failed updating 6 targets... boost/1.81.0: boost/1.81.0: ERROR: Package '62c93f29b9f76c328a46007549cc459447eeb77b' build failed boost/1.81.0: WARN: Build folder C:\.conan\c61a72\1\build-debug ERROR: boost/1.81.0: Error in build() method, line 874 self.run(full_command) ConanException: Error 1 while executing b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\5d11a4\1\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=debug --with-atomic --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-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=clang-win cxxflags=-std=c++20 pch=on linkflags="-stdlib=None" cxxflags="-fPIC -stdlib=None" install --prefix=C:\.conan\6876cace\1 -j4 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\c61a72\1\build-debug"
SpaceIm commented 1 year ago

boost recipe has been migrated to conan v2 build helpers which don't listen legacy [env] vars: https://github.com/conan-io/conan-center-index/issues/14781

sogartar commented 1 year ago

I changed it to use [buildenv] but I still get a similar error.

Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.cppstd=20
compiler.version=15
os=Windows
os_build=Windows
[options]
[build_requires]
[env]
[conf]
tools.cmake.cmaketoolchain:generator=Ninja
[buildenv]
CC=clang.exe
CXX=clang++.exe
CMAKE_GENERATOR=Ninja

boost/1.81.0: WARN: Package binary is corrupted, removing: 62c93f29b9f76c328a46007549cc459447eeb77b
Requirements
    boost/1.81.0 from 'conancenter' - Cache
    bzip2/1.0.8 from 'conancenter' - Cache
    eigen/3.4.0 from 'conancenter' - Cache
    nlohmann_json/3.11.2 from 'conancenter' - Cache
    polymorphic_value/1.3.0 from 'conancenter' - Cache
    zlib/1.2.13 from 'conancenter' - Cache
    modscheme_lib/0.1 from user folder - Editable
    modscheme_server/0.1 from user folder - Editable
Packages
    boost/1.81.0:62c93f29b9f76c328a46007549cc459447eeb77b - Build
    bzip2/1.0.8:664a290ff8a4232d40ea8d66ae4e20ff2cb6ef7b - Cache
    eigen/3.4.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    nlohmann_json/3.11.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    polymorphic_value/1.3.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    zlib/1.2.13:01822c8126f3805e61534fa72215516497c36eb2 - Cache
    modscheme_lib/0.1:27e502d47a8725d19299a32b559b4f6dd00ec394 - Editable
    modscheme_server/0.1:1a022cf2f8fb5768319a46ddef85fc367f8c90bd - Editable
Build requirements
    b2/4.9.2 from 'conancenter' - Cache
Build requirements packages
    b2/4.9.2:ca33edce272a279b24f87dc0d4cf5bbdcffbc187 - Cache

Installing (downloading, building) binaries...
b2/4.9.2: Already installed!
bzip2/1.0.8: Already installed!
eigen/3.4.0: Already installed!
nlohmann_json/3.11.2: Already installed!
polymorphic_value/1.3.0: Already installed!
zlib/1.2.13: Already installed!
boost/1.81.0: Applying build-requirement: b2/4.9.2
boost/1.81.0: WARN: Build folder is dirty, removing it: C:\.conan\c61a72\1
boost/1.81.0: Building your package in C:\.conan\c61a72\1
boost/1.81.0: Generator txt created conanbuildinfo.txt
boost/1.81.0: Calling generate()
boost/1.81.0: Aggregating env generators
boost/1.81.0: Calling build()
boost/1.81.0: WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\.conan\5d11a4\1\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file.
boost/1.81.0: WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\.conan\5d11a4\1\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file.
boost/1.81.0: WARN: replace_in_file didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in 'C:\.conan\5d11a4\1\src\tools\build\src\tools\gcc.jam' file.
boost/1.81.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\.conan\5d11a4\1\src\tools\build\src\tools\gcc.jam' file.
boost/1.81.0: WARN: replace_in_file didn't find pattern '    <conditional>@numa' in 'C:\.conan\5d11a4\1\src\libs\fiber\build\Jamfile.v2' file.
boost/1.81.0: WARN: Patching user-config.jam
boost/1.81.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
boost/1.81.0: WARN:
using zlib : 1.2.13 : <include>"C:/Users/sogartary/.conan/data/zlib/1.2.13/_/_/package/01822c8126f3805e61534fa72215516497c36eb2/include" <search>"C:/Users/sogartary/.conan/data/zlib/1.2.13/_/_/package/01822c8126f3805e61534fa72215516497c36eb2/lib" <name>zlib ;
using bzip2 : 1.0.8 : <include>"C:/Users/sogartary/.conan/data/bzip2/1.0.8/_/_/package/664a290ff8a4232d40ea8d66ae4e20ff2cb6ef7b/include" <search>"C:/Users/sogartary/.conan/data/bzip2/1.0.8/_/_/package/664a290ff8a4232d40ea8d66ae4e20ff2cb6ef7b/lib" <name>bz2 ;
using "clang-win" :  :  clang++.exe :
 ;
boost/1.81.0: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
boost/1.81.0: WARN: b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\5d11a4\1\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=debug --with-atomic --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-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=clang-win cxxflags=-std=c++20 pch=on linkflags="-stdlib=None" cxxflags="-fPIC -stdlib=None" install --prefix=C:\.conan\6876cace\1 -j4 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\c61a72\1\build-debug"
notice: found boost-build.jam at C:/.conan/5d11a4/1/src/boost-build.jam
notice: loading B2 from C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/kernel/bootstrap.jam
notice: Searching 'C:\Users\sogartary' 'C:\Users\sogartary' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/kernel' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/util' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/build' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/tools' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/contrib' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in 'C:\Users\sogartary' 'C:\Users\sogartary' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/kernel' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/util' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/build' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/tools' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/contrib' 'C:/Users/sogartary/.conan/data/b2/4.9.2/_/_/package/ca33edce272a279b24f87dc0d4cf5bbdcffbc187/bin/.b2/.'.
notice: Loading explicitly specified user configuration file:
    C:\.conan\5d11a4\1\src\tools\build\user-config.jam
notice: Searching 'C:\.conan\5d11a4\1\src\tools\build' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from 'C:/.conan/5d11a4/1/src/tools/build'.
notice: [zlib] Using pre-installed library
notice: [zlib] Condition
notice: [bzip2] Using pre-installed library
notice: [bzip2] Condition
notice: [msvc-cfg] msvc-14.2 detected, command: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\Hostx64\x64\cl.exe'
notice: [clang-win] using compiler '"clang++.exe"', version '15.0.6', target 'x86_64', default address-model=64
notice: will use 'clang++.exe' for clang-win, condition <toolset>clang-win-15.0.6
notice: [clang-win] x86-32:
notice: [clang-win] x86-32: using assembler 'ml.exe'
notice: [clang-win] x86-32: using archiver 'lib.exe'
notice: [clang-win] x86-32: using manifest-tool 'mt.exe'
notice: [clang-win] x86-32: using resource-compiler 'rc.exe'
notice: [clang-win] x86-32: using mc-compiler 'mc.exe'
notice: [clang-win] x86-32: using idl-compiler 'midl.exe'
notice: [clang-win] arm-32:
notice: [clang-win] arm-32: using assembler 'armasm.exe'
notice: [clang-win] arm-32: using archiver 'lib.exe'
notice: [clang-win] arm-32: using manifest-tool 'mt.exe'
notice: [clang-win] arm-32: using resource-compiler 'rc.exe'
notice: [clang-win] arm-32: using mc-compiler 'mc.exe'
notice: [clang-win] arm-32: using idl-compiler 'midl.exe'
notice: [clang-win] x86-64:
notice: [clang-win] x86-64: using assembler 'ml64.exe'
notice: [clang-win] x86-64: using archiver 'lib.exe'
notice: [clang-win] x86-64: using manifest-tool 'mt.exe'
notice: [clang-win] x86-64: using resource-compiler 'rc.exe'
notice: [clang-win] x86-64: using mc-compiler 'mc.exe'
notice: [clang-win] x86-64: using idl-compiler 'midl.exe'
notice: [clang-win] arm-64:
notice: [clang-win] arm-64: using assembler 'armasm64.exe'
notice: [clang-win] arm-64: using archiver 'lib.exe'
notice: [clang-win] arm-64: using manifest-tool 'mt.exe'
notice: [clang-win] arm-64: using resource-compiler 'rc.exe'
notice: [clang-win] arm-64: using mc-compiler 'mc.exe'
notice: [clang-win] arm-64: using idl-compiler 'midl.exe'
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:\Program Files\Python38\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:\Program Files\Python38\Include"
notice: [python-cfg]   library path: "C:\Program Files\Python38\libs"
notice: [python-cfg]   DLL search path: "C:\Program Files\Python38"
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    : none [1]
    - default architecture     : none [1]
    - compiler supports SSE2   : no [2]
    - compiler supports SSE4.1 : no [2]
    - has synchronization.lib  : no [2]
    - has std::atomic_ref      : no [2]
    - has statx                : no [2]
    - has statx syscall        : no [2]
    - has BCrypt API           : no [2]
    - is Windows CE            : no [2]
    - has init_priority attribute : no [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 POSIX *at APIs       : no [2]
    - cxx11_auto_declarations  : no [2]
    - cxx11_constexpr          : no [2]
    - cxx11_defaulted_functions : no [2]
    - cxx11_final              : no [2]
    - cxx11_hdr_mutex          : no [2]
    - cxx11_hdr_tuple          : no [2]
    - cxx11_lambdas            : no [2]
    - cxx11_noexcept           : no [2]
    - cxx11_nullptr            : no [2]
    - cxx11_rvalue_references  : no [2]
    - cxx11_template_aliases   : no [2]
    - cxx11_thread_local       : no [2]
    - cxx11_variadic_templates : no [2]
    - cxx11_auto_declarations  : no [3]
    - cxx11_constexpr          : no [3]
    - cxx11_defaulted_functions : no [3]
    - cxx11_final              : no [3]
    - cxx11_hdr_mutex          : no [3]
    - cxx11_hdr_tuple          : no [3]
    - cxx11_lambdas            : no [3]
    - cxx11_noexcept           : no [3]
    - cxx11_nullptr            : no [3]
    - cxx11_rvalue_references  : no [3]
    - cxx11_template_aliases   : no [3]
    - cxx11_thread_local       : no [3]
    - cxx11_variadic_templates : no [3]
    - has_icu builds           : no [2]
    - zlib                     : no [4]
    - bzip2                    : no [4]
warning: Boost.Json was explicitly requested, but will not be built, because it requires C++11.
note: To enable C++11 support, use the 'cxxstd=11' command line argument.
    - cxx11_decltype           : no [2]
    - cxx11_basic_alignas      : no [2]
    - cxx11_decltype           : no [3]
    - cxx11_basic_alignas      : no [3]
    - cxx11_defaulted_moves    : no [2]
    - cxx11_hdr_functional     : no [2]
    - cxx11_hdr_type_traits    : no [2]
    - cxx11_override           : no [2]
    - cxx11_range_based_for    : no [2]
    - cxx11_scoped_enums       : no [2]
    - cxx11_smart_ptr          : no [2]
    - cxx11_static_assert      : no [2]
    - cxx11_defaulted_moves    : no [3]
    - cxx11_hdr_functional     : no [3]
    - cxx11_hdr_type_traits    : no [3]
    - cxx11_override           : no [3]
    - cxx11_range_based_for    : no [3]
    - cxx11_scoped_enums       : no [3]
    - cxx11_smart_ptr          : no [3]
    - cxx11_static_assert      : no [3]
    - native atomic int32 supported : no [2]
    - has message compiler     : no [2]
    - native syslog supported  : no [2]
    - pthread supports robust mutexes : no [2]
    - compiler supports SSSE3  : no [2]
    - compiler supports AVX2   : no [2]
    - gcc visibility           : no [2]
    - sfinae_expr              : no [2]
    - cxx11_unified_initialization_syntax : no [2]
    - cxx11_hdr_initializer_list : no [2]
    - cxx11_hdr_chrono         : no [2]
    - cxx11_numeric_limits     : no [2]
    - cxx11_hdr_array          : no [2]
    - cxx11_hdr_atomic         : no [2]
    - cxx11_allocator          : no [2]
    - cxx11_explicit_conversion_operators : no [2]
    - gcc visibility           : no [3]
    - sfinae_expr              : no [3]
    - cxx11_unified_initialization_syntax : no [3]
    - cxx11_hdr_initializer_list : no [3]
    - cxx11_hdr_chrono         : no [3]
    - cxx11_numeric_limits     : no [3]
    - cxx11_hdr_array          : no [3]
    - cxx11_hdr_atomic         : no [3]
    - cxx11_allocator          : no [3]
    - cxx11_explicit_conversion_operators : no [3]
    - std::fstream is moveable and swappable : no [2]
    - Has Large File Support   : no [2]
    - Has attribute init_priority : no [2]
    - std::fstream is moveable and swappable : no [3]
    - Has Large File Support   : no [3]
    - Has attribute init_priority : no [3]
    - libbacktrace builds      : no [2]
    - libbacktrace builds      : no [3]
    - addr2line builds         : no [2]
    - addr2line builds         : no [3]
    - WinDbg builds            : no [2]
    - WinDbg builds            : no [3]
    - WinDbgCached builds      : no [2]
    - WinDbgCached builds      : no [3]
    - BOOST_COMP_GNUC >= 4.3.0 : no [2]
    - cxx11_hdr_thread         : no [2]
    - cxx11_hdr_regex          : no [2]
    - cxx11_hdr_thread         : no [3]
    - cxx11_hdr_regex          : no [3]

[1] clng-15.0.
[2] clng-win-15.0./dbg/adrs-mdl-64/archt-x86/bst.l-off/bst.l-off/lnk-sttc/nm-on/pythn-3.8/thrdp-wn32/thrd-mlt/vsblt-hdn
[3] clng-win-15.0./dbg/adrs-mdl-64/archt-x86/bst.l-off/bst.l-off/bld-no/lnk-sttc/nm-on/pythn-3.8/thrdp-wn32/thrd-mlt/vsblt-hdn
[4] lnk-sttc

Component configuration:

    - atomic                   : building
    - chrono                   : 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
    - 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                      : not building
    - wave                     : building

...failed updating 6 targets...
boost/1.81.0:
boost/1.81.0: ERROR: Package '62c93f29b9f76c328a46007549cc459447eeb77b' build failed
boost/1.81.0: WARN: Build folder C:\.conan\c61a72\1\build-debug
ERROR: boost/1.81.0: Error in build() method, line 873
        self.run(full_command)
        ConanException: Error 1 while executing b2 -q numa=on target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\.conan\5d11a4\1\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=debug --with-atomic --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-program_options --with-random --with-regex --with-serialization --with-stacktrace --with-system --with-test --with-thread --with-timer --with-type_erasure --with-wave toolset=clang-win cxxflags=-std=c++20 pch=on linkflags="-stdlib=None" cxxflags="-fPIC -stdlib=None" install --prefix=C:\.conan\6876cace\1 -j4 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\.conan\c61a72\1\build-debug"
sogartar commented 1 year ago

It seems that the boost configuration is not detecting all of the C++11 features although there is a cxxflags=-std=c++20 argument when calling b2.

FeignClaims commented 1 year ago

Any updates on this? I tried tools.build:compiler_executables={"c": "C:/msys64/clang64/bin/clang.exe", "cpp": "C:/msys64/clang64/bin/clang++.exe"} but got the same error.

lunacd commented 8 months ago

It seems that the boost configuration is not detecting all of the C++11 features although there is a cxxflags=-std=c++20 argument when calling b2.

Agreed. There are suspiciously large number of nos during configuration.

ChristianHeinigk commented 5 months ago

This is the same problem as in issue #11970 I believe. You can add the flag -o "boost/*:debug_level=1" to your conan install command to see the actual error messages which contain something along the lines of

clang++: error: no such file or directory: '/EHs'
clang++: error: no such file or directory: '/GR'
clang++: error: no such file or directory: '/Z7'
clang++: error: no such file or directory: '/Od'
clang++: error: no such file or directory: '/Ob0'
clang++: error: no such file or directory: '/W3'
clang++: error: no such file or directory: '/MDd'