GarlicoinOrg / Garlicoin

Garlicoin source tree
http://garlicoin.io
MIT License
139 stars 59 forks source link

./install_db4.sh fails on Apple Silicon #76

Closed HoorayJorge closed 2 years ago

HoorayJorge commented 2 years ago

install_db4.sh fails giving the error

configure: WARNING: NO SHARED LATCH IMPLEMENTATION FOUND FOR THIS PLATFORM.
configure: error: Unable to find a mutex implementation

Berkely db4 to build

Error provided above

Build on ARM Mac, install Xcode, xcode-select, and dependencies

Master branch on github. Self compiling. https://github.com/GarlicoinOrg/Garlicoin/commit/f57f2755b5275f038ba729c1aa7914ab82f3feb2

  Model Name:   MacBook Air
  Model Identifier: MacBookAir10,1
  Chip: Apple M1
  Total Number of Cores:    8 (4 performance and 4 efficiency)
  Memory:   16 GB
  System Firmware Version:  7429.61.2
  OS Loader Version:    7429.61.2
  System Version:   macOS 12.1 (21C52)
  Kernel Version:   Darwin 21.2.0
  Boot Volume:  Macintosh HD
  Boot Mode:    Normal
  Computer Name:    Batcave
  User Name:    jorge (jorge)
  Secure Virtual Memory:    Enabled
  System Integrity Protection:  Enabled
  Time since boot:  10:52

What version of garlicoin-core are you using?

[List the version number/commit ID, and if it is an official binary, self compiled or a distribution package such as PPA.]

(https://github.com/GarlicoinOrg/Garlicoin/commit/f57f2755b5275f038ba729c1aa7914ab82f3feb2)

Any extra information that might be useful in the debugging process.

This was a known issue in bitcoin, fixed with the attached issue.

HoorayJorge commented 2 years ago

This can be solved by export CFLAGS="-Wno-error=implicit-function-declaration"