Just had a new laptop and loaded new IDE and now get this message regardless of board type or sketch. The Documents/Arduino directory was copied from my old machine.
So I keep getting this message:
avr-gcc: error: C:\Users\xxxxx\AppData\Local\Temp\arduino_build_901929/core\core.a: No such file or directory
Reinstalled latest IDE 1.8.12, tried various ideas that seem to stem from a similar issue when 1.6.x was released, all to no avail. Tried both the App and the install, all on latest W10 build. (Feb2020)
The core.a file is generated, but put in the build directory, not the core sub-directory, moving it or copying it just results in it being moved on next compile.
Doing a verbose output on compile reveals "C:\Users\xxxxx\AppData\Local\Temp\arduino_build_901929/core.a" as a path.
I'm wondering if the forward slash instead of backslash is a clue? As the IDE works on a colleague's machine and his path reads \AppData\Local\Temp\arduino_build_901929****core\core.a.
AmphenolSensors:
avr-gcc: error: C:\Users\xxxxx\AppData\Local\Temp\arduino_build_901929/core\core.a: No such file or directory
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.
AmphenolSensors:
Doing a verbose output on compile reveals "C:\Users\xxxxx\AppData\Local\Temp\arduino_build_901929/core.a" as a path.
If the antivirus thing doesn't solve your problem, please post the verbose output. If it exceeds the forum's 9000 character limit, save it in a .txt file and attach the file to a reply. If you click the "Reply" button, you'll see an "Attachments and other settings" link that will allow you to make the attachment.
AmphenolSensors:
I'm wondering if the forward slash instead of backslash is a clue?
Possibly a clue, but the mixed path separators are definitely not a problem. Windows can accept either, but Linux and macOS only accept slash as a path separator. So the hardcoded parts of paths all use slashes for cross-platform compatibility, but the generated paths will use the native path separator.
Turns out it was a library causing the problem, reinstalled the library from the library mananger and all was well. Also put the library in a non-oneDrive area and that helps. IDE and OneDrive are not good together!