configure: error: No working boost sleep implementation found. #17478

issue notmike-5 openend this issue on November 14, 2019
  1. notmike-5 commented at 4:52 pm on November 14, 2019: none

    Trying to compile origin/master on Arch, but ./configure is giving the error:

    configure: error: No working boost sleep implementation found.

    I definitely have boost installed, version is 1.71.0-2. I suspect I may need to statically link this somehow, but don’t exactly know how I might do that.

  2. notmike-5 added the label Bug on Nov 14, 2019
  3. MarcoFalke commented at 5:25 pm on November 14, 2019: member
    What is your config.log? And the steps to reproduce?
  4. notmike-5 commented at 6:01 pm on November 14, 2019: none

    Sure thing, thanks for the quick reply. On a working Arch install with boost/boost-libs installed I have…

    pacman -S boost boost-libs git clone https://github.com/bitcoin/bitcoin.git cd bitcoin/ ./autogen.sh ./configure
    [produces` configure: error: No working boost sleep implementation found.]

    Have tried options: –with-boost-thread=/usr/lib/libboost_thread [couldn’t link to this] –with-boost=/usr/lib/libboost [this wasn’t right either]

    make -j$(nproc) [since I re-cloned the directory I don’t even get to this step]

    Here is the output of cat config.log | grep boost https://termbin.com/0dxd

  5. MarcoFalke commented at 6:37 pm on November 14, 2019: member

    With a truncated config log there is not much we can do.

    I followed https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#setup-and-build-example-arch-linux on a fresh archlinux and it worked just fine for me

  6. fanquake commented at 3:22 pm on November 15, 2019: member
    @notmike-5 Can you provide any more info? Using 21ee676dd6a7d9704367b6412bf8e1e443ec2b5b and an archlinux/base Docker container I can’t recreate this with pacman installed dependencies: ./configure --disable-wallet --without-gui --without-miniupnpc, or the depends system: ./configure --prefix=/bitcoin/depends/x86_64-pc-linux-gnu.
  7. MarcoFalke added the label Waiting for author on Nov 15, 2019
  8. hieunc278 commented at 6:47 am on November 16, 2019: none

    Hi @notmike-5 I have just resolved this issue on my Mac OS Mojave, so I would like to share with you as a reference.

    Here is my installation steps :

    1. Installed dependencise brew install automake berkeley-db4 libtool boost miniupnpc openssl pkg-config python qt libevent qrencode
    2. Git clone bitcoin
    3. Ran ./autogen.sh successful
    4. Ran ./configure, it show error messages checking for boostlib >= 1.47.0 (104700)… configure: We could not detect the boost libraries (version MINIMUM_REQUIRED_BOOST or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to –with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation. checking whether the Boost::System library is available… no checking whether the Boost::Filesystem library is available… no checking whether the Boost::Thread library is available… no checking whether the Boost::Chrono library is available… no checking whether the Boost::Unit_Test_Framework library is available… no checking for dynamic linked boost test… no checking for mismatched boost c++11 scoped enums… ok configure: error: No working boost sleep implementation found.
    5. I checked dependencies installed log and found that Warning: boost 1.71.0 is already installed, it’s just not linked You can use brew link boost to link this version.
    6. I saw that although that boost was installed, however, brew could not create link yet. So I created manually with command “brew link boost”
    7. I ran ./configure again and saw that it ran successful.

    Please check on your environment again.

  9. laanwj removed the label Bug on Nov 19, 2019
  10. laanwj added the label Build system on Nov 19, 2019
  11. notmike-5 commented at 6:47 pm on November 19, 2019: none

    @MarcoFalke here is a config.log: https://termbin.com/9gbq @fanquake I’ve downgraded boost and boost-libs before to v1.68 and v1.69 (its all I can think of really). I have since reinstalled boost and boost-libs v1.72. I also went back and just deleted all the boost libs in /usr/lib/ and reinstalled v1.72 @hieunc278 thanks for the ref

    I tried everyone’s ./configure lines but each resulted in the same error: configure: error: No working boost sleep implementation found

  12. brakmic commented at 7:04 pm on November 19, 2019: contributor

    @MarcoFalke here is a config.log: https://termbin.com/9gbq

    @fanquake I’ve downgraded boost and boost-libs before to v1.68 and v1.69 (its all I can think of really). I have since reinstalled boost and boost-libs v1.72. I also went back and just deleted all the boost libs in /usr/lib/ and reinstalled v1.72

    @hieunc278 thanks for the ref

    I tried everyone’s ./configure lines but each resulted in the same error: configure: error: No working boost sleep implementation found

    Once I had a similar problem when compiling a version for Raspberry Pi and the solution that worked for me was the flag –with-boost-libdir=PATH_WHERE_YOUR_BOOST_LIBS_ARE

  13. laanwj commented at 10:46 am on November 20, 2019: member

    I’m saddened that this issue comes up again, we’ve been chasing these kind of errors since 2012 or so, every time there’s some subtle problem. If only we could get rid of boost::sleep use (but this turns out to be hard #17253 #16117 #17307…).

    Aanyhow, this is what causes boost sleep to not be detected in your particular case, a linker error;

    0configure:26523: g++ -std=c++11 -o conftest -g -O2  -DHAVE_BUILD_INFO -D__STDC_FORMAT_MACROS -DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC -pthread -I/usr/include  conftest.cpp -L/usr/lib64 -lboost_system -lboost_filesystem -lboost_thread -lpthread -lboost_chrono  >&5
    1/usr/bin/ld: /tmp/cck6yHgf.o: in function `boost::system::generic_category()':
    2/usr/local/include/boost/system/error_code.hpp:498: undefined reference to `boost::system::detail::generic_category_ncx()'
    3/usr/bin/ld: /usr/local/include/boost/system/error_code.hpp:498: undefined reference to `boost::system::detail::generic_category_ncx()'
    4/usr/bin/ld: /usr/local/include/boost/system/error_code.hpp:498: undefined reference to `boost::system::detail::generic_category_ncx()'
    5/usr/bin/ld: /usr/local/include/boost/system/error_code.hpp:498: undefined reference to `boost::system::detail::generic_category_ncx()'
    6/usr/bin/ld: /usr/local/include/boost/system/error_code.hpp:498: undefined reference to `boost::system::detail::generic_category_ncx()'
    7/usr/bin/ld: /tmp/cck6yHgf.o:/usr/local/include/boost/system/error_code.hpp:498: more undefined references to `boost::system::detail::generic_category_ncx()' follow
    8collect2: error: ld returned 1 exit status
    

    I’m not sure where this value is supposed to be defined (it seems to be boost_system, which is linked!), whether your boost is miscompiled, or your specific version of boost needs another library to be linked.

  14. MarcoFalke removed the label Waiting for author on Dec 3, 2019
  15. greenaddress commented at 6:58 pm on December 13, 2019: contributor

    abcore’s bitcoin_ndk last working version is 0.18.1 - 0.19.0.1 breaks with boost sleep on all platforms (32/64 arm/x86) https://travis-ci.org/greenaddress/bitcoin_ndk/builds/624403892?utm_source=github_status&utm_medium=notification

    I’m investigating, seems the same issue

  16. MarcoFalke commented at 7:04 pm on December 13, 2019: member
    Maybe it was something related to the m4/boost bump in #15461
  17. greenaddress commented at 7:15 pm on December 13, 2019: contributor
    @MarcoFalke thanks - maybe - i will try to see if the suggestions in #17010 work
  18. greenaddress commented at 0:20 am on December 14, 2019: contributor
    maybe not the same issue - the android one is related to pthread being linked when not needed on android
  19. MarcoFalke commented at 2:59 pm on March 7, 2020: member
    Boost sleep has been removed in master/0.20
  20. MarcoFalke closed this on Mar 7, 2020

  21. sg-plus commented at 4:16 am on August 12, 2020: none
    it resolve my problem.url
  22. fanquake locked this on Aug 12, 2020

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me