collect2.exe: fatal error: cannot find 'ld'

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

Archiving built core (caching) in: C:\Users\moo\AppData\Local\Temp\arduino_cache_590339\core\core_arduino_avr_uno_ad498f47f274213150f9913632d09114.a
collect2.exe: fatal error: cannot find 'ld'

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

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

Here's my error code. It shows the same thing no matter what code I put in, including the built-in examples.