Error compiling for board Arduino Uno - Sorry - again

Hello... I'm sorry to post such a basic thing, but I'm finding this error hard to decypher. I'm getting it whenever I upload anything to my board. It was working fine, and then it just stopped. I since upgraded my Arduino software, and now can't do anything.

Here's the error I'm getting. My port and board are set to Arduino Uno.

Arduino: 1.8.19 (Mac OS X), Board: "Arduino Uno"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/simon/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/simon/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/simon/Documents/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path /var/folders/9j/l3ljz8tj4vb2wd9jcxcm4qlc0000gn/T/arduino_build_408763 -warnings=none -build-cache /var/folders/9j/l3ljz8tj4vb2wd9jcxcm4qlc0000gn/T/arduino_cache_330900 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/Users/simon/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/Users/simon/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/Users/simon/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/simon/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/Users/simon/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/simon/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /Users/simon/Documents/Arduino/Cylon_Copy/Cylon_Copy.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/simon/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/simon/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/simon/Documents/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path /var/folders/9j/l3ljz8tj4vb2wd9jcxcm4qlc0000gn/T/arduino_build_408763 -warnings=none -build-cache /var/folders/9j/l3ljz8tj4vb2wd9jcxcm4qlc0000gn/T/arduino_cache_330900 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=/Users/simon/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/Users/simon/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avrdude.path=/Users/simon/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/simon/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=/Users/simon/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/simon/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /Users/simon/Documents/Arduino/Cylon_Copy/Cylon_Copy.ino
Using board 'uno' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
/Users/simon/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=10819 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard /var/folders/9j/l3ljz8tj4vb2wd9jcxcm4qlc0000gn/T/arduino_build_408763/sketch/Cylon_Copy.ino.cpp -o /dev/null
fork/exec /Users/simon/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++: no such file or directory
Error compiling for board Arduino Uno.

The only advise that I can give is to check if that file exists.

That's so weird. I can't find it. I've tried uninstalling and installing the software, but it's still referencing the same file.

OK... I found the Library folder. Yeah... the avr-g++ file doesn't exist. Troubleshooting! Thanks sterretje!

So you can now compile?

No... not yet. I'm trying to figure out what's requiring that file. I downgraded the board manager, and I'm still getting the same error.

Nearly everything requires that file; it's the compiler.

Google may help: mac Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ - Google Search

You will have to dig through the topics; I have never encountered the problem and I don't have a Mac to look at it. avr-g++: no such file or directory - #4 by pert worked for the user that had the problem, it might help for you.

2 Likes

Wooohoo! Thanks for helping me out with that. If I could, I'd send you a sticker! :grinning:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.