avr-g++: error: C:\Users\Sadik Anil\AppData\Local\Temp\arduino\sketches\69906C4B3D49A672C35B57446F9A78F5\sketch\Blink.ino.cpp: No such file or directory
avr-g++: warning: '-x c++' after last input file has no effect
avr-g++: error: device-specs/specs-atmega328p: No such file or directory
exit status 1
Compilation error: exit status 1
Hey, I need help with this error. I cant't solve it! I try to relocate the sketchbook, reintalled 2 times but I'm getting this error. I reset my pc a while ago and reupload the IDE after it started this error.
- Close the IDE if it's open
- Delete the directory
C:\Users\Sadik Anil\AppData\Local\Temp\arduino\sketches\69906C4B3D49A672C35B57446F9A78F5
.
I would actually delete all sub directories under C:\Users\Sadik Anil\AppData\Local\Temp\arduino\sketches
and C:\Users\Sadik Anil\AppData\Local\Temp\arduino\cores
.
- Start the IDE and check if the problem is solved.
- If not, I would try the following step
- Close the IDE.
- Delete the directory
C:\Users\Sadik Anil\AppData\Roaming\arduino-ide
.
- Start the IDE.
Does the file C:\Users\Sadik Anil\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\lib\gcc\avr\7.3.0\device-specs\specs-atmega328p
or C:\Users\Sadik Anil\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\lib\gcc\avr\7.3.0\device-specsspecs-atmega328p
exist?
If you don't come right, please enable verbose output during compilation in file/preferences in the IDE and compile. Post the output here using code tags (as described in https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966#use-code-tagsuse-code-tags-24; ignore that it refers to code).
can you redirect me I reseted(deleted all files) my pc again and dowload the 1.8.19 version of IDE. The error is:
avr-g++: error: C:\Users\Sadik\AppData\Local\Temp\arduino_build_488936\sketch\func_gen_0.0.3.ino.cpp: No such file or directory
avr-g++: warning: '-x c++' after last input file has no effect
avr-g++: fatal error: no input files
compilation terminated.
exit status 1
Error compiling for board Arduino Uno.
I couldn't understand why this happening
Before going that way, I would try to downgrade the AVR board package to 1.8.3 using library manager and next upgrade to AVR 1.8.6 again.
Note that a normal IDE 1.x install will use the same files in the arduino15 directory as IDE 2.x does so it might not help. It will work if you create a portable install of1.8.19. You will need to download the ZIP version, unpack it and create a portable directory in the extracted directory. Next you can start the IDE. I've installed various ones but this is an example in C:\Users\bugge\OneDrive\Documents\ArduinoIDE\1_arduino-1.8.19.generic
. Below a screenshot of what it looks like; the portable directory is at the same level as the executable.