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

Apple Silicon M1 support? #2329

Closed
Sajjon opened this issue May 3, 2021 · 11 comments
Closed

Apple Silicon M1 support? #2329

Sajjon opened this issue May 3, 2021 · 11 comments

Comments

@Sajjon
Copy link
Contributor

Sajjon commented May 3, 2021

I would like to know if Lighthouse supports Apple Silicon M1 chip?

@estensen
Copy link
Contributor

estensen commented May 3, 2021

Not natively, but Lighthouse runs great with Rosetta

@michaelsproul
Copy link
Member

It looks like we're mainly blocked on M1 support in the Rust compiler, which should hopefully appear in the next year or so: rust-lang/rust#73908

If anyone with an M1 Mac would like to try compiling Lighthouse with the existing tier 2 support, you might be able to follow a similar process to the one described here: BurntSushi/ripgrep#1737. Although, warning, here be dragons. This would mostly be for interest's sake (we can't support M1 until we have it on CI).

@cjuha
Copy link

cjuha commented May 10, 2021

I have been running Lighthouse compiled on rustc 1.51.0 (stable-aarch64-apple-darwin) successfully on a M1 Mac Mini. Lighthouse has compiled without problems to an arm64 binary since around version 1.1.1, and has been rock stable since version 1.2.2.

@Sajjon
Copy link
Contributor Author

Sajjon commented May 11, 2021

@cjuha Do you mean that you'r running Eth 2.0 beacon chain with 32 ETH staked using Lighthouse with you M1 machine?

Or do you mean you have been running Lighthouse for bit and then shut it down, but not felt confident enough to actually stake your 32 ETH with it?

I'm contemplating on starting staking now on my M1 Mac mini or if I should wait until support... seams more offical/stable.

Thanks!

@cjuha
Copy link

cjuha commented May 11, 2021

@Sajjon I am staking with the M1 Mac Mini, and have been doing so for several months now. Since Lighthouse version 1.2.2, validator average effectiveness (as reported by Beaconcha.in) has constantly been 98-100%. I have been greatly liking the fact that the machine is very stable, silent, and energy efficient. I can see these becoming popular validator boxes in the future once the platform matures.

In case you want to hear more details, I'm present at the Lighthouse Discord server with this same nickname 🙂

@paulmillr
Copy link

Hey folks, this would be awesome to have. The chips are extremely efficient and silent. Nimbus already provides official binaries, now it's lighthouse turn!

@Sajjon
Copy link
Contributor Author

Sajjon commented Aug 15, 2021

@paulmillr Ive been running Lighthouse on my M1 for over three months now and it is super stable. I have 100% attestation rate.

@paulhauner
Copy link
Member

paulhauner commented Aug 17, 2021

@paulmillr Ive been running Lighthouse on my M1 for over three months now and it is super stable. I have 100% attestation rate.

Good to hear, thanks for the feedback @Sajjon Are you using the aarch64 binaries we're publish with the releases, or building your own please?

Note: edited because I tagged the wrong person. Sorry.

@paulmillr
Copy link

@paulhauner aarch64 binaries you're publishing don't work with M1. aarch64 != arm64. See the outputs of file for lighthouse and for proper M1 app:

./lighthouse: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, BuildID[sha1]=96e8fd21b8f37397b70929aa550c25ecbdadfaac, with debug_info, not stripped

xcode (for architecture arm64):	Mach-O 64-bit executable arm64

@jtomanik
Copy link

For anyone interested in running lighthouse on M1.
I'm trying to submit a homebrew formula for lighthouse:
Homebrew/homebrew-core#82893

That would allow anyone to get it via brew install lighthouse but for the moment it's blocked until 1.5.0

@riptl
Copy link
Contributor

riptl commented Dec 26, 2021

I have picked up and finished @jtomanik's work.
Lighthouse is now available on Homebrew: https://formulae.brew.sh/formula/lighthouse

EDIT: Any M1 users are welcome to test.

riptl pushed a commit to riptl/lighthouse that referenced this issue Dec 26, 2021
Resolves sigp#2329

Documents the recently added `lighthouse` Homebrew formula.

NA
riptl pushed a commit to riptl/lighthouse that referenced this issue Jan 7, 2022
Resolves sigp#2329

Documents the recently added `lighthouse` Homebrew formula.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants