-
Notifications
You must be signed in to change notification settings - Fork 65
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
fix: Adds support for Apple silicon compilation #194
Conversation
This commit cherry picks the Apple Silicon support added by the following Bitcoin PR: bitcoin/bitcoin#21851
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK. Great work man! This is really helpful.
I can't fully test this as I don't have Apple Silicon. But I can tell you I can still compile on my intel Mac, all the way to make deploy and the dmg so this doesn't brick the rest of us cave dwellers still running i series intels living in the stone age.
$(package)_download_path=https://boostorg.jfrog.io/artifactory/main/release/$(subst _,.,$($(package)_version))/source/ | ||
$(package)_file_name=boost_$($(package)_version).tar.bz2 | ||
$(package)_sha256_hash=d73a8da01e8bf8c7eda40b4c84915071a8c8a0df4a6734537ddde4a8580524ee | ||
$(package)_sha256_hash=cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454
Matches!
I don't have Apple Silicon to. but good on Linux. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @gto90 !!
Nice work @gto90! I have an M1 Mac. I have been waiting for this. I will try and test this today. Will this also help with Guix builds on Silicon Macs? |
Have you installed all the deps and followed the process here? https://github.com/DigiByte-Core/digibyte/blob/develop/doc/build-osx.md Roughly:
Homebrew
More deps
For Testing and MAke Deploy
Compile steps after you cloned repo
You can add -j and the number of processors to compile faster. So with 8 cores, you can:
Finally to make the dmg you:
|
I have not yet tried the Guix build process but this is a necessary first step. |
@saltedlolly , can you try the following steps for me?
That should get you going. @JaredTate is correct though that you need to get the latest version of Xcode and Xcode tools installed. I didn't follow the macos build docs though because it's a pain to get the right dependencies installed. The |
@gto90 I followed your steps and it compiled without error which is great! Thanks for the pointers. 🚀 However, on launch it froze on this screen for several minutes: I force quit and restarted and on the second attempt it froze again but then continued after a minute or two: Maybe it would have got there on its own had I waited but it seems there is an issue there. It does not pause like that in 7.17.3 as far as I rememeber. Perhaps this issue is not specifically related to being on Apple Silicon? Also, while it IS syncing (currently at 28%), I do have a permanent spinning beach ball and the force quit dialog says the app is not responding. That doesn't seem normal. |
@saltedlolly And @gto90 Nice work! saltedlolly "However, on launch it froze on this screen for several minutes:" This is a problem that already exist before this pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cACK. Great job everyone. Thanks @gto90 for submitting this PR.
More Windows No Likey More Windows No Like Windows No Like More GUIX Test Fix Test Win Fix More win Fix Test Win Fix More GUIX Test Changes More Fixes Apple Silicone More Tuple Fun More CONTROL_FLOW Tuple Fun Test Tuple Fix Lief Parse Test Pixie & Define get_arch Update README.md Revert Part "Merge pull request DigiByte-Core#194 from DigiByte-Core/feature/appl-silicon-support" This reverts commit d486a8d, reversing changes made to d4089cc.
…re/feature/appl-silicon-support"" This reverts commit 042b18acf45808082dfb48cc7ef01ea3bfc92039.
This PR cherry picks the Apple Silicon support added by the following Bitcoin PR: bitcoin/bitcoin#21851
Additionally, the PR updates to the latest version of the Boost library to resolve compilation errors due to deprecated Boost calls.
This resolves issue #111