Michiel
September 10, 2016, 4:42pm
1
Hi everyone!
Its been a while since I did some arduino'ing, as beginning of this year, I had 10000 problems with my electronic projects, so I quit for a while
Now I've learned I cant live without arduino, Im trying to get the IDE working again
So, the problem is:
exec: "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++": file does not exist
Error compiling for board Arduino/Genuino Uno.
I checked the file, and it is there, and I can 'run' it with cmd, but running it without further arguments doesnt work of course
The exact file location is:
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin
Anyone who has an idea?
(small update: just to reassure you guys, I already googled A LOT, but didnt find a solution)
J-M-L
September 10, 2016, 8:59pm
2
can you share the FULL compiler error?
what target board is declared in the IDE?
Michiel
September 11, 2016, 9:54am
3
J-M-L:
can you share the FULL compiler error?
what target board is declared in the IDE?
Do you mean this?
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Michiel\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Michiel\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Michiel\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10611 -build-path C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Michiel\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Michiel\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Michiel\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10611 -build-path C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp -warnings=all -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'uno' 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:\Program Files (x86)\Arduino\hardware\tools\avr/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=10611 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\sketch\Blink.ino.cpp" -o "nul"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/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=10611 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\sketch\Blink.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/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=10611 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\sketch\Blink.ino.cpp" -o "C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
exec: "C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++": file does not exist
Error compiling for board Arduino/Genuino Uno.
And I specified the Uno as target board. However, I am only building (verifying) the blink example sketch, not actually uploading
J-M-L
September 11, 2016, 9:59am
4
can you check what you have in
C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp
specifically do you have a file named
C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\sketch\Blink.ino.cpp
Michiel
September 11, 2016, 11:42am
5
J-M-L:
can you check what you have in
C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp
specifically do you have a file named
C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\sketch\Blink.ino.cpp
In that folder, I have a preproc folder, which is empty, a sketch folder which includes (only) the Blink.ino.cpp file, and a build.options.json file
Isaac96
September 13, 2016, 12:03am
7
Empty the Temp folder and restart the IDE. Maybe log off and then on again. Reinstall the IDE if the problem persists.
Michiel
September 14, 2016, 1:41pm
8
I just emptied the Temp folder (apart from the few folders I couldnt delete because they were used by Google Chrome/Drive, then restarted my laptop and reinstalled Arduino, but it still isnt fixed, I get exactly the same error
So, its been a while, and still no progress in fixing the IDE
I just installed the newest version, which gave me the same error.
Now I tried backtracking which version was the first one causing the errors, and apparently, the error started in version 1.6.6 (1.6.5 worked fine, will continue using this one, reluctantly).
I looked at some new topics about deleting system variables and echoing %GCC_PATH_PREFIX% in cmd, but the echo only returns %GCC_PATH_PREFIX%, and the variable everyone seems to be talking about isnt there, so it shouldn't cause any problems...
Does anyone know this problem or knows what I can try to fix it?
I really want the newer versions to work, they have some interesting features...
J-M-L
October 12, 2016, 9:02pm
10
and if you open a terminal, go into that C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp
temp folder and run manually
"C:\Program Files (x86)\Arduino\hardware\tools\avr/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=10611 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\sketch\Blink.ino.cpp" -o "C:\Users\Michiel\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp\preproc\ctags_target_for_gcc_minus_e.cpp"
what does it say?
Michiel
October 17, 2016, 3:20pm
11
Sorry for the late reply, the notification got stuck in the spam folder
Well, I dont have the build temp folder anymore. Is that because I reinstalled an earlier version?
J-M-L
October 17, 2016, 4:27pm
12
or a clean up process wiped it out... all works fine on a mac... ;D