Go Down

Topic: avr-g++ does not exist error (Read 1 time) previous topic - next topic

DavidI

Running Win10 64 Pro
Was running 1.8.2 of the IDE
Got a message that there was an update to some of my boards.  It turned out to be
'Arduino AVR Boards Built in at rev 1.6.18 to be upgraded to 1.6.19
Some how the upgrade failed and I didn't take a note of what the error was.  Went back to 1.6.18
Tried to compile and got
Code: [Select]

Arduino: 1.8.3 (Windows 10), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dave\AppData\Local\Arduino15\packages -hardware D:\Dave\My Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Dave\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\Dave\My Documents\Arduino\libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10803 -build-path C:\Users\Dave\AppData\Local\Temp\arduino_build_208330 -warnings=more -build-cache C:\Users\Dave\AppData\Local\Temp\arduino_cache_273913 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose D:\Dave\My Documents\arduino\WorkInProgress\GraphLocothrottle2\GraphLocothrottle2.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Dave\AppData\Local\Arduino15\packages -hardware D:\Dave\My Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Dave\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\Dave\My Documents\Arduino\libraries -fqbn=arduino:avr:pro:cpu=16MHzatmega328 -ide-version=10803 -build-path C:\Users\Dave\AppData\Local\Temp\arduino_build_208330 -warnings=more -build-cache C:\Users\Dave\AppData\Local\Temp\arduino_cache_273913 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose D:\Dave\My Documents\arduino\WorkInProgress\GraphLocothrottle2\GraphLocothrottle2.ino
Using board 'pro' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\Dave\AppData\Local\Temp\arduino_build_208330\sketch\GraphLocothrottle2.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Users\Dave\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\Dave\AppData\Local\Temp\arduino_build_208330\sketch\GraphLocothrottle2.ino.cpp" -o "C:\Users\Dave\AppData\Local\Temp\arduino_build_208330\preproc\ctags_target_for_gcc_minus_e.cpp"
exec: "C:\\Users\\Dave\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++": file does not exist
Error compiling for board Arduino Pro or Pro Mini.

Not only does that file not exist the '4.9.2-atmel3.5.4-arduino2/bin' folder didn't exist either
Upgraded to Arduino 1.8.3  the problem remained .
Deleted the entire Arduino15 folder.
Re ran the 1.8.3 installer,  which recreated the Arduino15 folder but still no '4.9.2-atmel3.5.4-arduino2/bin'folder or avr-g++ file.
Where do I go from here
Thanks
Dave

DavidI

Solved.  It looks like one needs to do a reset between deleting the previous IDE and installing the new one.  I deleted via the windows 'programs and Features' facility, this left 'Arduino' folder in Program Files(86). Deleted the Arduino15 folder.  Did a reset.  Checked that the Arduino folder had gone, it had.
Reinstalled, no Arduino15 folder was created.  Tried compile it worked.  Added the ATtiny board from drazzy via the boards manager,  this worked fine.  Arduino15 was created with a 'packages' folder containing folder ATTinyCore but not a 'arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/' folder tree.
So probably one of the 'boards packages' I'd installed got screwed!
Dave

Go Up