Program Won't Compile

I have been getting this error when compiling. I am using an Arduino Uno with IDE version 1.6.9.

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

Exception 0xc0000090 0x0 0x0 0x102712
PC=0x102712

syscall.Syscall12(0x7688e320, 0xa, 0x10efd680, 0x10f01b00, 0x0, 0x0, 0x1, 0x400, 0x10ce7a00, 0x0, ...)
C:/Go1.5/src/runtime/syscall_windows.go:161 +0x4a
syscall.CreateProcess(0x10efd680, 0x10f01b00, 0x0, 0x0, 0x1, 0x400, 0x10ce7a00, 0x0, 0x10cd36f8, 0x10cd36a4, ...)
C:/Go1.5/src/syscall/zsyscall_windows.go:580 +0xba
syscall.StartProcess(0x10ee8e10, 0x41, 0x10f100d0, 0x19, 0x1a, 0x10cd37b0, 0x0, 0x0, 0x0, 0x0)
C:/Go1.5/src/syscall/exec_windows.go:326 +0x752
os.startProcess(0x10ee8e10, 0x41, 0x10f100d0, 0x19, 0x1a, 0x10cd38dc, 0x10ce1860, 0x0, 0x0)
C:/Go1.5/src/os/exec_posix.go:45 +0x2c8
os.StartProcess(0x10ee8e10, 0x41, 0x10f100d0, 0x19, 0x1a, 0x10cd38dc, 0x0, 0x0, 0x0)
C:/Go1.5/src/os/doc.go:24 +0x53
os/exec.(*Cmd).Start(0x10e7d040, 0x0, 0x0)
C:/Go1.5/src/os/exec/exec.go:328 +0x6da
os/exec.(*Cmd).Run(0x10e7d040, 0x0, 0x0)
C:/Go1.5/src/os/exec/exec.go:255 +0x2b
arduino.cc/builder/builder_utils.ExecRecipeCollectStdErr(0x10efe400, 0x5bc3c0, 0x15, 0x1, 0x30da43e8, 0x692034, 0x0, 0x0, 0x0, 0x0)
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/builder/builder_utils/utils.go:340 +0x129
arduino.cc/builder.(*GCCPreprocRunnerForDiscoveringIncludes).Run(0x10ef51d0, 0x10cfc000, 0x0, 0x0)
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/builder/gcc_preproc_runner.go:91 +0x243
arduino.cc/builder.runCommand(0x10cfc000, 0x30da8a40, 0x10ef51d0, 0x0, 0x0)
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/builder/container_find_includes.go:94 +0x57
arduino.cc/builder.findIncludesUntilDone(0x10cfc000, 0x10ecf7a0, 0x67, 0x0, 0x0)
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/builder/container_find_includes.go:112 +0x2a4
arduino.cc/builder.(*ContainerFindIncludes).Run(0x692034, 0x10cfc000, 0x0, 0x0)
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/builder/container_find_includes.go:50 +0x227
arduino.cc/builder.runCommands(0x10cfc000, 0x10cd3cfc, 0x1c, 0x1c, 0x1, 0x0, 0x0)
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/builder/builder.go:181 +0xe2
arduino.cc/builder.(*Builder).Run(0x10cd3df0, 0x10cfc000, 0x0, 0x0)
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/builder/builder.go:116 +0xb53
arduino.cc/builder.RunBuilder(0x10cfc000, 0x0, 0x0)
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/builder/builder.go:212 +0x35
main.main()
c:/jenkins/workspace/arduino-builder-windows/src/arduino.cc/arduino-builder/main.go:316 +0x152c
eax 0x0
ebx 0x32dfd008
ecx 0x0
edx 0x32da0000
edi 0x2240
esi 0x32dfd000
ebp 0xdf6d4
esp 0xdf6ac
eip 0x102712
eflags 0x10216
cs 0x23
fs 0x53
gs 0x2b
arduino-builder returned 2
Error compiling for board Arduino/Genuino Uno.

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

Try updating to Arduino IDE 1.8.0 from http://www.arduino.cc/en/Main/Software. Not sure if that will solve the problem but it's worth a shot.

When I try to install, it gives me an unspecified error.

A bunch of people have had IDE problems, including IDE crashes and bizarre compile errors, when they had a previous installation. At least some of those problems seem to be caused by incompatible executables and preference files that the IDE saves outside the IDE installation directory. Perhaps that is what is causing your particular problem. In such cases it appears that the fix is to delete or rename the old "Arduino15" directory and re-install the IDE.

On Mac OS X:
/Users/(username)/Library/Arduino15 (a.k.a. ~/Library/Arduino15)
(Note: The 'Library' folder is greyed out in Finder. The folder can't be opened with a double-click. To browse the contents of 'Library', ctrl-click on it and select "Open in New Tab" from the pop-up menu.)

On Windows delete or rename both:
Arduino IDE 1.6.5r5 and previous: C:\Users(username)\AppData\Roaming\Arduino15
Arduino IDE 1.6.6 and later: C:\Users(username)\AppData\Local\Arduino15

On Linux:
/home/(username)/.arduino15 (a.k.a. ~/.arduino15)
(Note: file/folder names starting with '.' are not normally shown in directory listings. Use 'ls -a' to get a directory listing that includes the hidden files.)

Thanks, that worked fine!