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

feat: support for M1 macs (arm64) #1438

Open
jsladerman opened this issue Oct 5, 2021 · 9 comments
Open

feat: support for M1 macs (arm64) #1438

jsladerman opened this issue Oct 5, 2021 · 9 comments
Labels
dependencies Pull requests that update a dependency file Developer_Experience documentation Improvements or additions to documentation enhancement New feature or request good-first-issue Good for newcomers good-first-issue-400-expert Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label. Nice-to-Have SPIKE Exploratory work to better scope additional effort

Comments

@jsladerman
Copy link
Contributor

Is your feature request related to a problem? Please describe.
All Docker images are currently built for x86, so it is difficult to run Cactus on ARM-based machines (M1 Macs, e.g.)

Describe the solution you'd like
Additional builds for ARM, or a more streamlined way to create them manually.

Describe alternatives you've considered
For M1 Macs with Rosetta2 installed, the Cactus packages themselves can be built successfully. However, it does seem to require a workaround which involves installing an intel-based version of git and npm (which Rosetta2 then translates) before going through the normal steps in BUILD.MD.

Unfortunately, due to the precompiled binaries and images that are pulled, the scripts that utilize test ledgers cannot currently run on ARM-based machines. Exploring potential fixes for this- one solution could be just manually creating ARM versions of the images for the sake of running Cactus tests and example applications.

@jsladerman jsladerman added the enhancement New feature or request label Oct 5, 2021
@petermetz petermetz added dependencies Pull requests that update a dependency file Developer_Experience documentation Improvements or additions to documentation good-first-issue Good for newcomers good-first-issue-400-expert Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label. Nice-to-Have SPIKE Exploratory work to better scope additional effort labels Oct 6, 2021
@petermetz
Copy link
Member

@RafaelAPB
Copy link
Contributor

@petermetz any idea if reproducing what Sean and @ryjones did on the solang image would work for our images as well?

@RafaelAPB
Copy link
Contributor

The faio2, qaio, baio images are not supported by M1 Macs

@ryjones
Copy link
Member

ryjones commented Mar 3, 2022

@RafaelAPB would it make sense to build the ones you can on ARM?

@petermetz
Copy link
Member

petermetz commented Apr 9, 2022

@petermetz any idea if reproducing what Sean and @ryjones did on the solang image would work for our images as well?

@RafaelAPB Sorry for the slow response. The answer is yes, that is exactly what we want for all of our images so that it's entirely transparent to both Mac ARM users and everyone else.

@petermetz
Copy link
Member

@RafaelAPB would it make sense to build the ones you can on ARM?

@ryjones @RafaelAPB Yes, it would, but ultimately I'd like all of our images to be supported on all the platforms anyway. It's just a lot of work that needs to be done, but we'll get to it for sure. :-)

@RafaelAPB
Copy link
Contributor

@petermetz @ryjones sorry for the late answer. Yes, ultimately it would be better if we supported ARM as well. Some of the test ledgers run fine on both supports though (Substrate/Polkadot test ledger for instance)

@petermetz
Copy link
Member

petermetz commented Nov 23, 2022

Note to self: rent something1 in the cloud and update the build process docs & readme to make sure we properly support M1

@ryjones
Copy link
Member

ryjones commented Nov 23, 2022

@petermetz we already have an M1 mac at MacStadium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Developer_Experience documentation Improvements or additions to documentation enhancement New feature or request good-first-issue Good for newcomers good-first-issue-400-expert Hacktoberfest Hacktoberfest participants are welcome to take a stab at issues marked with this label. Nice-to-Have SPIKE Exploratory work to better scope additional effort
Projects
None yet
Development

No branches or pull requests

4 participants