question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[package] boost/1.74: assertion failures break Boost

See original GitHub issue

This worked up until we noticed a CI failure yesterday.

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: boost/1.74
  • Operating System+version: Linux Ubuntu 16.04
  • Compiler+version: GCC 9
  • Conan version: conan 1.32.0
  • Python version: Python 3.5.2

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

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=9
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]

Steps to reproduce (Include if Applicable)

Built using conan cmake:

conan_cmake_run(CONANFILE external/conanfile.txt
                BASIC_SETUP CMAKE_TARGETS
                SETTINGS compiler.cppstd=17
                INSTALL_FOLDER ${CMAKE_SOURCE_DIR}/external/build
                BUILD outdated)

with options

boost:shared=False
boost:asio_no_deprecated=True
boost:system_no_deprecated=True
boost:without_system=False    # only system
boost:without_atomic=True
boost:without_chrono=True
boost:without_container=True
boost:without_context=True
boost:without_contract=True
boost:without_coroutine=True
boost:without_date_time=True
boost:without_exception=True
boost:without_fiber=True
boost:without_filesystem=True
boost:without_graph_parallel=True
boost:without_graph=True
boost:without_iostreams=True
boost:without_locale=True
boost:without_log=True
boost:without_math=True
boost:without_mpi=True
#boost:without_nowide=True  # note: commented out since this option is not supported for some reason
boost:without_program_options=True
boost:without_python=True
boost:without_random=True
boost:without_regex=True
boost:without_serialization=True
boost:without_stacktrace=True
boost:without_test=True
boost:without_thread=True
boost:without_timer=True
boost:without_type_erasure=True
boost:without_wave=True

Logs (Include/Attach if Applicable)

Click to expand log
boost/1.74.0: Applying build-requirement: b2/4.2.0
Downloading conan_sources.tgz
boost/1.74.0: Configuring sources in /cache/conan/.conan/data/boost/1.74.0/_/_/source
boost/1.74.0: Building your package in /cache/conan/.conan/data/boost/1.74.0/_/_/build/9b7ecc6f57ed8cf8a11455d8439778eaae415a93
boost/1.74.0: Generator txt created conanbuildinfo.txt
boost/1.74.0: Calling build()
notice: found boost-build.jam at /cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/boost-build.jam
notice: loading B2 from /cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src
warning: mismatched versions of B2 engine and core
warning: B2 engine (b2) is 4.2.0
warning: B2 core (at /cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src) is 4.3-git
notice: Searching '/etc' '/root' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src' '/cache/conan/.conan/data/b2/4.2.0/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/b2_src/src/kernel' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/kernel' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/util' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/build' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/tools' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/contrib' '/cache/conan/.conan/data/boost/1.74.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' '/root' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src' '/cache/conan/.conan/data/b2/4.2.0/_/_/package/4db1be536558d833e52e862fd84d64d75c2b3656/bin/b2_src/src/kernel' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/kernel' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/util' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/build' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/tools' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/contrib' '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/src/.'.
notice: Loading explicitly specified user configuration file:
    /cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/user-config.jam
notice: Searching '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build' for user-config configuration file 'user-config.jam'.
notice: Loading user-config configuration file 'user-config.jam' from '/cache/conan/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build'.
notice: will use '/usr/bin/clang++' for clang-linux, condition <toolset>clang-linux-10.0.1
notice: iostreams: not using zlib compression 
notice: iostreams: not using bzip compression 
notice: iostreams: not using lzma compression 
notice: iostreams: not using zstd compression 
Performing configuration checks
    - default address-model    : 64-bit
    - default architecture     : x86
    - Boost.Config Feature Check: cxx11_defaulted_functions : yes
    - Boost.Config Feature Check: cxx11_noexcept : yes
    - Boost.Config Feature Check: cxx11_rvalue_references : yes
    - Boost.Config Feature Check: cxx11_static_assert : yes
    - std::fstream is moveable and swappable : yes
    - Has Large File Support   : yes
Component configuration:
    - atomic                   : not building
    - chrono                   : not building
    - container                : not building
    - context                  : not building
    - contract                 : not building
    - coroutine                : not building
    - date_time                : not building
    - exception                : not building
    - fiber                    : not building
    - filesystem               : not building
    - graph                    : not building
    - graph_parallel           : not building
    - headers                  : building
    - iostreams                : not building
    - locale                   : not building
    - log                      : not building
    - math                     : not building
    - mpi                      : not building
    - nowide                   : building
    - program_options          : not building
    - python                   : not building
    - random                   : not building
    - regex                    : not building
    - serialization            : not building
    - stacktrace               : not building
    - system                   : building
    - test                     : not building
    - thread                   : not building
    - timer                    : not building
    - type_erasure             : not building
    - wave                     : not building

...

boost/1.74.0: WARN: b2 target-os=linux architecture=x86 address-model=64 binary-format=elf abi=sysv --layout=system --user-config=/home/xxx/.conan/data/boost/1.74.0/_/_/source/source_subfolder/tools/build/user-config.jam -sNO_ZLIB=1 -sNO_BZIP2=1 -sNO_LZMA=1 -sNO_ZSTD=1 boost.locale.iconv=on boost.locale.icu=offthreading=multi link=static variant=release --without-atomic --without-chrono --without-container --without-context --without-contract --without-coroutine --without-date_time --without-exception --without-fiber --without-filesystem --without-graph --without-graph_parallel --without-iostreams --without-locale --without-log --without-math --without-mpi --without-program_options --without-python --without-random --without-regex --without-serialization --without-stacktrace --without-test --without-thread --without-timer --without-type_erasure --without-wave toolset=gcc cxxflags=-std=c++17 define=_GLIBCXX_USE_CXX11_ABI=1 define=BOOST_SYSTEM_NO_DEPRECATED=1 define=BOOST_ASIO_NO_DEPRECATED=1 pch=on cxxflags="-fPIC -g" install --prefix=/home/xxx/.conan/data/boost/1.74.0/_/_/package/ff83e3acceb03a788201254c6233b0618ae690f0 -j8 --abbreviate-paths --debug-configuration --build-dir="/home/xxx/.conan/data/boost/1.74.0/_/_/build/ff83e3acceb03a788201254c6233b0618ae690f0"

ERROR: boost/1.74.0: Error in package_info() method, line 1164
        assert len(non_used) == 0, "These libraries were not used in conan components: {}".format(non_used)
        AssertionError: These libraries were not used in conan components: {'boost_nowide'}
CMake Error at cmake/conan.cmake:402 (message):
  Conan install failed='1'
Call Stack (most recent call first):
  cmake/conan.cmake:497 (conan_cmake_install)
  CMakeLists.txt:44 (conan_cmake_run)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gummifcommented, Dec 17, 2020

I managed to pin the revision to an older version by setting env var CONAN_REVISIONS_ENABLED=1 and using boost/1.74.0#3b52fbf45879b8b288e59d454d1c4765, if someone has the same issue.

0reactions
BotelhoViniciuscommented, Dec 23, 2020

I managed to pin the revision to an older version by setting env var CONAN_REVISIONS_ENABLED=1 and using boost/1.74.0#3b52fbf45879b8b288e59d454d1c4765, if someone has the same issue.

@gummif There’s any way to pin all index revision to not affect the actual state of build of conan for futures changes? This affected our Jenkins build and non-cached builds, we want to prevent it…

Read more comments on GitHub >

github_iconTop Results From Across the Web

`uint_fast32_t` not found in namespace `boost` for boost > 1.74.0
I am trying to compile boost from sources but getting the error below. It works fine for all versions of boost up to...
Read more >
1.74.0-14ubuntu1 : boost1.74 package : Ubuntu - Launchpad
boost1.74 1.74.0-14ubuntu1 source package in Ubuntu ... preconditions, customizable actions on assertion failure (e.g.,
Read more >
Boost.Regex
In non-recursive mode, Boost.Regex uses largish blocks of memory to act as a stack for the state machine, the larger the.
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:194973 - "sys-libs/glibc-2.6: random Assertion m==cnt errors on ARM with swap turned on" status:RESOLVED resolution:OBSOLETE severity:enhancement ...
Read more >
libboost-contract1.74.0_1.74.0-9_arm64.deb Debian 11 Download
Package Homepage, https://tracker.debian.org/pkg/boost1.74. Package Binaries, https://packages.debian.org/bullseye/libboost-contract1.74.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found