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

[package] boost/1.76.0: doesn't build on MacOS with with_stacktrace_backtrace=False #7159

Closed
eigenwhat opened this issue Sep 2, 2021 · 4 comments · Fixed by #7146
Closed
Labels
bug Something isn't working

Comments

@eigenwhat
Copy link
Contributor

eigenwhat commented Sep 2, 2021

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: boost/1.76.0
  • Operating System+version: MacOS 11.5.2
  • Compiler+version: apple-clang 12
  • Conan version: conan 1.39.0
  • Python version: Python 3.9.6

Conan profile (output of conan profile show default or conan profile show <profile> if custom profile is in use)

[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=17
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os.version=10.15
os_build=Macos

Steps to reproduce (Include if Applicable)

$ conan install boost/1.76.0@ -o boost:with_stacktrace_backtrace=False -o shared=False --build=boost

Logs (Include/Attach if Applicable)

Click to expand log
❯ conan install boost/1.76.0@ -o boost:with_stacktrace_backtrace=False -o shared=False --build=boost
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=apple-clang
compiler.cppstd=17
compiler.libcxx=libc++
compiler.version=12.0
os=Macos
os.version=10.15
os_build=Macos
[options]
shared=False
boost:with_stacktrace_backtrace=False
[build_requires]
[env]

boost/1.76.0: Not found in local cache, looking in remotes...
boost/1.76.0: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [1.70k]                                          
Downloading conanfile.py completed [72.64k]                                              
Downloading conan_export.tgz completed [1.33k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
boost/1.76.0: Downloaded recipe revision b0a65ab84c8f2d25e23e217ef1d283c0
boost/1.76.0: Forced build from source
Installing package: boost/1.76.0
Requirements
    boost/1.76.0 from 'conan-center' - Downloaded
    bzip2/1.0.8 from 'conan-center' - Cache
    libiconv/1.16 from 'conan-center' - Cache
    zlib/1.2.11 from 'conan-center' - Cache
Packages
    boost/1.76.0:5357fbb795a417b18db16632fd141d1462b2811c - Build
    bzip2/1.0.8:463e359f952fc0edd8a1f4c2af1aaef520ccb7fe - Cache
    libiconv/1.16:79adcfcd39b354467badedc44475609cdb72f951 - Cache
    zlib/1.2.11:79adcfcd39b354467badedc44475609cdb72f951 - Cache
Build requirements
    b2/4.5.0 from 'conan-center' - Cache
Build requirements packages
    b2/4.5.0:cb6b4b8d907faf018956655478baf5104a7b26df - Cache

Installing (downloading, building) binaries...
b2/4.5.0: Already installed!
bzip2/1.0.8: Already installed!
bzip2/1.0.8: Appending PATH environment variable: /Users/martin/.conan/data/bzip2/1.0.8/_/_/package/463e359f952fc0edd8a1f4c2af1aaef520ccb7fe/bin
libiconv/1.16: Already installed!
libiconv/1.16: Appending PATH environment var: /Users/martin/.conan/data/libiconv/1.16/_/_/package/79adcfcd39b354467badedc44475609cdb72f951/bin
zlib/1.2.11: Already installed!
boost/1.76.0: Applying build-requirement: b2/4.5.0
Downloading conan_sources.tgz completed [12.28k]                                         
Decompressing conan_sources.tgz completed [0.00k]                                        
boost/1.76.0: Configuring sources in /Users/martin/.conan/data/boost/1.76.0/_/_/source
Downloading boost_1_76_0.tar.bz2 completed [107493.28k]                                  

boost/1.76.0: Building your package in /Users/martin/.conan/data/boost/1.76.0/_/_/build/5357fbb795a417b18db16632fd141d1462b2811c
boost/1.76.0: Generator txt created conanbuildinfo.txt
boost/1.76.0: Aggregating env generators
boost/1.76.0: Calling build()
WARN: replace_in_file didn't find pattern '/* thread_local */' in '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/boost/stacktrace/detail/libbacktrace_impls.hpp' file.
WARN: replace_in_file didn't find pattern '/* static __thread */' in '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/boost/stacktrace/detail/libbacktrace_impls.hpp' file.
boost/1.76.0: WARN: Patching user-config.jam
boost/1.76.0: WARN: 
using zlib : 1.2.11 : <include>"/Users/martin/.conan/data/zlib/1.2.11/_/_/package/79adcfcd39b354467badedc44475609cdb72f951/include" <search>"/Users/martin/.conan/data/zlib/1.2.11/_/_/package/79adcfcd39b354467badedc44475609cdb72f951/lib" <name>z ;
using bzip2 : 1.0.8 : <include>"/Users/martin/.conan/data/bzip2/1.0.8/_/_/package/463e359f952fc0edd8a1f4c2af1aaef520ccb7fe/include" <search>"/Users/martin/.conan/data/bzip2/1.0.8/_/_/package/463e359f952fc0edd8a1f4c2af1aaef520ccb7fe/lib" <name>bz2 ;
using "clang-darwin" :  :  /Applications/XcodeVersions/Xcode_12.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -isysroot /Applications/XcodeVersions/Xcode_12.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -arch x86_64 : 
<archiver>"/Applications/XcodeVersions/Xcode_12.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar" <ranlib>"/Applications/XcodeVersions/Xcode_12.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib"  ;
boost/1.76.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/martin/.conan/data/boost/1.76.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=static 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++17 pch=on -sICONV_PATH=/Users/martin/.conan/data/libiconv/1.16/_/_/package/79adcfcd39b354467badedc44475609cdb72f951 linkflags="-stdlib=libc++" cxxflags="-fPIC -stdlib=libc++ -mmacosx-version-min=10.15 -DBOOST_STACKTRACE_ADDR2LINE_LOCATION=/usr/bin/addr2line" install --prefix=/Users/martin/.conan/data/boost/1.76.0/_/_/package/5357fbb795a417b18db16632fd141d1462b2811c -j8 --abbreviate-paths -d0 --debug-configuration --build-dir="/Users/martin/.conan/data/boost/1.76.0/_/_/build/5357fbb795a417b18db16632fd141d1462b2811c"
notice: found boost-build.jam at /Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/boost-build.jam
notice: loading B2 from /Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/bootstrap.jam
warning: mismatched versions of B2 engine and core
warning: B2 engine (b2) is 4.5.0
warning: B2 core (at /Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src) is 4.4-git
notice: Searching '/etc' '/Users/martin' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/kernel' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/util' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/build' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/tools' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/contrib' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/.' for site-config configuration file 'site-config.jam'.
notice: Configuration file 'site-config.jam' not found in '/etc' '/Users/martin' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/kernel' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/util' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/build' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/tools' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/contrib' '/Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/src/.'.
notice: Loading explicitly specified user configuration file:
    /Users/martin/.conan/data/boost/1.76.0/_/_/source/source_subfolder/tools/build/user-config.jam
notice: Searching '/Users/martin/.conan/data/boost/1.76.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/martin/.conan/data/boost/1.76.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 '/Applications/XcodeVersions/Xcode_12.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++' '-isysroot' '/Applications/XcodeVersions/Xcode_12.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk' '-arch' 'x86_64' for clang-darwin, condition <toolset>clang-12.0
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: "/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7"
notice: [python-cfg]   library path: "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config" "/System/Library/Frameworks/Python.framework/Versions/2.7/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] framework directory is "/System/Library/Frameworks/Python.framework"
Performing configuration checks

    - default address-model    : 64-bit [1]
    - default architecture     : x86 [1]
    - compiler supports SSE2   : yes [2]
    - compiler supports SSE4.1 : yes [2]
    - C++11 mutex              : yes [2]
    - lockfree boost::atomic_flag : yes [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 statx                : no [2]
    - has statx syscall        : 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 [3]
    - bzip2                    : yes [3]
    - 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]
    - 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]
    - libbacktrace builds      : no [2]
    - libbacktrace builds      : no [4]
    - addr2line builds         : yes [2]
    - WinDbg builds            : no [2]
    - WinDbg builds            : no [4]
    - WinDbgCached builds      : no [2]
    - WinDbgCached builds      : no [4]
    - BOOST_COMP_GNUC >= 4.3.0 : no [2]

[1] clng-12.0
[2] clng-drwn-12.0/rls/bst.l-lbcnv/bst.l-on/bst.l-off/lnk-sttc/nm-on/pythn-2.7/thrdp-pthrd/thrd-mlt/vsblt-hdn
[3] lnk-sttc
[4] clng-drwn-12.0/rls/bst.l-lbcnv/bst.l-on/bst.l-off/bld-no/lnk-sttc/nm-on/pythn-2.7/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.76.0: Package '5357fbb795a417b18db16632fd141d1462b2811c' built
boost/1.76.0: Build folder /Users/martin/.conan/data/boost/1.76.0/_/_/build/5357fbb795a417b18db16632fd141d1462b2811c
boost/1.76.0: Generated conaninfo.txt
boost/1.76.0: Generated conanbuildinfo.txt
boost/1.76.0: Generating the package
boost/1.76.0: Package folder /Users/martin/.conan/data/boost/1.76.0/_/_/package/5357fbb795a417b18db16632fd141d1462b2811c
boost/1.76.0: Calling package()
boost/1.76.0 package(): Packaged 1 '.txt' file: LICENSE_1_0.txt
boost/1.76.0 package(): Packaged 14349 '.hpp' files
boost/1.76.0 package(): Packaged 147 '.h' files
boost/1.76.0 package(): Packaged 17 files
boost/1.76.0 package(): Packaged 253 '.ipp' files
boost/1.76.0 package(): Packaged 2 '.inc' files: strict_cpp_re.inc, cpp_re.inc
boost/1.76.0 package(): Packaged 40 '.a' files
boost/1.76.0: Package '5357fbb795a417b18db16632fd141d1462b2811c' created
boost/1.76.0: Created package revision 16c4b88fd1d2b60ebea8d8b78a6af9f7
boost/1.76.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.76.0: Error in package_info() method, line 1522
    raise ConanException("These libraries were expected to be built, but were not built: {}".format(non_built))
    ConanException: These libraries were expected to be built, but were not built: {'boost_stacktrace_backtrace'}
@eigenwhat eigenwhat added the bug Something isn't working label Sep 2, 2021
@dmn-star
Copy link
Contributor

dmn-star commented Sep 3, 2021

The option you are looking for is now called without_stacktrace. Please try
conan install boost/1.76.0@ -o boost: without_stacktrace=True -o shared=False --build=boost --update

@eigenwhat
Copy link
Contributor Author

eigenwhat commented Sep 3, 2021

The option you are looking for is now called without_stacktrace. Please try
conan install boost/1.76.0@ -o boost: without_stacktrace=True -o shared=False --build=boost --update

No, without_stacktrace disables the entire stacktrace library. with_stacktrace_backtrace presumably disables the variant of Boost stacktrace that depends on the external libbacktrace dependency. There are various engines for Boost stacktrace, and the Conan recipe exposes each as a separate component.

https://www.boost.org/doc/libs/1_66_0/doc/html/stacktrace/configuration_and_build.html

I want Boost stacktrace, just not the part that relies on this dependency.

@dmn-star
Copy link
Contributor

dmn-star commented Sep 4, 2021

Thank you for the clarification. I already double checked the recipe and @SSE4 fixed the bug.

@eigenwhat
Copy link
Contributor Author

I can confirm, #7146 resolves the package build issue locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants