Does Basho eleveldb compile and run on Apple M1's?

Specifically, the original basho version: GitHub - basho/eleveldb: Erlang LevelDB API

I have no Mac M1, so wondered if there are some Apple folks out there who happen to use eleveldb.
Thanks!

1 Like

I failed to compile one of project with eleveldb on m1, so switched to rocksdb fork which is working on m1:

https://gitlab.com/barrel-db/erlang-rocksdb

and mnesia backend

https://github.com/aeternity/mnesia_rocksdb

2 Likes

I see. Thanks for your response!

1 Like

We updated eleveldb two days ago, to try and improve support on ARM architectures - Upgrade to snappy-1.1.9 & rewrite build_deps.sh as a Makefile by hmmr · Pull Request #266 · basho/eleveldb · GitHub.

However, likewise, I don’t currently have an M1 machine to test this on, so can’t be sure if it has resolved issues with that.

Unfortunately the update has broken eleveldb on OSX Mojave as this isn’t yet included in the latest tag’d release of snappy. Monterey is now required.

1 Like

Thanks for your additional information, @masleeds.

On the Verne fork, @codeadict made some OS X improvements two years ago (pre-ARM). I’ve seen your note in the basho README with links to RocksDB and Leveled. Supporting both of those in addition to Eleveldb is the plan for Verne (mostly there already). This will enable platforms that are currently restricted on Eleveldb.

2 Likes

After installing wget and cmake it does build on my arm mac (MacBook Pro with M1 Pro if this matters, Xcode 13.4), it compiles and tests are passing (make test).

3 Likes

Nice to hear & thanks for testing. This is on OTP 24, I suppose?

1 Like

yes (Erlang/OTP 24 [erts-12.2.1] … ).

2 Likes