Problem Compiling Code Which Would Have Previously Compiled (Solved)

I've been using Arduino for a while now, however suddenly I have been receiving the error message:

Arduino: 1.8.19 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

fork/exec /Users/ryanwilson/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 Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This happens for all boards, including Arduino UNO also, and happens with all code which would have previously been compiled fine. I have attempted to reinstall the Arduino IDE, but this hasn't worked.

Thanks so much for your help

Assume you have tried a new USB cable ?

Yes- I have tried multiple cables and the result is the same.

Take a look on the drive and see what is at the path mentioned.

Ensure your libraries are seen by the IDE, not just the #include in your code, but via the dropdowns at the top of the IDE.

this seems to be the right path on a Mac.

I've this in my Home/Library

can you check if you have the same?

For any of my code which makes use of libraries, the libraries are seen in the dropdown menu. Also, even code which does not make use of libraries still has this issue.

I do not have the avr-g++ file. This must be causing my problem- How do I go about adding this file?

up to where the path works? can you show what you have?

removing the AVR package and reinstalling it should fix it.
or delete the whole Arduino15 directory and go for a full IDE reinstall, including all the platforms you want to support.


This is what I have

weird it's gone !

removing the AVR package and reinstalling it from the board menu should fix it.

or delete the whole Arduino15 directory and go for a full IDE reinstall, including all the platforms you want to support.

Thank you so much for your help! I really appreciate it. I can't figure out for the life of me how that file disappeared!

mine did, too, a month ago. i think mine happened when i uninstalled a different app.

I was uninstalling some software also, and was moving it onto a portable drive to free up space on my computer. This could have been the cause.

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