conan-io / conan-center-index

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

[conan.io/center] boost/1.79/1.80: Boost component 'stacktrace_backtrace' is missing libraries #13448

Closed tuduongquyet closed 1 year ago

tuduongquyet commented 1 year ago

Description

[generators] CMakeDeps CMakeToolchain

[options] *:shared=True

- Installing packages
`conan install .. --build=missing`
- Package installation failed

### Package and Environment Details

* Package Name/Version: **boost/1.80**
* Operating System+version: **macOS 12.6**
* Compiler+version: **Clang 14.0**
* Conan version: **conan 1.53.0**
* Python version: **Python 3.10.6**

### Conan profile

[settings]
os=Macos
os_build=Macos
arch=x86_64
arch_build=x86_64
compiler=apple-clang
compiler.version=14
compiler.libcxx=libc++
compiler.cppstd=14
build_type=Release
[options]
[conf]
[build_requires]
[env]

### Steps to reproduce

conan install .. --build=missing

### Logs

<details><summary>Click to expand log</summary>

boost/1.80.0: Applying build-requirement: b2/4.9.2 boost/1.80.0: Building your package in /Users/apollo/.conan/data/boost/1.80.0///build/0f99e12f7bffdc90d47afbcf580e534265758d01 boost/1.80.0: Generator txt created conanbuildinfo.txt boost/1.80.0: Aggregating env generators boost/1.80.0: Calling build() boost/1.80.0: WARN: replace_infile didn't find pattern 'local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ;' in '/Users/apollo/.conan/data/boost/1.80.0//_/source/source_subfolder/tools/build/src/tools/gcc.jam' file. boost/1.80.0: WARN: replace_infile didn't find pattern 'local no-threading = android beos haiku sgi darwin vxworks ;' in '/Users/apollo/.conan/data/boost/1.80.0//_/source/source_subfolder/tools/build/src/tools/gcc.jam' file. boost/1.80.0: WARN: replace_infile didn't find pattern ' @numa' in '/Users/apollo/.conan/data/boost/1.80.0//_/source/sourcesubfolder/libs/fiber/build/Jamfile.v2' file. boost/1.80.0: WARN: Patching user-config.jam boost/1.80.0: WARN: using zlib : 1.2.12 : "/Users/apollo/.conan/data/zlib/1.2.12///package/8a659aeafbc64e1549799b2ee77375f43ddc5111/include" "/Users/apollo/.conan/data/zlib/1.2.12///package/8a659aeafbc64e1549799b2ee77375f43ddc5111/lib" z ; using bzip2 : 1.0.8 : "/Users/apollo/.conan/data/bzip2/1.0.8///package/3f899504bee1056fc088ed4ecf78a8aee9dee353/include" "/Users/apollo/.conan/data/bzip2/1.0.8//_/package/3f899504bee1056fc088ed4ecf78a8aee9dee353/lib" bz2 ; using "clang-darwin" : : /Library/Developer/CommandLineTools/usr/bin/clang++ -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 :

"/Library/Developer/CommandLineTools/usr/bin/ar" "/Library/Developer/CommandLineTools/usr/bin/ranlib" "-I/Users/apollo/.conan/data/libbacktrace/cci.20210118/_/_/package/8a659aeafbc64e1549799b2ee77375f43ddc5111/include" "-L/Users/apollo/.conan/data/libbacktrace/cci.20210118/_/_/package/8a659aeafbc64e1549799b2ee77375f43ddc5111/lib" ; boost/1.80.0: WARN: b2 -q numa=on target-os=darwin architecture=x86 address-model=64 binary-format=mach-o abi=sysv --layout=system --user-config=/Users/apollo/.conan/data/boost/1.80.0/_/_/source/source_subfolder/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=on boost.locale.iconv.lib=libiconv threading=multi visibility=hidden link=shared variant=release --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-darwin cxxflags=-std=c++14 pch=on -sICONV_PATH=/Users/apollo/.conan/data/libiconv/1.17/_/_/package/8a659aeafbc64e1549799b2ee77375f43ddc5111 linkflags="-stdlib=libc++" cxxflags="-fPIC -stdlib=libc++ -DBOOST_STACKTRACE_ADDR2LINE_LOCATION=/usr/bin/addr2line" install --prefix=/Users/apollo/.conan/data/boost/1.80.0/_/_/package/0f99e12f7bffdc90d47afbcf580e534265758d01 -j8 --abbreviate-paths -d0 --debug-configuration --build-dir="/Users/apollo/.conan/data/boost/1.80.0/_/_/build/0f99e12f7bffdc90d47afbcf580e534265758d01" notice: found boost-build.jam at /Users/apollo/.conan/data/boost/1.80.0/_/_/source/source_subfolder/boost-build.jam notice: loading B2 from /Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/kernel/bootstrap.jam notice: Searching '/etc' '/Users/apollo' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/kernel' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/util' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/build' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/tools' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/contrib' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/.' for site-config configuration file 'site-config.jam'. notice: Configuration file 'site-config.jam' not found in '/etc' '/Users/apollo' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/kernel' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/util' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/build' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/tools' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/contrib' '/Users/apollo/.conan/data/b2/4.9.2/_/_/package/46f53f156846659bf39ad6675fa0ee8156e859fe/bin/.b2/.'. notice: Loading explicitly specified user configuration file: /Users/apollo/.conan/data/boost/1.80.0/_/_/source/source_subfolder/tools/build/user-config.jam notice: Searching '/Users/apollo/.conan/data/boost/1.80.0/_/_/source/source_subfolder/tools/build' for user-config configuration file 'user-config.jam'. notice: Loading user-config configuration file 'user-config.jam' from '/Users/apollo/.conan/data/boost/1.80.0/_/_/source/source_subfolder/tools/build'. notice: [zlib] Using pre-installed library notice: [zlib] Condition notice: [bzip2] Using pre-installed library notice: [bzip2] Condition notice: will use '/Library/Developer/CommandLineTools/usr/bin/clang++' '-isysroot' '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' '-arch' 'x86_64' for clang-darwin, condition clang-14 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 '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: "/Users/apollo/.pyenv/versions/3.10.6/include/python3.10" notice: [python-cfg] library path: "/Users/apollo/.pyenv/versions/3.10.6/lib/python3.10/config" "/Users/apollo/.pyenv/versions/3.10.6/lib" 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 notice: [python-cfg] no framework directory found; using library path Performing configuration checks - default address-model : 64-bit [1] - default architecture : x86 [1] - compiler supports SSE2 : yes [2] - compiler supports SSE4.1 : yes [2] - has std::atomic_ref : no [2] - has statx : no [2] - has statx syscall : no [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 : yes [2] - has stat::st_birthtim : no [2] - has stat::st_birthtimensec : no [2] - has stat::st_birthtimespec : yes [2] - has fdopendir(O_NOFOLLOW) : yes [2] - has POSIX *at APIs : no [2] - cxx11_auto_declarations : yes [2] - cxx11_constexpr : yes [2] - cxx11_defaulted_functions : yes [2] - cxx11_final : yes [2] - cxx11_hdr_mutex : yes [2] - cxx11_hdr_tuple : yes [2] - cxx11_lambdas : yes [2] - cxx11_noexcept : yes [2] - cxx11_nullptr : yes [2] - cxx11_rvalue_references : yes [2] - cxx11_template_aliases : yes [2] - cxx11_thread_local : yes [2] - cxx11_variadic_templates : yes [2] - has_icu builds : no [2] - zlib : yes - bzip2 : yes - cxx11_decltype : yes [2] - cxx11_basic_alignas : yes [2] - iconv (libc) : no [2] - iconv (separate) : yes [2] - native atomic int32 supported : yes [2] - native syslog supported : yes [2] - pthread supports robust mutexes : no [2] - lockfree boost::atomic_flag : 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_hdr_type_traits : yes [2] - cxx11_allocator : yes [2] - cxx11_explicit_conversion_operators : yes [2] - long double support : yes [2] - cxx11_static_assert : yes [2] - std::fstream is moveable and swappable : yes [2] - Has Large File Support : yes [2] - Has attribute init_priority : yes [2] - libbacktrace builds : no [2] - libbacktrace builds : no [3] - addr2line builds : yes [2] - WinDbg builds : no [2] - WinDbg builds : no [3] - WinDbgCached builds : no [2] - WinDbgCached builds : no [3] - BOOST_COMP_GNUC >= 4.3.0 : no [2] - BOOST_COMP_GNUC >= 4.3.0 : no [4] - cxx11_hdr_thread : yes [2] - cxx11_hdr_regex : yes [2] [1] clng-14 [2] clng-drwn-14/rls/bst.l-lbcnv/bst.l-on/bst.l-off/nm-on/pythn-3.10/thrdp-pthrd/thrd-mlt/vsblt-hdn [3] clng-drwn-14/rls/bst.l-lbcnv/bst.l-on/bst.l-off/bld-no/nm-on/pythn-3.10/thrdp-pthrd/thrd-mlt/vsblt-hdn [4] clng-drwn-14/rls/bst.l-lbcnv/bst.l-on/bst.l-off/lnk-sttc/nm-on/pythn-3.10/thrdp-pthrd/thrd-mlt/vsblt-hdn 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 - wave : building boost/1.80.0: Package '0f99e12f7bffdc90d47afbcf580e534265758d01' built boost/1.80.0: Build folder /Users/apollo/.conan/data/boost/1.80.0/_/_/build/0f99e12f7bffdc90d47afbcf580e534265758d01 boost/1.80.0: Generated conaninfo.txt boost/1.80.0: Generated conanbuildinfo.txt boost/1.80.0: Generating the package boost/1.80.0: Package folder /Users/apollo/.conan/data/boost/1.80.0/_/_/package/0f99e12f7bffdc90d47afbcf580e534265758d01 boost/1.80.0: Calling package() boost/1.80.0 package(): Packaged 1 '.txt' file: LICENSE_1_0.txt boost/1.80.0 package(): Packaged 14750 '.hpp' files boost/1.80.0 package(): Packaged 148 '.h' files boost/1.80.0 package(): Packaged 17 files boost/1.80.0 package(): Packaged 277 '.ipp' files boost/1.80.0 package(): Packaged 2 '.inc' files: strict_cpp_re.inc, cpp_re.inc boost/1.80.0 package(): Packaged 38 '.dylib' files boost/1.80.0 package(): Packaged 2 '.a' files: libboost_test_exec_monitor.a, libboost_exception.a boost/1.80.0: Package '0f99e12f7bffdc90d47afbcf580e534265758d01' created boost/1.80.0: Created package revision 2823e22a70f56594280c2a7ed7877f4c boost/1.80.0: WARN: Boost component 'stacktrace_backtrace' is missing libraries. Try building boost with '-o boost:without_stacktrace_backtrace'. (Option is not guaranteed to exist) ERROR: boost/1.80.0: Error in package_info() method, line 1681 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: {'boost_stacktrace_backtrace'} ```
denismakogon commented 1 year ago

Having the same issue on macOS 12.6 [M1], here's a log snippet:

boost/1.80.0: Package '00b6ccd4eb3da4809c821dd789f355384a7275a1' built
boost/1.80.0: Build folder /Users/denismakogon/.conan/data/boost/1.80.0/_/_/build/00b6ccd4eb3da4809c821dd789f355384a7275a1
boost/1.80.0: Generated conaninfo.txt
boost/1.80.0: Generated conanbuildinfo.txt
boost/1.80.0: Generating the package
boost/1.80.0: Package folder /Users/denismakogon/.conan/data/boost/1.80.0/_/_/package/00b6ccd4eb3da4809c821dd789f355384a7275a1
boost/1.80.0: Calling package()
boost/1.80.0 package(): Packaged 1 '.txt' file: LICENSE_1_0.txt
boost/1.80.0 package(): Packaged 14750 '.hpp' files
boost/1.80.0 package(): Packaged 148 '.h' files
boost/1.80.0 package(): Packaged 17 files
boost/1.80.0 package(): Packaged 277 '.ipp' files
boost/1.80.0 package(): Packaged 2 '.inc' files: strict_cpp_re.inc, cpp_re.inc
boost/1.80.0 package(): Packaged 27 '.dylib' files
boost/1.80.0 package(): Packaged 2 '.a' files: libboost_test_exec_monitor.a, libboost_exception.a
boost/1.80.0: Package '00b6ccd4eb3da4809c821dd789f355384a7275a1' created
boost/1.80.0: Created package revision 1c5ab08eba2d0d4d8416cf4103b6b283
boost/1.80.0: WARN: Boost component 'fiber' is missing libraries. Try building boost with '-o boost:without_fiber'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'fiber_numa' is missing libraries. Try building boost with '-o boost:without_fiber_numa'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'json' is missing libraries. Try building boost with '-o boost:without_json'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_c99' is missing libraries. Try building boost with '-o boost:without_math_c99'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_c99f' is missing libraries. Try building boost with '-o boost:without_math_c99f'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_c99l' is missing libraries. Try building boost with '-o boost:without_math_c99l'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_tr1' is missing libraries. Try building boost with '-o boost:without_math_tr1'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_tr1f' is missing libraries. Try building boost with '-o boost:without_math_tr1f'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_tr1l' is missing libraries. Try building boost with '-o boost:without_math_tr1l'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'nowide' is missing libraries. Try building boost with '-o boost:without_nowide'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'stacktrace_backtrace' is missing libraries. Try building boost with '-o boost:without_stacktrace_backtrace'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'wave' is missing libraries. Try building boost with '-o boost:without_wave'. (Option is not guaranteed to exist)
ERROR: boost/1.80.0: Error in package_info() method, line 1681
        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: {'boost_wave', 'boost_json', 'boost_math_tr1f', 'boost_math_c99f', 'boost_math_tr1', 'boost_fiber_numa', 'boost_math_c99', 'boost_math_c99l', 'boost_fiber', 'boost_nowide', 'boost_math_tr1l', 'boost_stacktrace_backtrace'}

profile:

[settings]
os=Macos
os_build=Macos
arch=armv8
arch_build=armv8
#compiler=apple-clang
compiler=clang
compiler.version=14
compiler.libcxx=libc++
build_type=Release
[options]

[build_requires]

[env]
CC=/usr/bin/clang
CXX=/usr/bin/clang++
vkhristenko commented 1 year ago

I'm having a similar issue on oraclelinux7.9.

Are there any workarounds?

boost/1.80.0: WARN: Boost component 'math_c99' is missing libraries. Try building boost with '-o boost:without_math_c99'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_c99f' is missing libraries. Try building boost with '-o boost:without_math_c99f'. (Option is not guaranteed to exist)
boost/1.80.0: 
WARN: Boost component 'math_c99l' is missing libraries. Try building boost with '-o boost:without_math_c99l'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_tr1' is missing libraries. Try building boost with '-o boost:without_math_tr1'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_tr1f' is missing libraries. Try building boost with '-o boost:without_math_tr1f'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'math_tr1l' is missing libraries. Try building boost with '-o boost:without_math_tr1l'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'nowide' is missing libraries. Try building boost with '-o boost:without_nowide'. (Option is not guaranteed to exist)
boost/1.80.0: WARN: Boost component 'wave' is missing libraries. Try building boost with '-o boost:without_wave'. (Option is not guaranteed to exist)
ERROR: boost/1.80.0: Error in package_info() method, line 1675
    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: {'boost_math_c99l', 'boost_math_tr1f', 'boost_math_tr1', 'boost_math_c99f', 'boost_wave', 'boost_nowide', 'boost_math_c99', 'boost_math_tr1l'}
joshvazquez-amzn commented 1 year ago

I was able to get my consumer to build by disabling with_stacktrace_backtrace and encountering an issue where a macro was generating function names like append_vNone instead of append_v3 because BOOST_FILESYSTEM_VERSION was not set for some reason...

My workaround:

conan create . -o boost:with_stacktrace_backtrace=False -o boost:filesystem_version=3
vkhristenko commented 1 year ago

I was able to get my consumer to build by disabling with_stacktrace_backtrace and encountering an issue where a macro was generating function names like append_vNone instead of append_v3 because BOOST_FILESYSTEM_VERSION was not set for some reason...

My workaround:

conan create . -o boost:with_stacktrace_backtrace=False -o boost:filesystem_version=3

for me the issue was math, which appears required by some other packages that get installed... therefore I can not help but build this guy...