Commit 52ec107
authored
Add article re: "bad CPU type in executable" error (#172)
We saw a spike in reports of this error following the recent release of the native Apple Silicon build of Arduino IDE.
Investigation showed that the affected users did not have the Rosetta 2 translation software required to run executables
built for x86 (AKA "Intel") host architecture on Apple Silicon machines.
Previously, this condition was not likely to occurr because macOS shows a dialog when the user starts an x86 application
if Rosetta 2 is not already installed. But it turns out macOS doesn't do that if the x86 executable is run by a
subprocess. So users of the Apple Silicon build of Arduino IDE do not get the dialog when starting Arduino IDE, since
the application itself does not require Rosetta 2, but when Arduino IDE executes one of the helper tools (e.g., avr-gcc)
that is not built for Apple Silicon, the process fails with the "bad CPU in executable" error.
The solution is for the user to manually install Rosetta 2. Instructions for that are provided here.
The article is intended to be a comprehensive guide to solving the "bad CPU type in executable" error. This error may
occur under other conditions than the one described above, so instructions for the resolution of the error as it occurs
under those other conditions are also included.1 parent 02c473e commit 52ec107
File tree
2 files changed
+51
-0
lines changed- content/Software Support/Installation
- img
2 files changed
+51
-0
lines changedLines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments