avr-gcc error

I am using version 18.8 on Mac High Sierra 10.13.6 and get an error when I try to load the basic blink file on my Uno board .I am able to load files and run programs using my Lolin NodeMCU v3 board without an issue but the Uno board gets error message.

[/cArduino: 1.8.9 Hourly Build 2018/12/19 06:12 (Mac OS X), Board: "Arduino/Genuino Uno"

/Applications/Arduino-2.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino-2.app/Contents/Java/hardware -hardware /Users/Owner/Library/Arduino15/packages -tools /Applications/Arduino-2.app/Contents/Java/tools-builder -tools /Applications/Arduino-2.app/Contents/Java/hardware/tools/avr -tools /Users/Owner/Library/Arduino15/packages -built-in-libraries /Applications/Arduino-2.app/Contents/Java/libraries -libraries /Users/Owner/Documents/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10809 -build-path /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_835789 -warnings=none -build-cache /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_cache_586489 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs=runtime.tools.arduinoOTA.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.avr-gcc.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -verbose /Applications/Arduino-2.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
/Applications/Arduino-2.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino-2.app/Contents/Java/hardware -hardware /Users/Owner/Library/Arduino15/packages -tools /Applications/Arduino-2.app/Contents/Java/tools-builder -tools /Applications/Arduino-2.app/Contents/Java/hardware/tools/avr -tools /Users/Owner/Library/Arduino15/packages -built-in-libraries /Applications/Arduino-2.app/Contents/Java/libraries -libraries /Users/Owner/Documents/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10809 -build-path /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_835789 -warnings=none -build-cache /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_cache_586489 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14 -prefs=runtime.tools.arduinoOTA.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.arduinoOTA-1.2.1.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.2.1 -prefs=runtime.tools.avr-gcc.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=/Users/Owner/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2 -verbose /Applications/Arduino-2.app/Contents/Java/examples/01.Basics/Blink/Blink.ino
Using board 'uno' from platform in folder: /Applications/Arduino-2.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino-2.app/Contents/Java/hardware/arduino/avr
Detecting libraries used...
/Users/Owner/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/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=10809 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino-2.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino-2.app/Contents/Java/hardware/arduino/avr/variants/standard /var/folders/b0/79htx0t55l507ss77m0grkk40000gp/T/arduino_build_835789/sketch/Blink.ino.cpp -o /dev/null
fork/exec /Users/Owner/Library/Arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-g++: no such file or directory
Error compiling for board Arduino/Genuino Uno.ode]

This error indicates you need to take some drastic action. Be aware this is somewhat advanced and will remove any boards you have installed via Boards Manager:

  • In the Arduino IDE, click the link on the line following File > Preferences > More preferences can be edited directly in the file. This will open the Arduino15 folder.
  • Delete all files and folders under the Arduino15 folder except for preferences.txt. Please be very careful when deleting things from your computer. When in doubt, back up!
  • Restart the Arduino IDE

Verify that you can now use your board before reinstalling any packages via Boards Manager.