-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rocksdb build error on an M1 Mac #753
Comments
I think this might be the underlying issue: facebook/rocksdb#7710 |
Read the usage instructions ;) |
Thanks @casey - will take a look at redb. |
I'm trying to dynamically link, but getting new errors:
|
Probably a different version? Which one do you have? |
Looks like 7.4.3:
|
|
Currently having the same problem with building on a M1 mac. If I try static linking, it does not build with the problem @casey mentioned: facebook/rocksdb#7710 If I try dynamic linking, I also run into the above problem: Homebrew installs version 7.4.5 of rocksdb. Not sure how to proceed. I'd rather not build an older rocksdb version myself, I guess the rocksdb rust wrapper should be updated to include the fix of issue 7710? |
Yeah, I think we should backport the fix for now and then implement #754 |
Any update on this? Still not running electrs personally, although I would really love to. I was hoping https://crates.io/crates/electrs-rocksdb would be updated soon and I could actually build and run electrs on my M1. Really looking forward to it! |
+1, I'm also facing this issue when building on macOS M1 (not a big problem on my end, I just wanted to stay updated with notifications on this github issue). |
Please try d9097f4 (using rocksdb 0.19.0 & Rust 1.60.0). |
Worked right out of the gate for me. 🔥🔥🔥 Thanks a bunch! |
Same here, cargo build now just ran through! Haven't run it yet or anything, but looks good! |
I run into an error while building that I think is coming from rocksdb. I can install rocksdb via homebrew, so if there's a way to dynamically link with the system-provided rocksdb, that might be an option. I think it's been discussed, but my vote for a pure Rust replacement database is https://github.com/cberner/redb/. The file format isn't stable, but once it stabilizes I think it'll be a great choice. It's modeled on LMDB, so has a simple, well-understood design.
Building from master@
b94450c
.Have you read the documentation?
Yes.
Did you double-check that you installed all dependencies?
Yes.
Which command failed?
cargo build
What was the error message?
Error message
System
OS name and version: MacOS 12.5
rustc version: rustc 1.62.1 (e092d0b6b 2022-07-16)
cargo version: cargo 1.62.1 (a748cf5a3 2022-06-08)
Compilation
Linking: default
Cross compilation: no
Aditional context
1.48 doesn't have ARM builds, so I deleted
rust-toolchain
to build with 1.62.The text was updated successfully, but these errors were encountered: