Error compiling with Arduino: 1.6.6 (Windows Vista), Arduino/Genuino Uno

I am unable to verify/compile any sketches.

I have tried the blink program and many others in the library with the same results. (see below)

I am running Windows Vista 32 bit operating system, using Arduino/Genuino Uno

Any suggestions to fix my new toy?

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

exit status 1
Error compiling.

Are you sure that's the whole error? Most of the time it tells you which file does not exist...

But have you tried uninstalling and reinstalling the Arduino IDE?

A bunch of people have had IDE 1.6.x problems, including IDE crashes and bizarre compile errors, when they have an old 1.5.x/1.6.x installation. Those problems seem to be caused by out-of-date executables that the new IDE saves outside the IDE installation directory. In such cases it appears that the fix is to delete or rename the old "Arduino15" directory and re-install 1.6.x.

On Mac OS X:
/Users/(username)/Library/Arduino15

On Windows:
C:\Users(username)\AppData\Roaming\Arduino15

On Linux:
/home/(username)/.arduino15 (a.k.a. ~/.arduino15)

I wrote this for ESP8266 issues but the same process should work for other 1.6.6 issues where you want to go back to 1.6.5. Just ignore the ESP bits if they don't pertain to you.
This was done under WIN7 x64, I also have my windows user profiles on a different drive but procedure should still apply in general to Vista upwards.

Get rid of 1.6.6 and go back to 1.6.5
I spent over a week "struggling" to get almost any ESP project running under 1.6.6.

By getting rid I also mean TOTALLY !

First off uninstall the IDE as normal
Next delete the Arduino folder under the Users\yourname\AppData\Local\Arduino if it exists.
Next delete the Arduino folder under the Users\yourname\Application Data\ and delete Arduino folders if they exist.
(NOTE) you should be logged in as a FULL admin to get to these or use "Take Ownership" to get access.

Double check for any leftovers and if you have your Libraries or sketches elsewhere then either archive or delete (your choice but delete worked better for me)

" Certainly delete the Libraries folder from inside the sketches folder at the very least."

I use two folders for Sketches. One is separate and I only put fully working sketches ready for deployment in there and just use the regular sketches folder for the examples and WIP.

If you have a decent registry cleaner use it at this point. I used the "Wise Registry Cleaner" set for "advanced" and Let it do its thing.

Now reboot

Install 1.6.5 as per normal and make any personal changes at this point.
Now shoot over to learn.sparkfun.com/tutorials/esp8266-thi...sp8266-arduino-addon and follow the instructions there (dont get sidetracked)
You should have a stable Arduino IDE with ESP board manager now enabled.

DONT just dump all your past libraries back in to the libs folder as that may also cause issues and you will be back to square one !

Take an ESP ( or arduino ) and use a simple blink sketch to it just to be sure everything is OK and if not make any minor adjustments at this point but do not go throwing libs around.
If its all good you can start getting a little more adventurous with ESP / Arduino projects.

At this point it may be worth updating the "cores". You do this from the "Board Manager" in the IDE. Just select the "More Info" option for the boards you are using and if there is an update take it. I currently have 1.6.9 for Arduino cores and 1.6.5-947 for ESP's (These are NOT the IDE numbers !)

If like me you are just using the generic ESP's then heads up that some of the newer ones (usually black in colour) have a little more memory and you may have to account for that in the IDE setup for the board.

I need to select Flash Size: "1M (512K SPIFFS)" as that was what the test sketch for ESP configuration told me I had.

Hopefully by this point you are able to flash and run programs. the newer ESP,s also don't need much to flash either. I just used this one and it works everytime for the newer ones.

Built mine with a switch and a few headers so I can play before I commit to a bulld.

The reason for all your errors is a bug in 1.6.6 and the way it handles library names (apparently). I found it by accident and asked a question on the Arduino forum. One of the senior members spotted it as I was getting Library updates offered over and over again and despite taking them all it still kept offering.

He has submitted it for a bug fix but until then 1.6.5 is your best friend.

Ballscrewbob:
Install 1.6.5 as per normal and make any personal changes at this point.

At this point it may be worth updating the "cores". You do this from the "Board Manager" in the IDE. Just select the "More Info" option for the boards you are using and if there is an update take it. I currently have 1.6.9 for Arduino cores

Does Arduino AVR Boards 1.6.9 work for you with Arduino IDE 1.6.5? I have found it to be incompatible with any IDE version previous to 1.6.6(compiling for any AVR board fails).

Have problems with 1.6.6 too. It compiles successfully, but some madness happening with arduino after that. It has lcd, and it starts to show some craziness. No problems with 1.6.5.
Tried on windows 10 x64 and Ubuntu 15.10 x64. On Windows arduino 1.6.6 was the first one that i installed, so i do not think that deleting smth will help, cause there were no arduino related files on win 10 pc at all, hdd was formated.

pert:
Does Arduino AVR Boards 1.6.9 work for you with Arduino IDE 1.6.5? I have found it to be incompatible with any IDE version previous to 1.6.6(compiling for any AVR board fails).

Running WIN 7 X64 PRO and ZERO issues here after going through the steps I outlined

Compiles fine for the following boards. UNO, MEGA 2560, LEONARDO, NANO, MICRO, MINI, ESP8266 01.

Working with clones, ch340 and FTDI and true Arduino with FTDI. Also pushes sketches via chinese UART / USB Tiny / IC2 etc etc.

Tried to post a screenshot of the board manager but got slapped by the 5 minute rule again :smiling_imp:

Strange, I'm using win7x64 and as soon as I update to Arduino AVR Boards 1.6.9 in Arduino IDE 1.6.5r5 compiling any sketch for any AVR board gives me this error:

avr-gcc: error: C:\Users\per\AppData\Local\Temp\build2697118837279609909.tmp/core.a: No such file or directory

This is caused by the changed recipe.ar.pattern in the Arduino AVR Boards 1.6.9 platform.txt.