Ubuntu 20.04 BDB 4.8 compile issues #18846

issue BlockMechanic opened this issue on May 1, 2020
  1. BlockMechanic commented at 11:51 PM on May 1, 2020: contributor

    Hello

    Decided to setup a new node on ubuntu 20.04 , build is impossible to continue because BDB 4.8 fails with In file included from ../dist/../dbinc/mutex_int.h:12, from ../dist/../dbinc/mutex.h:15, from ./db_int.h:884, from ../dist/../cxx/cxx_db.cpp:11: ../dist/../dbinc/atomic.h:179:19: error: definition of ‘int __atomic_compare_exchange(db_atomic_t*, atomic_value_t, atomic_value_t)’ ambiguates built-in declaration ‘bool __atomic_compare_exchange(long unsigned int, volatile void*, void*, void*, int, int)’ 179 | static inline int __atomic_compare_exchange(

    I was manually building with this command cd db-4.8.30/build_unix; ../dist/configure --prefix=/usr/local --enable-cxx ; make

    System information 8 core 16GB ram Ubuntu 20.04 1TB SSD

  2. BlockMechanic added the label Bug on May 1, 2020
  3. fanquake commented at 11:54 PM on May 1, 2020: member

    You'll need to apply the same patches that we do (for c++11) when building bdb: https://github.com/bitcoin/bitcoin/blob/master/depends/packages/bdb.mk#L17.

    I'd suggest using the install_db4.sh script, as this automates this process.

  4. fanquake removed the label Bug on May 1, 2020
  5. BlockMechanic commented at 11:56 PM on May 1, 2020: contributor

    Oh, ok. Thanks

  6. BlockMechanic closed this on May 1, 2020

  7. DrahtBot 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-04-22 18:14 UTC

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