Boost or whatever compilation error #13973

issue Ayms opened this issue on August 14, 2018
  1. Ayms commented at 10:41 PM on August 14, 2018: none

    Debian wheezy (yes, old, but that's it), who succeeded to compile easily some bitcoin shxtty forks, but not bitcoin, incredible...

    Maybe related to #13182 or #2998, no idea but starting to be fed up with this stuff, problem with wallet, OK disabling wallet, --disable-wallet then --with-gui=no then --with-incompatible-bdb, what's next?

    Error with the latest option:

    libbitcoin_server.a(libbitcoin_server_a-init.o): In function path<boost::filesystem::directory_entry>': /usr/local/include/boost/filesystem/path.hpp:140: undefined reference to boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry const&, std::string&)' libbitcoin_wallet.a(libbitcoin_wallet_a-db.o): In function copy_file': /usr/local/include/boost/filesystem/operations.hpp:497: undefined reference to boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::detail::copy_option, boost::system::error_code*)' collect2: error: ld returned 1 exit status make[2]: *** [bitcoind] Error 1

    And config.log here http://www.peersm.com/config.txt

  2. sipa commented at 11:02 PM on August 14, 2018: member

    What version of Boost are you using?

  3. MarcoFalke commented at 11:04 PM on August 14, 2018: member

    What versions of core are affected? Just 0.17?

  4. MarcoFalke added this to the milestone 0.17.0 on Aug 14, 2018
  5. MarcoFalke added the label Build system on Aug 14, 2018
  6. Ayms commented at 11:15 PM on August 14, 2018: none

    Apparently I am using Version: 1.55.0.2

  7. MarcoFalke commented at 11:53 PM on August 14, 2018: member

    wheezy comes with https://packages.debian.org/wheezy/libboost-dev 1.49

    Also, wheezy is EOL https://www.debian.org/releases/wheezy/.

    We should still fix the minimum required version of boost, I think.

  8. Ayms commented at 11:57 PM on August 14, 2018: none

    I know

    So? What should I do?

  9. fanquake commented at 12:26 AM on August 15, 2018: member

    I don't think copy_file is the problem here. It's definitely been around since before 1.50.0, we even check for it in configure.ac:

    https://github.com/bitcoin/bitcoin/blob/63f8b0128b2aac3b25c6ec4d2f5bda213033162a/configure.ac#L994

    path_traits also exists in filesystem V2 (1.47.0<), however it looks like dispatch wasn't introduced until V3.

    edit: However, filesystem V3 has existed since 1.44.0, and became the default in 1.46.0.

  10. Ayms commented at 11:25 AM on August 15, 2018: none

    Not sure to follow the discussion here, apparently you are aware of an issue with boost but it does not seem to be mine and I did not encounter this issue with bitcoin forks, so what happened/changed and what should I do?

  11. MarcoFalke commented at 11:45 AM on August 15, 2018: member

    @Ayms If your operating system is EOL, you should upgrade it @fanquake If this is not an issue with our minimum required version, we should close this report

  12. sipa commented at 2:26 PM on August 15, 2018: member

    I'm still confused what the cause is here, though. If @Ayms has Boost 1.55, this is not the explanation. @Ayms What happened is that we continuously update the (few) dependencies we use, as a tradeoff between availability for users, and features that make development easier.

    I am not convinced we know what causes this, but since you are on an operating system that's no longer supported, it may be hard to convince people to spend time on it.

  13. ken2812221 referenced this in commit dc9d506681 on Aug 15, 2018
  14. Ayms commented at 3:15 PM on August 15, 2018: none

    I know that wheezy is eol but happy with it and I am not going to screw up/reinstall everything that is running on it

    My question was more: "should I investigate? Wait? If you are aware about of some issues with boost, then please tell it"

    Still surprised that I can compile shxtty forks but not bitcoin, it should be the contrary

    Currently trying @fanquake commit (if I understand correctly this boost thing is doing very little then should not block the complete process)

    Let's see (I have the Berkeley DB issue too, bypassing it)

  15. MarcoFalke commented at 3:23 PM on August 15, 2018: member

    I can't compile on wheezy at all, since there seems to be no supported compiler:

    configure: error: *** A compiler with support for C++11 language features is required.
    

    @Ayms Please let us know if this issue persists with clear steps to reproduce. (Maybe in a wheezy docker)

    Otherwise you could also try to build from ./depends.

  16. MarcoFalke closed this on Aug 15, 2018

  17. Ayms commented at 7:29 PM on August 15, 2018: none

    You must upgrade the compiler of course

    The issue persists, steps to reproduce: git clone bitcoin with @fanquake commit, autogen, configure without wallet and gui, make

    I can post the logs if you like, or please let me know what you need, I might try depends

  18. Ayms commented at 2:42 PM on August 19, 2018: none

    I tried to build from depends, and the same... or I am doing something really wrong:

    cd depends
    make
    cd ..
    ./autogen.sh
    ./configure --prefix=`pwd`/depends/x86_64-linux-gnu --with-incompatible-bdb
    make
  19. Ayms commented at 9:19 AM on August 23, 2018: none

    Solved, very similar than #6603 (comment)

    I was building with the default wheezy 1.49 libboost

    So using ./configure --with-boost-libdir=/usr/local/lib solved the problem

    Given all the posts that we can see about this issue for bitcoin or other projects probably it would be a good idea to highlight the --with-boost-libdir use since unless I missed it we don't see it anywhere in the build docs

    And/or configure should detect and output that an incorrect version of boost is used

  20. Munkybooty referenced this in commit dc3883d36c on Jun 29, 2021
  21. Munkybooty referenced this in commit b51087662e on Jun 29, 2021
  22. Munkybooty referenced this in commit 291de7d115 on Jun 29, 2021
  23. Munkybooty referenced this in commit 370eada445 on Jun 29, 2021
  24. Munkybooty referenced this in commit 61a4464605 on Jun 30, 2021
  25. Munkybooty referenced this in commit 00a588b349 on Jul 2, 2021
  26. Munkybooty referenced this in commit b40823154b on Jul 2, 2021
  27. DrahtBot 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: 2026-04-13 21:15 UTC

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