You need to increase minimal required Boost version (or fix the issue) #8868

issue Zenitur openend this issue on October 3, 2016
  1. Zenitur commented at 9:53 am on October 3, 2016: none

    Trying to compile Bitcoin Core 0.13 from source code, I saw this error:

    [ 141s] checking for boostlib >= 1.20.0... yes [ 141s] checking whether the Boost::System library is available... yes [ 141s] checking for exit in -lboost_system... yes [ 142s] checking whether the Boost::Filesystem library is available... no [ 143s] checking whether the Boost::Program_Options library is available... yes [ 143s] checking for exit in -lboost_program_options-mt... yes [ 144s] checking whether the Boost::Thread library is available... no [ 144s] checking whether the Boost::Chrono library is available... no [ 145s] checking whether the Boost::Unit_Test_Framework library is available... yes [ 145s] checking for dynamic linked boost test... yes [ 146s] checking for mismatched boost c++11 scoped enums... ok [ 149s] configure: error: No working boost sleep implementation found. [ 149s] error: Bad exit status from /var/tmp/rpm-tmp.50778 (%build)

    I’ll upload new Boost in my repository to fix that. You need to increase minimal required Boost version, or make “if old version” code.

    OS: SUSE Linux Enterprise SP4 32-bit and 64-bit, GCC 4.8.2, Qt 5.6, Autoconf 2.69, Boost 1.36

    My Boost package info: https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=sp3&architecture=x86_64&package_name=boost-license

    My repository: https://build.opensuse.org/package/show/home:linux4humans:qt5.6/bitcoin

    RPM SPEC file: https://build.opensuse.org/package/view_file/home:linux4humans:qt5.6/bitcoin/bitcoin.spec?expand=1

    Full build log is attached

  2. Zenitur renamed this:
    You need to increase minilal required Boost version (or fix the issue)
    You need to increase minimal required Boost version (or fix the issue)
    on Oct 3, 2016
  3. Zenitur commented at 9:57 am on October 3, 2016: none
  4. MarcoFalke added the label Build system on Oct 3, 2016
  5. laanwj commented at 10:41 am on October 3, 2016: member
    Are you sure this is a boost version issue? Does it go away with a different boost version? Can you show the relevant part of config.log? (or pastebin/upload the whole thing)
  6. laanwj commented at 10:42 am on October 3, 2016: member
    Upending the minimum boost version sounds like a good idea though (1.20 wtf), but I’m not aware 1.36 doesn’t work.
  7. laanwj assigned theuni on Oct 3, 2016
  8. paveljanik commented at 10:47 am on October 3, 2016: contributor
    Can you please upload config.log?
  9. Zenitur commented at 10:54 am on October 3, 2016: none
    I don’t know how to get config.log from OBS repository. I’ll search how to do that, after this I’ll upload this config file.
  10. sipa commented at 1:36 pm on October 3, 2016: member
    If you build locally, don’t you get a similar error?
  11. laanwj commented at 1:45 pm on October 3, 2016: member

    It looks like a few of the required boost libraries are missing:

    0[ 142s] checking whether the Boost::Filesystem library is available... no
    1[ 144s] checking whether the Boost::Thread library is available... no
    2[ 144s] checking whether the Boost::Chrono library is available... no
    

    A similar problem could be causing the boost::sleep issue.

    These are the boost components required (from depends/packages/boost.mk): chrono,filesystem,program_options,system,thread,test

    I’m still unconvinced that this is a version issue at all, unless you can confirm that using a different boost version solved the problem.

  12. theuni commented at 0:45 am on October 4, 2016: member

    Boost 1.36 doesn’t include chrono. You’ll need a newer one.

    And yes, we should bump the minimum.

  13. laanwj commented at 9:26 am on October 4, 2016: member
    0Version 1.36.0  August 14th, 2008 12:00 GMT
    

    Boost 1.36.0 is 8 years old(!). It predates bitcoin completely. I didn’t realize this in my response above, I think I had the version number wires crossed in my head.

  14. Zenitur commented at 10:46 am on October 4, 2016: none
    Okay guys, I cannot get config.log from a build farm. So I have been installed this Linux distribution on Virtualbox. I’ll give you log file in a few hours…
  15. Zenitur commented at 1:13 pm on October 4, 2016: none
  16. Zenitur commented at 1:14 pm on October 4, 2016: none

    There is the build log. I’ll upgrade system Boost step by step to detect the minimal version needed by Bitcoin Core.

    If you want, I can upload the VirtualBox VDI for testing

  17. Zenitur commented at 1:32 pm on October 4, 2016: none
  18. paveljanik commented at 1:43 pm on October 4, 2016: contributor
  19. Zenitur commented at 4:55 pm on October 4, 2016: none
    paveljanik, I don’t know how to define BOOST_DISABLE_THREADS. Do I need to define something in RPM SPEC file? Or in Bitcoin Core source? Maybe in bitcoin-0.13.0/build-aux/m4/ax_boost_thread.m4?
  20. paveljanik commented at 5:39 pm on October 4, 2016: contributor
    No. Your boost looks like it was compiled without threads for some reason…
  21. Zenitur commented at 5:22 am on October 8, 2016: none
    The SUSE Enterprise developers are not as foolish as I thought. They’re put Boost 1.49 as a “boost49” package, without removing Boost 1.36. I’ve found that suddenly: https://www.suse.com/support/update/announcement/2015/suse-ou-20150656-1.html sles_boost
  22. Zenitur commented at 6:31 am on October 8, 2016: none
    Error message when build with Boost 1.49: http://pastebin.com/b2JHAE01
  23. laanwj commented at 2:00 pm on October 11, 2016: member
    Closing in favor of #8875, I think one issue about boosting the boost version is enough.
  24. laanwj closed this on Oct 11, 2016

  25. MarcoFalke locked this on Sep 8, 2021

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-12-19 00:12 UTC

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