Apple Silicon install uses Intel architecture avr-g++

@ ptillisch

Back in March 2023, I made a post that the Apple Silicon install of the IDE contains an Intel architecture avg-g++, not an Apple Silicon version. The response was that GitHub Actions did not provide Apple Silicon runners yet, meaning the team could not build a native version of the toolchain.

I just wanted to let the team know that as of the beginning of October, Apple Silicon runners are available in public beta form. Hopefully, this helps the team get closer to having a fully native toolchain.

Thank you!

1 Like

Thanks @ccashman.

There hasn't been any work on the build system for the firmware toolchains, but we did incorporate the Apple Silicon runner into the build system for the Arduino IDE application as soon as it became available:

It was so nice to finally automate this as the Apple Silicon builds were previously produced manually by the project maintainers, which was the source of a lot of inefficiency in the release workflow. We are now back to being able to make a release build of Arduino IDE by simply pushing a Git tag to the repository.

GitHub does charge for the use of this runner, even in public repositories where the macOS x86 and other runners are free. But the cost is quite reasonable and significantly less than the AWS EC2 instance I had evaluated as a solution before the hosted GitHub Actions runner became available. Despite it still being in "beta" status, there hasn't been any problems at all.

Any idea when the firmware toolchain might be addressed? That is, is it on the schedule for somewhen, or has it not been scheduled yet?

1 Like

I bought a used M1 MacBook for programming my Arduino Nano RP2040 for maximum compatibility as both devices use Arm architecture and I was surprised I still needed to install x86 compatibility layer (Rosetta 2) :sweat_smile:

I'm happy Arduino Team is working on supporting Rosetta-free Arm toolchain, I love Arduino and Arm so much :heart:

1 Like

I've gotten c code to compile and run outside of the Arduino IDE on my M2 Mac via homebrew installed packages. I'd love to be able to bring-your-own-compiler or configure the IDE to use the system/homebrew installed compilers/tools (avr-g++, avrdude, avr-objcopy). Maybe this is possible, if so I could not find it. Any other known workarounds out there minus Rosetta?

1 Like

The task of producing builds of the AVR toolchain for Apple Silicon hosts is tracked by the Arduino developers here:

If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:

image

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.