Avr-g++: error: CreateProcess: No such file or directory

Hello there!
I am facing problem when I want to upload any source code to my Arduino Uno. There is an error message. But I couldn't understand it. Please Help!

Error Message:

Arduino: 1.8.19 (Windows 8.1), 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\Jagadish N\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\JAGADI~1\AppData\Local\Temp\arduino_build_809807 -warnings=none -build-cache C:\Users\JAGADI~1\AppData\Local\Temp\arduino_cache_492040 -prefs=build.warn_data_percentage=75 -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.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.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\JAGADI~1\AppData\Local\Temp\arduino_modified_sketch_529466\HelloWorld.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\Jagadish N\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10819 -build-path C:\Users\JAGADI~1\AppData\Local\Temp\arduino_build_809807 -warnings=none -build-cache C:\Users\JAGADI~1\AppData\Local\Temp\arduino_cache_492040 -prefs=build.warn_data_percentage=75 -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.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.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Users\JAGADI~1\AppData\Local\Temp\arduino_modified_sketch_529466\HelloWorld.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=10819 -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\\JAGADI~1\\AppData\\Local\\Temp\\arduino_build_809807\\sketch\\HelloWorld.ino.cpp" -o nul

Error while detecting libraries included by C:\Users\JAGADI~1\AppData\Local\Temp\arduino_build_809807\sketch\HelloWorld.ino.cpp

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=10819 -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\\JAGADI~1\\AppData\\Local\\Temp\\arduino_build_809807\\sketch\\HelloWorld.ino.cpp" -o "C:\\Users\\JAGADI~1\\AppData\\Local\\Temp\\arduino_build_809807\\preproc\\ctags_target_for_gcc_minus_e.cpp"

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

exit status 1

Error compiling for board Arduino Uno.


Is this the first time that you try to compile something? Or did it work in the past?

Does C:\\Program Files\\Arduino\\hardware\\tools\\avr/bin/avr-g++ exist? If not, I suspect that you have a corrupt installation of the IDE.

It looks like you did not update the AVR board package to 1.8.6; a simple way to solve your problem might be to do the upgrade to AVR board package 1.8.6.

Note:
I can imagine where your confusion comes from but this is not really a programming question. I've moved your topic to the dedicated IDE 1.x section of the forum.

1 Like

Thanks a lot for your kind reply!

I updated the board manager. And now, it seems to me that the problem is gone. Previously, I tried to solve that problem by restarting the IDE which was helpful for many times.

However, Thanks a lot.

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