Hello ,
I am using an Apple MacBookPro M4, a Arduino Uno R3 and the 2.3.6 IDE.
I could not get the code to compile and got the classic "Bad CPU Type" message.
I tried to change gcc to a compatible version (chatgpt helped me on that one) but I still had errors after.
So I ended up installing rosetta. I re-installed the IDE.
And now I got a simple "exit status 1" and "compilation error: exit status 1".
After a day of work, it is still not working.
Can anybody help ?
Could you paste here (with code tags) the verbose error log you get after trying a simple sketch with verbose output enabled?
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: /Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Detecting libraries used...
/Users/pierrepfister/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/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard /Users/pierrepfister/Library/Caches/arduino/sketches/46C5FC6028C3617B53EFC68786716F3F/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/Library/Developer/CommandLineTools/usr/bin/ctags: illegal option -- -
usage: ctags [-BFTaduwvx] [-f tagsfile] file ...
/Users/pierrepfister/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/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard /Users/pierrepfister/Library/Caches/arduino/sketches/46C5FC6028C3617B53EFC68786716F3F/sketch/Blink.ino.cpp -o /private/var/folders/f7/h7wgks0j2xxc43yv35_7zj2c0000gn/T/1596943885/sketch_merged.cpp
/Users/pierrepfister/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/f7/h7wgks0j2xxc43yv35_7zj2c0000gn/T/1596943885/sketch_merged.cpp
exit status 1
Compilation error: exit status 1
I just posted the verbose output. Many thanks
I think that the same situation was posted and resolved? yesterday. I will try to find, but I'm not sure what to search for. Anyone else remember? I think it's a known issue with maybe a workaround?
The fix yesterday was to delete the 3 arduino folders. I am assuming you have source code backups.
1 and 2 are the hidden folders under (user) called .arduinoIDE and optionally .arduino-create NOTE the . (period) that makes them hidden so you need Shift Cmd . (period) in your user folder.
The last folder is the install and it is at (user)/Library/Arduino15
Many many thanks, I will try that tonight.
I only have .arduinoIDE and I deleted it. But I still have the issue.
I am missing something.
But you also deleted the Arduino15, that is the main directory. The .arduino-create will only be there if you installed the IoT agent. Show us the verbose output again.
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: /Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Detecting libraries used...
/Users/pierrepfister/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/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard /Users/pierrepfister/Library/Caches/arduino/sketches/AEEC095FA614FE2BAFC2D62EBC4C6D74/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/Library/Developer/CommandLineTools/usr/bin/ctags: illegal option -- -
usage: ctags [-BFTaduwvx] [-f tagsfile] file ...
/Users/pierrepfister/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/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard /Users/pierrepfister/Library/Caches/arduino/sketches/AEEC095FA614FE2BAFC2D62EBC4C6D74/sketch/Blink.ino.cpp -o /private/var/folders/f7/h7wgks0j2xxc43yv35_7zj2c0000gn/T/2211736486/sketch_merged.cpp
/Users/pierrepfister/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/f7/h7wgks0j2xxc43yv35_7zj2c0000gn/T/2211736486/sketch_merged.cpp
exit status 1
Compilation error: exit status 1
Please edit your post and wrap the code in code tags. ^^^
FQBN: arduino:avr:uno
Using board 'uno' from platform in folder: /Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Using core 'arduino' from platform in folder: /Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6
Detecting libraries used...
/Users/pierrepfister/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/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard /Users/pierrepfister/Library/Caches/arduino/sketches/AEEC095FA614FE2BAFC2D62EBC4C6D74/sketch/Blink.ino.cpp -o /dev/null
Generating function prototypes...
/Library/Developer/CommandLineTools/usr/bin/ctags: illegal option -- -
usage: ctags [-BFTaduwvx] [-f tagsfile] file ...
/Users/pierrepfister/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/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino -I/Users/pierrepfister/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/variants/standard /Users/pierrepfister/Library/Caches/arduino/sketches/AEEC095FA614FE2BAFC2D62EBC4C6D74/sketch/Blink.ino.cpp -o /private/var/folders/f7/h7wgks0j2xxc43yv35_7zj2c0000gn/T/435250360/sketch_merged.cpp
/Users/pierrepfister/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/f7/h7wgks0j2xxc43yv35_7zj2c0000gn/T/435250360/sketch_merged.cpp
exit status 1
Compilation error: exit status 1
Sorry I hope this is better
You need to do it again with Prefs set to verbose, the error is not visible yet.
I forgot to add, post your code in code tags so we can try it too.
Did you do an uninstall/delete 3 folders after that silly ChatGPT nonsense?
Delete Arduino15, and the one or two hidden dirs as seen in the pic then install the proper Apple Silicon version, you already have Rosetta2.
The hidden dirs are in your User folder and the .arduino-create will not be there if you haven't installed the cloud agent yet.
(user)/Library/Arduino15 will delete everything so then install the idE and any boards you need.
My code is pretty straightforward. This is the blink example.
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:
https://docs.arduino.cc/hardware/
modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman
This example code is in the public domain.
https://docs.arduino.cc/built-in-examples/basics/Blink/
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Sorry, I did not erase everything properly. I reinstalled everything and TADA ! it is working.
I am so grateful.
Many many thanks from Paris, France
Have you marked post#16 as the solution?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

