Problems with Arduino IDE 2.0.3 on Ventura

fdaniels

Well-known member
Moin,

im trying to get Arduino IDE 2.0.3 running on my shiny new MB Air M2 running Ventura 13.2.1, i installed the IDE and Teensiduino 1.57.2 and now im getting this message:


Code:
fork/exec /Users/frankdaniels/Library/Arduino15/packages/teensy/tools/teensy-compile/5.4.1/arm/bin/arm-none-eabi-g++: bad CPU type in executable

Compilation error: fork/exec /Users/frankdaniels/Library/Arduino15/packages/teensy/tools/teensy-compile/5.4.1/arm/bin/arm-none-eabi-g++: bad CPU type in executable

What did i do wrong and how do i get it going?

In advance many thanks for your time,
Frank
 
In Boards Manager, search for "Teensy", then use the drop-down list to change to version 0.58.3. We're numbering the newer beta versions with 0.x.x so the IDE doesn't suggest them as upgrades. Even though the number looks older, it is indeed a new version with new toolchain.

Does 0.58.3 work?
 
Does 0.58.3 work?

Thanks for your superfast reply, but sadly, no:

Code:
fork/exec /Users/frankdaniels/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1-beta2/arm/bin/arm-none-eabi-g++: bad CPU type in executable

Compilation error: fork/exec /Users/frankdaniels/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1-beta2/arm/bin/arm-none-eabi-g++: bad CPU type in executable
 
Installing Rosetta manually did the Trick! Arduino IDE runs on M2 native, Teensyduino obviously doesnt - i guess Ventura doesnt know because it only sees Arduino IDE so it doesnt install Rosetta automatically. Maybe you like to add a hint on the Website?
 
@PaulStoffregen Setting up a new MacMini M4 for my shop computer. Getting the same error as the first post. I didn't need to add Rosetta (that I remember) for my M3 MacBook Pro. Is Rosetta still needed? Downloaded the 64 bit image of Arduino for Mac (Apple Silicon).

Version: 2.3.6
Date: 2025-04-09T11:22:51.016Z
CLI Version: 1.2.0

Copyright © 2025 Arduino SA
arduino-ide_2.3.6_macOS_arm64.dmg

Full error with personal info extracted

Code:
FQBN: teensy:avr:teensy41
Using board 'teensy41' from platform in folder: ~/Library/Arduino15/packages/teensy/hardware/avr/1.58.2
Using core 'teensy4' from platform in folder: ~/Library/Arduino15/packages/teensy/hardware/avr/1.58.2

Detecting libraries used...
~/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=158 -DARDUINO=10607 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I~/Library/Arduino15/packages/teensy/hardware/avr/1.58.2/cores/teensy4 ~/Library/Caches/arduino/sketches/C798958FCBDCA6AB7A9C28AB1D2FD52A/sketch/teensy-electronic-lead-screw.ino.cpp -o /dev/null
fork/exec ~/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++: bad CPU type in executable

Compilation error: fork/exec ~/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++: bad CPU type in executable

Code:
% pgrep -q oahd && echo "Rosetta 2 installed" || echo "Rosetta 2 not installed"
Rosetta 2 not installed

Workaround is to install Rosetta 2? I installed the native Apple Silicon Arduino IDE. Do I need to remove it and install the Intel version?

Is Rosetta 2 is still needed for Teensy to work? Soon Apple will drop all support for Intel processors, they are working on their 6th and 7th generation of Apple Silicon at this point. The M5's are coming out soon.

Edit: It seems I installed Rosetta 2 on my M3 MacBook Pro. Maybe I had to install it for Teensy? Don't remember, as that was a couple of years ago.
 
Last edited:
Back
Top