GetFileAttributesEx C:\Users\TEHRAN~1\AppData\Local\Temp\arduino_build_480278: The system cannot fin

Arduino: 1.8.5 (Windows 7), Board: "Arduino Duemilanove or Diecimila, ATmega328P"

GetFileAttributesEx C:\Users\TEHRAN~1\AppData\Local\Temp\arduino_build_480278: The system cannot find the file specified.

Error compiling for board Arduino Duemilanove or Diecimila.

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

Close all Arduino IDE windows and then restart the Arduino IDE. Hopefully that will fix the problem. If not, let me know and I'll suggest something else to try.