ArduinoIDE 1.8.12 Win7_32 Fails All Compiles

My board is an Elegoo Uno R3 on COM4

Every attempt at compiling any code fails at the same spot; even this fails with the same error message:

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

< ------- Error Log ------->

Arduino: 1.8.12 (Windows 7), Board: “Arduino Uno”

C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\steve\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10812 -build-path C:\Users\steve\AppData\Local\Temp\arduino_build_462986 -warnings=none -build-cache C:\Users\steve\AppData\Local\Temp\arduino_cache_529844 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\steve\Documents\Arduino\sketch_mar01a\sketch_mar01a.ino
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Users\steve\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10812 -build-path C:\Users\steve\AppData\Local\Temp\arduino_build_462986 -warnings=none -build-cache C:\Users\steve\AppData\Local\Temp\arduino_cache_529844 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\steve\Documents\Arduino\sketch_mar01a\sketch_mar01a.ino
Using board ‘uno’ from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Using core ‘arduino’ from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Detecting libraries used…
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\steve\AppData\Local\Temp\arduino_build_462986\sketch\sketch_mar01a.ino.cpp” -o nul
Generating function prototypes…
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\steve\AppData\Local\Temp\arduino_build_462986\sketch\sketch_mar01a.ino.cpp” -o “C:\Users\steve\AppData\Local\Temp\arduino_build_462986\preproc\ctags_target_for_gcc_minus_e.cpp”
“C:\Program Files\Arduino\tools-builder\ctags\5.8-arduino11/ctags” -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives “C:\Users\steve\AppData\Local\Temp\arduino_build_462986\preproc\ctags_target_for_gcc_minus_e.cpp”
Compiling sketch…
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR “-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\steve\AppData\Local\Temp\arduino_build_462986\sketch\sketch_mar01a.ino.cpp” -o “C:\Users\steve\AppData\Local\Temp\arduino_build_462986\sketch\sketch_mar01a.ino.cpp.o”
Compiling libraries…
Compiling core…
Using precompiled core: C:\Users\steve\AppData\Local\Temp\arduino_cache_529844\core\core_arduino_avr_uno_5638c217b04eda8279099c4937887265.a

Linking everything together…
“C:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc” -w -Os -g -flto -fuse-linker-plugin -Wl,–gc-sections -mmcu=atmega328p -o “C:\Users\steve\AppData\Local\Temp\arduino_build_462986/sketch_mar01a.ino.elf” “C:\Users\steve\AppData\Local\Temp\arduino_build_462986\sketch\sketch_mar01a.ino.cpp.o” “C:\Users\steve\AppData\Local\Temp\arduino_build_462986/…\arduino_cache_529844\core\core_arduino_avr_uno_5638c217b04eda8279099c4937887265.a” “-LC:\Users\steve\AppData\Local\Temp\arduino_build_462986” -lm
lto1.exe: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See https://gcc.gnu.org/bugs/ for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\Arduino\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/arduino/hardware/tools/avr/bin/…/lib/gcc/avr/7.3.0/…/…/…/…/avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Uno.

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

Do a search on this forum for Segmentation fault.

However, to my knowledge this was solved in the board manager that cones with IDE 1.8.12.