conan-io / conan-center-index

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

[package] <boost>/<1.85.0>: can not build with option: without_cobalt=False #24148

Closed shaqtsui closed 3 months ago

shaqtsui commented 3 months ago

Description

can not build with option: without_cobalt=False, below erro raised:

ERROR: boost/1.85.0: Error in package_info() method, line 1912
        raise ConanException(f"These libraries were expected to be built, but were not built: {non_built}")
        ConanException: These libraries were expected to be built, but were not built: {'libboost_cobalt'}

Package and Environment Details

Conan profile

conanfile

[requires]
boost/1.85.0
[options]
boost/*:without_cobalt=False

Profile host:

[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

Profile build:

[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=193
os=Windows

Steps to reproduce

conan install . -g XmakeGenerator --profile:build=profile_build.txt --profile:host=profile_host.txt --build=missing

Logs

Click to expand log ``` conan install . -g XmakeGenerator --profile:build=profile_build.txt --profile:host=profile_host.txt --build=missing ======== Input profiles ======== Profile host: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows Profile build: [settings] arch=x86_64 build_type=Release compiler=msvc compiler.cppstd=14 compiler.runtime=dynamic compiler.runtime_type=Release compiler.version=193 os=Windows ======== Computing dependency graph ======== Graph root conanfile.txt: D:\Projects\cobalt_ex\build\.conan\boost\1.85.0\conanfile.txt Requirements boost/1.85.0#6dbf1fdfea685c65bf3837d591774ef2 - Cache bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2 - Cache Build requirements b2/4.10.1#a41eecb267963ddf518e3c177eae60e1 - Cache Resolved version ranges zlib/[>=1.2.11 <2]: zlib/1.3.1 ======== Computing necessary packages ======== boost/1.85.0: Checking 3 compatible configurations boost/1.85.0: Compatible configurations not found in cache, checking servers boost/1.85.0: '684ce8d737336c968a121523cf458d9cdc05a898': compiler.cppstd=17 boost/1.85.0: '815ccea5a91f4af851ba8cd062e8ae6fe871f93b': compiler.cppstd=20 boost/1.85.0: '0f7c4762c8220a2fe99f021da1632387b32d623f': compiler.cppstd=23 Requirements boost/1.85.0#6dbf1fdfea685c65bf3837d591774ef2:ab6aa2e6147c000e67b17ae6d522729ae809925e - Build bzip2/1.0.8#457c272f7da34cb9c67456dd217d36c4:67bfcb7b4b78262b9d05495e479dcd92f747316b#cea9c0f0dfa41e83aebd5d39c5a5cbf3 - Cache zlib/1.3.1#f52e03ae3d251dec704634230cd806a2:7bfde258ff4f62f75668d0896dbddedaa7480a0f#20d10b761ec15eed7a1d61c86bc7415a - Cache Build requirements b2/4.10.1#a41eecb267963ddf518e3c177eae60e1:522dcea5982a3f8a5b624c16477e47195da2f84f#1108e0338af5cc63f081c41fdad3550a - Cache ======== Installing packages ======== b2/4.10.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.85.0 (4 of 4) -------- boost/1.85.0: Building from source boost/1.85.0: Package boost/1.85.0:ab6aa2e6147c000e67b17ae6d522729ae809925e boost/1.85.0: Building your package in C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\b boost/1.85.0: Calling generate() boost/1.85.0: Generators folder: C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\b\build-release\conan boost/1.85.0: Generating aggregated env files boost/1.85.0: Generated aggregated env files: ['conanbuild.bat', 'conanrun.bat'] boost/1.85.0: Calling build() boost/1.85.0: WARN: replace_in_file didn't find pattern '/* thread_local */' in 'C:\Users\shaq\.conan2\p\boost8f67ad50ac297\s\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file. boost/1.85.0: WARN: replace_in_file didn't find pattern '/* static __thread */' in 'C:\Users\shaq\.conan2\p\boost8f67ad50ac297\s\src\boost\stacktrace\detail\libbacktrace_impls.hpp' file. boost/1.85.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\shaq\.conan2\p\boost8f67ad50ac297\s\src\tools\build\src\tools\gcc.jam' file. boost/1.85.0: WARN: replace_in_file didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in 'C:\Users\shaq\.conan2\p\boost8f67ad50ac297\s\src\tools\build\src\tools\gcc.jam' file. boost/1.85.0: WARN: replace_in_file didn't find pattern ' @numa' in 'C:\Users\shaq\.conan2\p\boost8f67ad50ac297\s\src\libs\fiber\build\Jamfile.v2' file. boost/1.85.0: WARN: Patching user-config.jam boost/1.85.0: WARN: using zlib : 1.3.1 : "C:/Users/shaq/.conan2/p/zlib6f797a4dd16fb/p/include" "C:/Users/shaq/.conan2/p/zlib6f797a4dd16fb/p/lib" zlib ; using bzip2 : 1.0.8 : "C:/Users/shaq/.conan2/p/bzip2e06444d88ab4f/p/include" "C:/Users/shaq/.conan2/p/bzip2e06444d88ab4f/p/lib" bz2 ; using "msvc" : 14.3 : : ; boost/1.85.0: WARN: b2 -q target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\Users\shaq\.conan2\p\boost8f67ad50ac297\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 runtime-link=shared runtime-debugging=off threading=multi visibility=hidden link=static variant=release --with-atomic --with-charconv --with-chrono --with-cobalt --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --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-thread --with-timer --with-type_erasure --with-url --with-wave toolset=msvc cxxstd=14 pch=on linkflags="" cxxflags="-fPIC" install --prefix=C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\p -j32 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\b\build-release" boost/1.85.0: RUN: b2 -q target-os=windows architecture=x86 address-model=64 binary-format=pe abi=ms --layout=system --user-config=C:\Users\shaq\.conan2\p\boost8f67ad50ac297\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 runtime-link=shared runtime-debugging=off threading=multi visibility=hidden link=static variant=release --with-atomic --with-charconv --with-chrono --with-cobalt --with-container --with-context --with-contract --with-coroutine --with-date_time --with-exception --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-thread --with-timer --with-type_erasure --with-url --with-wave toolset=msvc cxxstd=14 pch=on linkflags="" cxxflags="-fPIC" install --prefix=C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\p -j32 --abbreviate-paths -d0 --debug-configuration --build-dir="C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\b\build-release" conanvcvars.bat: Activating environment Visual Studio 17 - amd64 - winsdk_version=None - vcvars_ver=14.3 [vcvarsall.bat] Environment initialized for: 'x64' notice: found boost-build.jam at C:/Users/shaq/.conan2/p/boost8f67ad50ac297/s/src/boost-build.jam notice: loading B2 from C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/kernel/bootstrap.jam notice: Searching 'C:\Users\shaq' 'C:\Users\shaq' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/kernel' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/util' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/build' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/tools' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/contrib' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/.' for site-config configuration file 'site-config.jam'. notice: Configuration file 'site-config.jam' not found in 'C:\Users\shaq' 'C:\Users\shaq' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/kernel' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/util' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/build' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/tools' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/contrib' 'C:/Users/shaq/.conan2/p/b282792f1d1bde7/p/bin/.b2/.'. notice: Loading explicitly specified user configuration file: C:\Users\shaq\.conan2\p\boost8f67ad50ac297\s\src\tools\build\user-config.jam notice: Searching 'C:\Users\shaq\.conan2\p\boost8f67ad50ac297\s\src\tools\build' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from 'C:/Users/shaq/.conan2/p/boost8f67ad50ac297/s/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.3 detected, command: 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe' notice: will use 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\Hostx64\x64\cl.exe' for msvc, condition msvc-14.3 notice: [generate-setup-cmd] 14.38.33130 is 14.3 notice: [generate-setup-cmd] 14.38.33130 is 14.3 notice: [generate-setup-cmd] 14.38.33130 is 14.3 notice: [generate-setup-cmd] 14.38.33130 is 14.3 notice: [generate-setup-cmd] 14.38.33130 is 14.3 notice: [msvc-cfg] condition: 'msvc-14.3/x86/32', setup: 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat' notice: [msvc-cfg] condition: 'msvc-14.3//32', setup: 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars32.bat' notice: [msvc-cfg] condition: 'msvc-14.3/x86/64', setup: 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat' notice: [msvc-cfg] condition: 'msvc-14.3//64', setup: 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat' notice: [msvc-cfg] condition: 'msvc-14.3/x86/', setup: 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat' notice: [msvc-cfg] condition: 'msvc-14.3//', setup: 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat' notice: [msvc-cfg] condition: 'msvc-14.3/ia64/64', setup: 'C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat' notice: [msvc-cfg] condition: 'msvc-14.3/ia64/', setup: 'C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat' notice: [msvc-cfg] condition: 'msvc-14.3/arm/32', setup: 'C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat' notice: [msvc-cfg] condition: 'msvc-14.3/arm/64', setup: 'C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat' 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:\Users\shaq\AppData\Local\Programs\Python\Python312\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:\Users\shaq\AppData\Local\Programs\Python\Python312\Include" notice: [python-cfg] library path: "C:\Users\shaq\AppData\Local\Programs\Python\Python312\libs" notice: [python-cfg] DLL search path: "C:\Users\shaq\AppData\Local\Programs\Python\Python312" 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 disabled. Reason: notice: [python-cfg] python -c "import sys; sys.stderr = sys.stdout; import numpy; print(numpy.get_include())" aborted with notice: [python-cfg] Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'numpy' 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 : no [2] - cxx11_hdr_ratio : yes [2] - cxx11_template_aliases : yes [2] - cxx11_char16_t : yes [2] - cxx11_char32_t : yes [2] - cxx20_hdr_concepts : no [2] - cxx20_hdr_concepts : no [3] - has std::atomic_ref : no [2] - has statx : no [2] - has statx syscall : no [2] - has BCrypt API : yes [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 dirent::d_type : no [2] - has POSIX *at APIs : no [2] - has fallocate : no [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_icu builds : no [2] - zlib : yes [4] - bzip2 : yes [4] - cxx11_constexpr : yes [2] - cxx11_hdr_tuple : yes [2] - cxx11_basic_alignas : yes [2] - cxx11_auto_declarations : 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 : yes [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] - cxx11_lambdas : yes [2] - gcc visibility : no [2] - sfinae_expr : yes [2] - cxx11_unified_initialization_syntax : yes [2] - cxx11_hdr_initializer_list : yes [2] - cxx11_hdr_chrono : yes [2] - cxx11_thread_local : 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] - long double support : yes [2] - Has Large File Support : yes [2] - Has attribute init_priority : no [2] - std_wstreambuf builds : yes [2] - std_wstreambuf : yes [2] - libbacktrace builds : no [2] - cxx11_rvalue_references : yes [3] - libbacktrace builds : no [3] - addr2line builds : no [2] - addr2line builds : no [3] - WinDbg builds : yes [2] - WinDbg builds : yes [3] - WinDbgCached builds : yes [2] - cxx11_hdr_thread : yes [2] - cxx11_hdr_mutex : yes [2] - cxx11_hdr_regex : yes [2] [1] msvc-14.3 [2] msvc-14.3/rls/bst.l-off/bst.l-off/cxstd-14-iso/lnk-sttc/pythn-3.12/thrdp-wn32/thrd-mlt/vsblt-hdn [3] msvc-14.3/rls/bst.l-off/bst.l-off/bld-no/cxstd-14-iso/lnk-sttc/pythn-3.12/thrdp-wn32/thrd-mlt/vsblt-hdn [4] lnk-sttc Component configuration: - atomic : building - charconv : building - chrono : building - cobalt : building - container : building - context : building - contract : building - coroutine : building - date_time : building - exception : building - fiber : not 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 : not building - thread : building - timer : building - type_erasure : building - url : building - wave : building boost/1.85.0: Package 'ab6aa2e6147c000e67b17ae6d522729ae809925e' built boost/1.85.0: Build folder C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\b\build-release boost/1.85.0: Generating the package boost/1.85.0: Packaging in folder C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\p boost/1.85.0: package(): Packaged 15275 '.hpp' files boost/1.85.0: package(): Packaged 323 '.ipp' files boost/1.85.0: package(): Packaged 17 files boost/1.85.0: package(): Packaged 2 '.inc' files: cpp_re.inc, strict_cpp_re.inc boost/1.85.0: package(): Packaged 37 '.lib' files boost/1.85.0: package(): Packaged 1 '.txt' file: LICENSE_1_0.txt boost/1.85.0: Created package revision 8dcb35dc19757db19f2fb34ba5a33563 boost/1.85.0: Package 'ab6aa2e6147c000e67b17ae6d522729ae809925e' created boost/1.85.0: Full package reference: boost/1.85.0#6dbf1fdfea685c65bf3837d591774ef2:ab6aa2e6147c000e67b17ae6d522729ae809925e#8dcb35dc19757db19f2fb34ba5a33563 boost/1.85.0: Package folder C:\Users\shaq\.conan2\p\b\boost00b6f919024a1\p boost/1.85.0: Disabled magic autolinking (smart and magic decisions) boost/1.85.0: WARN: Boost component 'cobalt' is missing libraries. Try building boost with '-o boost:without_cobalt'. (Option is not guaranteed to exist) ERROR: boost/1.85.0: Error in package_info() method, line 1912 raise ConanException(f"These libraries were expected to be built, but were not built: {non_built}") ConanException: These libraries were expected to be built, but were not built: {'libboost_cobalt'} error: @programdir\core\sandbox\modules\os.lua:378: execv(conan install . -g XmakeGenerator --profile:build=profile_build.txt --profile:host=profile_host.txt --build=missing) failed(1) ```
uilianries commented 3 months ago

@shaqtsui Thank you for reporting, I'll be investigating.

uilianries commented 3 months ago

@shaqtsui The Boost Cobalt was introduced in Boost 1.84.0 and requires C++20 in order to be built. Your profile uses C++14, that's why is not generating it. At same, the recipe should break when running validate(), not in the package_info() (bug).

If you really want to use Boost Cobalt, you should use C++20:

conan install ... -s compiler.cppstd=20

More info about Boost cobalt: