IDE does not run on MacBook Pro

On a new MacBook Pro, ide (latest) connecting to new Due, I get, "fork/exec /Users/kimrubin/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: bad CPU type in executable

Compilation error: fork/exec /Users/kimrubin/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: bad CPU type in executable.

Board, IDE and sketches works fine on my older Mac. Ideas?

Hi @kimrubin7. This error is caused by the GCC compiler build that is distributed by Arduino having been built for the x86 (AKA "Intel") CPU architecture, while the CPU on your Mac has the Apple Silicon architecture.

Fortunately this is not a real problem because Apple provides the Rosetta 2 translator, which allows x86 binaries to run on Apple Silicon machines. You only need to install Rosetta 2 to solve this problem.

You can follow the instructions here to install it:

https://support.arduino.cc/hc/en-us/articles/7765785712156-Error-bad-CPU-type-in-executable-on-macOS#if-your-mac-computer-has-an-apple-silicon-processor

I moved your topic to an appropriate forum category @kimrubin7.

In the future, when creating a topic please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

That works great! Not what ANY AI said to do. Apple even says "Rosetta in installed on all new Macs" ! Now it works. Many zen points for you !!

What category should I have used? I picked "developer.'

You are welcome. I'm glad it is working now.

Regards, Per

I chose the Development Tools > IDE 2.x category as the most appropriate. Even though the problem is with the GCC compiler's interaction with the operating system, and not directly related to the Arduino IDE application, we typically use this category for topics related to the board toolchains, since Arduino IDE installs the toolchains and invokes the tools.

You chose the Development Tools > Uncategorized category. The description of that category is

DO NOT USE! Please select the appropriate category for your topic.

If you had checked the "About the Uncategorized category" topic, you would have seen even more information about why you should not use that category:

Of course, you could also download the Apple-specific version that will run faster.