Skip to content
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

Bee does not compile on Apple Silicon/M1 (dev branch) #445

Closed
Adam-Gleave opened this issue Mar 3, 2021 · 0 comments
Closed

Bee does not compile on Apple Silicon/M1 (dev branch) #445

Adam-Gleave opened this issue Mar 3, 2021 · 0 comments

Comments

@Adam-Gleave
Copy link
Contributor

Issue

Currently, Bee does not compile on the Apple Silicon platform, because of the issue in rocksdb documented here. There are some preprocessor directives in the C++ code that don't accurately recognise the platform.

That issue has been closed, and a patch merged to the master branch , but it has not officially been released yet, and so the Rust crate rust-rocksdb has not been updated yet to reflect the fix.

(Temporary) Workaround

I have found a workaround that uses a personal fork of the rust-rocksdb repository that contains a temporary fix until there is an official release. That fork is here.

The rust-rocksdb dependency can be overridden with this fork, and everything seems to build fine. To do this, add the following patch to the Cargo.toml file in the root of the Bee workspace:

[patch.crates-io]
rocksdb = { git = "https://github.com/hdevalence/rust-rocksdb", branch = "master" }

This isn't the best solution long-term – the issue thread on rust-rocksdb here should keep us up-to-date on when the crate gets updated to the fixed version.

@Adam-Gleave Adam-Gleave changed the title Bee does not compile on Apple Silicon/M1 Bee does not compile on Apple Silicon/M1 (dev branch) Mar 9, 2021
Alex6323 pushed a commit to Alex6323/bee that referenced this issue Sep 22, 2022
* fix(db)!: remove duplicates from transaction history

* Fix docker

* Make index unique again

* Improve pagination query

* Fix query

* Remove `dbg!`

* Use aggregation pipeline and string cursor

* Revert "Use aggregation pipeline and string cursor"

This reverts commit c19177161e4b2fd480d0f9233f7bbee727a8dcb9.

* Make cursor part of model

* Remove uneeded fields

* Zero-padding

* Fmt

* More padding

* Fix padding again

* Padding final

* Separate indexes

* Update `owning_address`

* Fix ledger by address paging

* Clean up types

* Fix ledger updates by milestone

* Fix ledger updates milestone cursor

* Address comments

Co-authored-by: Alexandcoats <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants