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

tilt: m1 flag #4175

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

evan-gray
Copy link
Contributor

This PR adds support for solana-test-validator within Docker / Tilt for M-series Macs. This is useful for downstream projects such as NTT which rely on a subset of the tilt setup for e2e testing. It may also benefit contributors who wish to run a minimal tilt setup on their Macs.

The key hold up was Rosetta 2 lacking AVX instruction support, which solana-test-validator relies upon. Everything would compile as amd64 but would not run. Further complicating efforts, there is not a pre-built binary for linux/aarch64. Unlike prior attempts to build the entire solana dependency under aarch64, this simply swaps out the binary used.

This same shortcoming may also prevent some other chains from running, such as Near. Further work could be done to provide aarch64 alternative dockerfiles for the relevant images which do not run properly as amd64 with Rosetta 2.

@evan-gray evan-gray force-pushed the solana-m1-redux branch 3 times, most recently from b659585 to 0cfabbc Compare November 29, 2024 20:36
@evan-gray evan-gray marked this pull request as draft November 30, 2024 14:19
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

Successfully merging this pull request may close these issues.

1 participant