(win32) gcc: error: CreateProcess: No such file or directory

Asked by devan lippman

When I attempt to build my project the following error occurs:
D:\>echo %PATH%
C:\Python27\;C:\Python27\Scripts;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\MentorGraphics\9.4PADS\SDD_HOME\common
ics\9.4PADS\SDD_HOME\common\win32\lib;C:\MentorGraphics\9.4PADS\MGC_HOME.ixn\bin;C:\MentorGraphics\9.4PADS\MGC_HOME.ixn\lib;C:\oracle\ora81\bin;C:\Program Files (x86)\Oracle\jre\1.1.7\bin;C:\Program F
6_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Sta
l\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\Ro
\;C:\Program Files (x86)\Windows Imaging\;C:\MinGW\bin;C:\Program Files (x86)\GnuWin32\bin;C:\VXIPNP\WINNT\BIN;C:\VXIPNP\WINNT\TekVISA\BIN;C:\Python27;C:\Program Files (x86)\Windows Live\Shared;C:\Pro
tool;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\TekVISA\BIN;C:\Program Files\TortoiseSVN\bin
it\cmd;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\ffmpeg\bi
WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Sopheon\Common;C:\Python27;C:\Python27\Scripts;C:\Program Files (x86)\upx391w;D:\altera\14.1\modelsim_ae\win32aloem
im_ase\win32aloem;C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2014q4\bin

D:\src>gcc -v -march=cortex-a9 -Wall -c -g -I include -I include/mx6slx vectors.S -o vectors.o
Using built-in specs.
COLLECT_GCC=gcc
Target: mingw32
Configured with: ../gcc-4.7.0/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-lib
ild-poststage1-with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-march=cortex-a9' '-Wall' '-c' '-g' '-I' 'include' '-I' 'include/mx6slx' '-o' 'vectors.o'
 cc1 -E -lang-asm -quiet -v -I include -I include/mx6slx -iprefix c:\mingw\bin\../lib/gcc/mingw32/4.7.0/ vectors.S -march=cortex-a9 -Wall -g -fworking-directory -fno-directives-only -o C:\Users\dlippm
4weMs.s
gcc: error: CreateProcess: No such file or directory

I'm running on Win7. Does this mean that its looking for 'CreateProcess', or another executable?

Thanks,
Devan

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
devan lippman
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi Devan,

This seems like the same issue as in [1]. Could you try the suggestion mentioned by Joey in comment #3?

[1] https://answers.launchpad.net/gcc-arm-embedded/+question/227124

Best regards,

Thomas

Revision history for this message
Terry Guo (terry.guo) said :
#2

How about you call gcc with full path like "C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2014q4\bin\arm-none-eabi-gcc.exe"? Remember to add the quote to avoid the space-in-path issue.

Revision history for this message
Terry Guo (terry.guo) said :
#3

And from below information piece you provided:

Configured with: ../gcc-4.7.0/configure

Seems you are not calling correct arm-none-eabi-gcc whose version is 4.9.

Revision history for this message
devan lippman (dlippman) said :
#4

Using the absolute path solved the problem.
Apologies and thanks for your time.