Closed shaqtsui closed 3 months ago
@shaqtsui Thank you for reporting, I'll be investigating.
@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:
Description
can not build with option: without_cobalt=False, below erro raised:
Package and Environment Details
Conan profile
conanfile
Profile host:
Profile build:
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 '