Arduino, avr-gcc, Eclipse and Windows 8.1
Recently I upgraded – and I use the word with some reluctance – to Windows 8.1 and found that in this environment I couldn’t successfully use the
avr-gcc compiler (that ships with the Arduino 1.0.5 package) from Eclipse with the AVR Eclipse Plugin because attempts to Build from Eclipse resulted in a failure to start the
avr-gcc compiler with the error:
avr-gcc.exe – Application Error
The application was unable to start correctly (0xc0000142). Click OK to close the application.
Setting up my
PATH and running the failing
avr-gcc on the command line worked fine, but attempting to run
make all from the command line resulted in the same error as when running from Eclipse. At least that eliminated Eclipse from the equation.
Eventually I stumbled across a workaround which is to use a different build of
make. I downloaded and installed GNU “make“ for Windows from the GNU Win32 project which installs
make.exe into the
C:\Program Files (x86)\GnuWin32\bin\ directory.
A quick change of
PATH demonstrated this would allow a successful compile from the command line and so I made the equivalent change in Eclipse:
1) Go to Window->Preferences and then to the AVR->Paths section. Here select the entry for GNU make
2) Click Edit… and then Browse… and navigate to the path to the newly installed
which should leave you with:
3) It should now be possible to do a successful build!
I’m none the wiser to as the actual cause of this problem which doesn’t occur on earlier releases of Windows, so this is a workaround, rather than a true solution.