[solved:win] avr-gcc: error: CreateProcess: No such file

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found many posts about this topic but did not saw any practical solution, but maybe I did not read the right articles. So my recent experiments brought the following insight:

Tools compiled with Mingw do not like spaces in the path name

The experiments in cmd.exe fixed the problem reproducable, if there was no spaces in the PATH. Unfortunately, both, the english Windows and AS6 push spaces in the path name.

@rem using path with spaces: FAIL
@rem set PATH="C:\Program Files\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin"
@rem using path without spaces: PASS
set PATH=C:\ProgramXFiles\Atmel\AtmelXStudioX6.0\extensions\Atmel\AVRGCC\3.4.0.65\AVRToolchain\bin
make -C src any900 MKDIR=gmkdir
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have absolutely no problems with neither WinAVR not Atmel AVR Toolchain residing under "C:\Program Files\...". AFAIK at least the former (version 20100110) is built with/under MinGW.

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just set only the AS6 directory into my PATH location. Maybe it is the gnu-make utility??? But no, I even called plain avr-gcc with this result.

But it looks that each Windows behaves different. The problem occurs on a WinXP, for a Win7 Pro that I just checked, the space issue does not happen.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A bit mystic, not ever the removing of spaces from
the PATH solve the problem. However the standalone
AVR compiler package seems to work with and witout
spaces. .... well I move on with my Linux and let
this fun be part of the life of the Windows guys.