You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
TL;DR:
All I had to do to build from source on an M1 Mac is adding this line to [dependencies] in programs/bpf_loader/Cargo.toml:
openssl = { version = "0.10", features = ["vendored"] }
Problem
There's a problem when developing for Solana on an M1 Mac as is evident by various issues on here (e.g. #19743 or #17406) or by others on Stack Overflow. There's not really a good solution, the commonly accepted one seems to be to use Rosetta and reinstall the whole toolchain. I didn't want to go down that route so I tried cloning the repo and compiling from scratch.
Proposed Solution
I already had brew install openssl and brew install coreutils (due to the greadlink dependency in cargo_install_all.sh). The only thing I needed to change was adding openssl as a dependency to Cargo.toml in bpf_loader as mentioned above.
I'm new to Solana and I don't know enough to send a PR, but I was hoping you could incorporate this to offer native M1 builds for the community.
The text was updated successfully, but these errors were encountered:
It turns out that the openssl crate people fixed the homebrew integration back in February. Sent you a PR that just bumps the version and seems to work.
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.
TL;DR:
All I had to do to build from source on an M1 Mac is adding this line to
[dependencies]
inprograms/bpf_loader/Cargo.toml
:Problem
There's a problem when developing for Solana on an M1 Mac as is evident by various issues on here (e.g. #19743 or #17406) or by others on Stack Overflow. There's not really a good solution, the commonly accepted one seems to be to use Rosetta and reinstall the whole toolchain. I didn't want to go down that route so I tried cloning the repo and compiling from scratch.
Proposed Solution
I already had
brew install openssl
andbrew install coreutils
(due to thegreadlink
dependency incargo_install_all.sh
). The only thing I needed to change was adding openssl as a dependency to Cargo.toml inbpf_loader
as mentioned above.I'm new to Solana and I don't know enough to send a PR, but I was hoping you could incorporate this to offer native M1 builds for the community.
The text was updated successfully, but these errors were encountered: