Skip to content

Feature request: Support macOS arm64 #348

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

Closed
colin-pm opened this issue Mar 8, 2022 · 5 comments
Closed

Feature request: Support macOS arm64 #348

colin-pm opened this issue Mar 8, 2022 · 5 comments
Assignees
Labels
architecture: arm Specific to ARM host architecture conclusion: moved Issue/PR moved to another repository os: macos Specific to macOS operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project

Comments

@colin-pm
Copy link

colin-pm commented Mar 8, 2022

It would be nice to release a version for MacOS arm64 to support the new M1 architecture Macs.

I would be happy to contribute and help test/verify if needed! 😃

@per1234
Copy link
Contributor

per1234 commented Mar 8, 2022

Hi @colin-pm. I don't own a Mac M1, but my understanding is that the x86-64 build we provide already should work fine on these machines using Rosetta 2 mode.

Have you had problems using Arduino Lint sourced from the "macOS 64 bit" download links shown on the "Installation" page?:

https://arduino.github.io/arduino-lint/latest/installation/#latest-release

@per1234 per1234 added architecture: arm Specific to ARM host architecture os: macos Specific to macOS operating system status: waiting for information More information must be provided before work can proceed topic: infrastructure Related to project infrastructure labels Mar 8, 2022
@colin-pm
Copy link
Author

colin-pm commented Mar 8, 2022

I ended up building from source, which worked fine for me. I did just download the Mac x86-64 binary and it appears to work as well.

The only issue I see is the install.sh script errors because getFile returns no binary for macOS arm64. So either hosting a binary for the macOS arm64 download path or modifying the install.sh script would provide support for M1 devices in my mind.

@per1234 per1234 added type: imperfection Perceived defect in any part of project and removed status: waiting for information More information must be provided before work can proceed labels Mar 8, 2022
@per1234
Copy link
Contributor

per1234 commented Mar 9, 2022

I ended up building from source, which worked fine for me. I did just download the Mac x86-64 binary and it appears to work as well.

I'm very glad to hear this!

the install.sh script errors because getFile returns no binary for macOS arm64

Thanks so much for bringing this to our attention. Although the installation script is automatically tested, including on a macOS x86-64 machine, the GitHub Actions system used for the test does not currently have M1 runners, so that is a gap in the test coverage.

The installation script is maintained in a separate repository, so I have opened a dedicated bug report about this problem there:

arduino/tooling-project-assets#207

Once it is resolved upstream, that will be pulled back into this repository as well as the other projects using the script.

Since it seems no action needs to be taken in the code hosted in the Arduino Lint repository, I'll go ahead and close this issue.

Regards, Per

@per1234 per1234 closed this as completed Mar 9, 2022
@per1234 per1234 added the conclusion: moved Issue/PR moved to another repository label Mar 9, 2022
@per1234 per1234 self-assigned this Mar 10, 2022
@per1234
Copy link
Contributor

per1234 commented May 2, 2022

Hello again @colin-pm. I just wanted to share an update that the deficiency in the installation script has now been resolved and it should now be possible to use on M1 machines: #376

@per1234
Copy link
Contributor

per1234 commented Jul 5, 2022

Hello yet again @colin-pm. I have some good news. There are now native macOS ARM 64-bit builds of Arduino Lint for the Apple M1-based machines (#409).

There hasn't been a production release of Arduino Lint since the build system was updated, but nightly builds are already available. The link is here if you want to give it a try:

https://arduino.github.io/arduino-lint/dev/installation/#nightly-builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture: arm Specific to ARM host architecture conclusion: moved Issue/PR moved to another repository os: macos Specific to macOS operating system topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants