Cannot compile anything (exit status 1)

I can't compile anything even the built-in led codes that are in the examples tab
Literally nothing works
I'm using windows 10 64 bit if that could help

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\User\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\User\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\User\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10805 -build-path C:\WINDOWS\TEMP\arduino_build_285835 -warnings=all -build-cache C:\WINDOWS\TEMP\arduino_cache_930908 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.avrdude.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\User\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\User\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\User\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10805 -build-path C:\WINDOWS\TEMP\arduino_build_285835 -warnings=all -build-cache C:\WINDOWS\TEMP\arduino_cache_930908 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.avrdude.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'uno' from platform in folder: C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
Using core 'arduino' from platform in folder: C:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
Detecting libraries used...
"C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\standard" "C:\WINDOWS\TEMP\arduino_build_285835\sketch\Blink.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\User\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino" "-IC:\Users\User\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\variants\standard" "C:\WINDOWS\TEMP\arduino_build_285835\sketch\Blink.ino.cpp" -o "C:\WINDOWS\TEMP\arduino_build_285835\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\WINDOWS\TEMP\arduino_build_285835\preproc\ctags_target_for_gcc_minus_e.cpp"
exit status 1
Error compiling for board Arduino/Genuino Uno.

Does anyone know how to fix this error?

It's not my board that's broken because the same thing happens with an arduino nano

It's a difficult problem because ther's no output to explain the cause of the error. Mysterious errors are sometimes caused by 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.

I am having a problem tonight also. The first time I compiled, it sent it to my board, now I get errors each time I compile as it is telling me that it cant find the directory, but that was set up as the default when the program is installed. I am going to try the antivirus disable and try again, but I don't think it is the problem.

Grizjohn:
I am having a problem tonight also. The first time I compiled, it sent it to my board, now I get errors each time I compile as it is telling me that it cant find the directory, but that was set up as the default when the program is installed. I am going to try the antivirus disable and try again, but I don't think it is the problem.

Sounds like a completely different problem from Arty1080's. Start a new thread with the complete error message in code tags (</> button on the toolbar).

pert:
It's a difficult problem because ther's no output to explain the cause of the error. Mysterious errors are sometimes caused by 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.

That didn't work, reinstalling the software didn't work aswell

I am having the same problem, have reloaded the IDE twice, Hafe way through running the install program it stops and up pops
Error opening file for writing:C:\Program Files(86)\Ardunio\hardware\tools\arv\arv\bin\ar.exe. Have to hit ignore to continue loading. I am Lost.

AC8ZX:
I am having the same problem, have reloaded the IDE twice, Hafe way through running the install program it stops and up pops
Error opening file for writing:C:\Program Files(86)\Ardunio\hardware\tools\arv\arv\bin\ar.exe. Have to hit ignore to continue loading. I am Lost.

This is a COMPLETELY DIFFERENT PROBLEM.

Yours sounds like either overzealous antivirus getting false positive, or some really weird permissions problem involving debris from an old Arduino installation. Uninstall, delete C:\program files(x86)\Arduino, reinstall - if that still fails, it's almost certainly an issue involving antivirus getting a false positive.