This sort of error could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation to see if the problem goes away, then turn the antivirus back on. If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to whitelist the appropriate file, folder, or process so it doesn't interfere with compilation.
If the Pack version is not critical to the application: > click Change version > select Use the latest version (or
select another version which is already installed).
If the Pack version is critical, download and install the Pack indicated by Current Version: Tools > Device Pack Manager.
flounder:
I just downloaded 1.8.8, and have the same problem. Here's the output with verbose compilation
fork/exec /Users/flounder/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++: no such file or directory
That's a different problem. Usually the solution is to delete the Arduino15 folder (/Users/flounder/Library/Arduino15 in your case). Note that will cause you to lose any boards you have installed via Boards Manager and your preferences settings. The former is not that big of a deal (other than taking some time and bandwidth) because you can simply reinstall them. The latter may be annoying, especially if you have very customized preferences. You can save the file /Users/flounder/Library/Arduino15/preferences.txt somewhere safe before deleting the Arduino15 folder and then replace the file after if you want to preserve your preferences. Other than that, there should not be anything precious in the Arduino15 folder. However, it's always a good idea to make a backup before deleting things, just to be safe.
Well, I went looking for users/flounder/Library/Arduino15 and it does not seem to exist. At least, as far as Finder is concerned. Apparently there is no way to actually insert an image, or I could show you the screenshot of what Finder is showing. But in ..../flounder I found Google Drive and Macbook Pro, and the last I looked, sorting alphabetically by name, Library should have been between these two.
When I downloaded 1.8.8, I found that there were a lot of board updates, so I loaded them into 1.8.8; similarly for the libraries. My assumption was that there should have been an Arduino18 directory, and I needed to reconfigure the IDE to refer to the (new) set of directories. But I couldn't find Library, or anything that suggested how to redirect to another directory, so I found myself stuck. The table below is a tedious reproduction; the elements in red are the ones highlighted in finder. Note that if I select Library (in the second column), it has no folders starting with "Arduino".
flounder:
Well, I went looking for users/flounder/Library/Arduino15 and it does not seem to exist. At least, as far as Finder is concerned.
It's there, but Finder is hiding it from you.
flounder:
My assumption was that there should have been an Arduino18 directory, and I needed to reconfigure the IDE to refer to the (new) set of directories.
No. There's no "Arduino18" directory. Modern IDE versions (1.5.x and newer) use the Arduino15 directory, older IDE versions use the Arduino directory.
How to fix avr-g++: error: device-specs/specs-atmega328p: No such file or directory
1.Search --> Edit the system environment variables
2.In page System Properties (Advanced)
3.Open Enviroment Variables...
4.In System variables find GCC and delete. Finish
Good afternoon! I haven't started my experiments with Arduino yet, I have the same problem and the same error.Please help me. Detailed compilation in the attached file.Thanks!