Compilation fails: "avr-g++: error: CreateProcess: No such file or directory"

Hello, when i compile sketch this message appear :
FQBN: arduino:avr:nano
Using board 'nano' from platform in folder: C:\Users\hfman\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\hfman\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6

Detecting libraries used...

C:\Users\hfman\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\hfman\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\hfman\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\hfman\AppData\Local\Temp\arduino\sketches\62981F3212C1192EE58F143010896473\sketch\Blink.ino.cpp -o nul
Error while detecting libraries included by C:\Users\hfman\AppData\Local\Temp\arduino\sketches\62981F3212C1192EE58F143010896473\sketch\Blink.ino.cpp
Generating function prototypes...
C:\Users\hfman\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/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=10607 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Users\hfman\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino -IC:\Users\hfman\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\variants\eightanaloginputs C:\Users\hfman\AppData\Local\Temp\arduino\sketches\62981F3212C1192EE58F143010896473\sketch\Blink.ino.cpp -o C:\Users\hfman\AppData\Local\Temp\1558302885\sketch_merged.cpp
avr-g++: error: CreateProcess: No such file or directory
exit status 1

Compilation error: exit status 1

i have ever reinstall arduino ide but it still appear. Please help me.

avr-gcc is not installed - why ever. check if this file exists: C:\Users\hfman\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.