Missing Boost::System on ARM Ubuntu 18.04 #17010

issue Sjors opened this issue on October 1, 2019
  1. Sjors commented at 10:24 AM on October 1, 2019: member

    Following the Ubuntu instructions on an Orange Pi Plus 2e running Ubuntu Bionic (Armbian):

    sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 ccache
    sudo apt-get install libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev
    ./autogen.sh 
    ./configure --disable-wallet --without-gui --disable-tests --disable-bench
    ...
    checking for boostlib >= 1.47.0 (104700)... yes
    checking whether the Boost::System library is available... yes
    configure: error: Could not find a version of the Boost::System library!
    
    Linux orangepiplus2e 4.19.57-sunxi [#5](/github-metadata-backup-bitcoin-bitcoin/5/).90 SMP Fri Jul 5 17:58:43 CEST 2019 armv7l armv7l armv7l GNU/Linux
    

    As suggested on Stack Overflow, adding --with-boost-libdir=/usr/lib/arm-linux-gnueabihf works around the issue. But ideally ./configure should figure this out.

    I've installed Bitcoin Core on the same type of device before, also using Armbian, though this was over a year ago. I did not need the workaround back then.

  2. Sjors added the label Bug on Oct 1, 2019
  3. fanquake added the label Linux/Unix on Oct 1, 2019
  4. fanquake commented at 12:11 PM on October 1, 2019: member

    My guess is this was broken in #15461 when the boost_base.m4 was updated, but our libsubdirs patch was dropped. I will get our patch upstreamed then pull the latest macro down.

  5. MarcoFalke added this to the milestone 0.19.0 on Oct 1, 2019
  6. Sjors commented at 12:22 PM on October 1, 2019: member

    Ah excellent, I broke it :-)

  7. Sjors cross-referenced this on Oct 1, 2019 from issue [depends] update to Boost 1.70 by Sjors
  8. hebasto commented at 1:37 PM on October 1, 2019: member

    @Sjors

    Ah excellent, I broke it :-)

    This is not your fault ;)

    Try this patch:

    diff --git a/build-aux/m4/ax_boost_base.m4 b/build-aux/m4/ax_boost_base.m4
    index 16fa69b41..65a6379bd 100644
    --- a/build-aux/m4/ax_boost_base.m4
    +++ b/build-aux/m4/ax_boost_base.m4
    @@ -123,6 +123,7 @@ AC_DEFUN([_AX_BOOST_BASE_RUNDETECT],[
         dnl are almost assuredly the ones desired.
         AS_CASE([${host_cpu}],
           [i?86],[multiarch_libsubdir="lib/i386-${host_os}"],
    +      [armv7l],[multiarch_libsubdir="lib/arm-linux-gnueabihf"],
           [multiarch_libsubdir="lib/${host_cpu}-${host_os}"]
         )
    
    
  9. Sjors commented at 2:54 PM on October 1, 2019: member

    @hebasto that patch does the trick (after running ./autogen.sh).

  10. hebasto commented at 4:45 PM on October 1, 2019: member

    My guess is this was broken in #15461 when the boost_base.m4 was updated, but our libsubdirs patch was dropped.

    The patch itself: 54c7df81f3e5f81cb91646acaf82074a3a6be3b2 from #4704.

  11. fanquake cross-referenced this on Oct 2, 2019 from issue AX_BOOST_BASE: fix Boost detection on some platforms by fanquake
  12. laanwj commented at 7:42 AM on October 2, 2019: member

    My guess is this was broken in #15461 when the boost_base.m4 was updated, but our libsubdirs patch was dropped. I will get our patch upstreamed then pull the latest macro down.

    This is the second time this happens in a short while (#16803), let's try to be more careful when reviewing m4 replacements.

  13. laanwj renamed this:
    Missing Boost::System on Ubuntu 18.04
    Missing Boost::System on ARM Ubuntu 18.04
    on Oct 2, 2019
  14. ryanofsky commented at 2:31 PM on October 2, 2019: contributor

    Is there an automated (travis) test that could catch this type of error in the future?

  15. Sjors commented at 4:16 PM on October 2, 2019: member

    Not this specific one, because we only cross-compile to ARM.

  16. laanwj commented at 5:30 PM on October 2, 2019: member

    If it wasn't for boost, for some reason, not conforming to the normal convention for UNIX libraries (e.g. using pkg-config), we'd need a lot less custom m4 code.

  17. laanwj commented at 6:04 AM on October 4, 2019: member

    It does look like the upstreaming is taking longer than expected. I don't think it's good to hold up rc1 on this, so going to push the fix to 0.19.0 only—master can wait for upstreaming.

  18. laanwj referenced this in commit cd1e7bb064 on Oct 4, 2019
  19. laanwj removed this from the milestone 0.19.0 on Oct 4, 2019
  20. hebasto cross-referenced this on Oct 12, 2019 from issue logs: add timing information to FlushStateToDisk() by jamesob
  21. HashUnlimited referenced this in commit 002959e61a on Nov 17, 2019
  22. fxtc referenced this in commit 618097fc75 on Nov 25, 2019
  23. fxtc referenced this in commit 7f9a153b7e on Nov 25, 2019
  24. laanwj commented at 11:45 AM on December 12, 2019: member

    Looks like this still wasn't pulled upstream. Maybe it's time to pull this into master anyway, to avoid the problem recurring in 0.20.

  25. laanwj added this to the milestone 0.20.0 on Dec 12, 2019
  26. greenaddress cross-referenced this on Dec 13, 2019 from issue configure: error: No working boost sleep implementation found. by notmike-5
  27. Sjors commented at 8:11 PM on December 13, 2019: member

    Let's hold off on that until closer to the fork-off point. There's seems to be some activity again upstream.

  28. laanwj commented at 10:28 AM on December 15, 2019: member

    Yes, okay.

    In general I feel really uncomfortable with issues that have been fixed on a branch but not in master. In any case I've tagged this with 0.20.0 so that it should come up again before then…

  29. opacey referenced this in commit 278751ea11 on Dec 19, 2019
  30. fanquake cross-referenced this on Jan 31, 2020 from issue depends: update to Boost 1.72 by Sjors
  31. deadalnix referenced this in commit 53a3ec1060 on Apr 1, 2020
  32. hebasto referenced this in commit 13dbc6c7ff on Apr 2, 2020
  33. hebasto referenced this in commit fba1719190 on Apr 2, 2020
  34. hebasto cross-referenced this on Apr 2, 2020 from issue build: Fix boost detection on Ubuntu ARM 18.04 by hebasto
  35. MarcoFalke removed this from the milestone 0.20.0 on Apr 4, 2020
  36. MarcoFalke added this to the milestone 0.21.0 on Apr 4, 2020
  37. MarcoFalke commented at 11:32 AM on April 4, 2020: member

    Let's hold off on that until closer to the fork-off point. There's seems to be some activity again upstream.

    Any updates in upstream that we could use?

  38. hebasto commented at 1:54 PM on April 4, 2020: member

    Let's hold off on that until closer to the fork-off point. There's seems to be some activity again upstream.

    Any updates in upstream that we could use?

    Both PRs to upstream still open:

  39. hebasto commented at 10:29 PM on April 7, 2020: member

    Tested https://github.com/autoconf-archive/autoconf-archive/pull/214 on ODROID-HC1 (ARMv7l + Ubuntu 18.04.4): it works both with GCC 7.5.0 and Clang 6.0.0 compilers.

    Therefore, I'd suggest to drop https://github.com/autoconf-archive/autoconf-archive/pull/198 in favor of https://github.com/autoconf-archive/autoconf-archive/pull/214, and apply changes in master before 0.20 branch off.

    If no objections, going to replace #18501 accordingly.

  40. laanwj commented at 10:05 AM on April 8, 2020: member

    I also think the other change has more chance of making it upstream. it's much less controversial and basically

    +      [armv7l],[multiarch_libsubdir="lib/arm-${host_os}"],
    
  41. hebasto cross-referenced this on Apr 8, 2020 from issue build: Fix boost detection for arch armv7l by hebasto
  42. laanwj closed this on Apr 8, 2020

  43. ftrader referenced this in commit def73e3596 on Aug 17, 2020
  44. PastaPastaPasta referenced this in commit 213d3f336b on Jun 27, 2021
  45. PastaPastaPasta referenced this in commit 9e6232d669 on Jun 28, 2021
  46. PastaPastaPasta referenced this in commit 3f7ed07a3e on Jun 29, 2021
  47. PastaPastaPasta referenced this in commit 1e5aacf9cd on Jul 1, 2021
  48. PastaPastaPasta referenced this in commit 84785e9b41 on Jul 1, 2021
  49. PastaPastaPasta referenced this in commit 51fb668c3a on Jul 14, 2021
  50. vijaydasmp referenced this in commit 71235217d9 on Dec 6, 2021
  51. Munkybooty referenced this in commit 8378856f32 on Dec 9, 2021
  52. vijaydasmp referenced this in commit bda934d329 on Dec 13, 2021
  53. Munkybooty referenced this in commit 432098c993 on Dec 23, 2021
  54. bitcoin locked this on Feb 15, 2022

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: 2026-05-19 06:54 UTC