nano-node icon indicating copy to clipboard operation
nano-node copied to clipboard

Update RocksDB to support building on M1 Mac when a new stable release supports it

Open wezrule opened this issue 4 years ago • 3 comments

There is a RocksDB build issue on the new M1 ARM chip machines https://github.com/facebook/rocksdb/pull/7714. The fix is in master but not in any of the stable releases, at the time of writing the latest is RocksDB 6.15.5 (5th Feb). There are 3 commits which should be added on to any new version we use (if still appropriate), an example is shown here: https://github.com/nanocurrency/rocksdb/commits/6.15.4

wezrule avatar Feb 24 '21 15:02 wezrule

Hey @wezrule, any luck getting this to work? I forked nano-node, updated the RocksDB submodule to the latest version, and tried compiling, but ran into a second issue.

./boost_1_70_0/stage/lib/libboost_log.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

If I knew more about building C++ projects, I might be of more assistance. But I can say that I tried using an updated version of rocksdb, and that did fix the build issue, but I still haven't successfully built nano-node for m1 yet. Thanks!

edgartheunready avatar Mar 07 '22 02:03 edgartheunready

@jamescoxon, if I remember well, you got this to work, didn't you?

dsiganos avatar Mar 07 '22 14:03 dsiganos

Yeah - https://github.com/jamescoxon/nano-node/commit/3bc70963eeee917ddf4e048005242170034d5ef2

jamescoxon avatar Mar 17 '22 10:03 jamescoxon