We have an Arduino Uno R3 and a MacBook Air running Sonoma 14.3. When I attempt to upload the Blink example sketch to the Arduino we get an error 'bad CPU type in executable.'
Reading the forums for a bit there is a suggestion that we may need to use Rosetta, however, looking at the documentation for installing Rosetta, it doesn't appear we need to.
I'm going to ask you to provide the full verbose output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Check the box next to "Show verbose output during: ☐ compile" in the "Preferences" dialog.
Check the box next to Show verbose output during: ☐ upload.
Click the "OK" button.
The "Preferences" dialog will close.
Attempt an upload, as you did before.
Wait for the upload to fail.
You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the error output from the upload into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Click the "Reply" button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:
Open a forum reply here by clicking the "Reply" button.
Click the "Upload" icon () on the post composer toolbar:
The "Open" dialog will open.
Select the .txt file you saved from the "Open" dialog.
Click the "Open" button.
The dialog will close.
Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: /Users/speightfamily/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /Users/speightfamily/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Detecting libraries used...
/Users/speightfamily/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/speightfamily/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/speightfamily/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard /private/var/folders/l3/6lvlfl4d68g_17rcjfvvvc300000gn/T/arduino/sketches/423EC0F1E250670B97BC40A8A84DE7BC/sketch/Blink.ino.cpp -o /dev/null
fork/exec /Users/speightfamily/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: bad CPU type in executable
Compilation error: fork/exec /Users/speightfamily/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: bad CPU type in executable
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: /Users/theodorbode/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /Users/theodorbode/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Verwendete Bibliotheken erkennen ...
/Users/theodorbode/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Users/theodorbode/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/theodorbode/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard /private/var/folders/yb/9n96hp0x21b5gz511c4crr140000gp/T/arduino/sketches/BB5F5E76F5BF2EE6FA60035BD7607EE3/sketch/sketch_jul31a.ino.cpp -o /dev/null
fork/exec /Users/theodorbode/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: bad CPU type in executable
Compilation error: fork/exec /Users/theodorbode/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: bad CPU type in executable