Pages: [1]   Go Down
Author Topic: Compile error  (Read 1429 times)
0 Members and 1 Guest are viewing this topic.
Orlando
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When I try to compile a program, including an empty shell, I get the following error:

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

I've looked in other threads but none of the fixes I've found seem to apply.

I'm using Arduino-0022 on Windows 7 x64
The most common fix I found in the other threads was removing GCC_EXEC_PREFIX from the environment variables, but it is not there.

Any help is appreciated.
Logged

Where's my coffee?

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Does this directory exist...

{YourArduinoRoot}\arduino-0022\hardware\tools\avr\bin

Are there a bunch of EXEs in that directory?
Logged

Orlando
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.  The folder exists and avr-g++.exe is there.
Logged

Where's my coffee?

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Any GNU software listed on your PATH environment variable?
Logged

Orlando
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The PATH variable value reads as follows.

C:\Program Files (x86)\Microchip\mplabc30\v3.25\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\MATLAB\R2010a\runtime\win64;C:\Program Files\MATLAB\R2010a\bin;C:\Program Files (x86)\Microchip\MPLAB C32 Suite\bin

Logged

Where's my coffee?

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No matter how hard I stare at my screen, I just can't seem to see what's in those directories.  Until my remote reading skills improve, you will have to make an effort.
Logged

Orlando
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok.  The short answer is no.
Logged

Where's my coffee?

Orlando
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Only paths for matlab, mplab, and a few I don't recognize beginning with %SystemRoot%
Logged

Where's my coffee?

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Does your Arduino root directory contain spaces or special characters?
Logged

Orlando
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Nope.  That was the first thing I checked for.
Logged

Where's my coffee?

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Try this...
- Open a command-shell
- Navigate to "{YourArduinoRoot}\arduino-0022\hardware\tools\avr\bin"
- Run "avr-g++.exe"

On my computer the output is...
"avr-g++.exe: no input files"

Logged

Orlando
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does the same on mine.
avr-g++: no input files
Logged

Where's my coffee?

Orlando
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, I don't know what the problem was, but it was corrected by re-downloading the IDE.
Logged

Where's my coffee?

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12747
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm glad to know you have it working and thank you for the follow-up.
Logged

Pages: [1]   Go Up
Jump to: