I think there's something going on here with GCC's automatic install prefix detection. Here's building a program from the command line using the default name:
Note that with the space GCC tries to call 'cc1' where without the
space it calls 'c:/users/cbuild/desktop/gcc/bin/../libexec/gcc/arm-linux-gnueabi/4.6.3/cc1.exe'
I think there's something going on here with GCC's automatic install prefix detection. Here's building a program from the command line using the default name:
C:\Users\ cbuild\ tests\misc> set PATH=c: \Users\ cbuild\ Desktop\ gcc-linaro- arm-linux- gnueabi- 2012.01- 20120125_ win32\bin; %PATH%
C:\Users\ cbuild\ tests\misc> arm-linux- gnueabi- gcc -O -o hello hello.c
(builds OK)
Rename the directory to 'gcc foo'
C:\Users\ cbuild\ tests\misc> set PATH="c: \Users\ cbuild\ Desktop\ gcc foo"\bin;%PATH%
C:\Users\ cbuild\ tests\misc> arm-linux- gnueabi- gcc -O -o hello hello.c gnueabi- gcc: error: CreateProcess: No such file or directory
arm-linux-
Note that the error comes from GCC itself, not the shell.
Run again with a -v to show the command being run:
COLLECT_ GCC_OPTIONS= '-v' '-O' '-o' 'hello' '-march=armv7-a' '-mtune=cortex-a9' '-mfloat- abi=softfp' '-mfpu=vfpv3-d16' '-mthumb' cbuild\ tests\misc\ ../lib/ gcc/arm- linux-gnueabi/ 4.6.3/ hello.c -quiet -dumpbase hello cbuild\ AppData\ Local\Temp\ cc9zPhPn. s gnueabi- gcc: error: CreateProcess: No such file or directory
cc1 -quiet -v -imultilib . -imultiarch arm-linux-gnueabi -iprefix c:\users\
.c -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -auxbase hello -O -version -o C:\Users\
arm-linux-
Rename the directory to 'gcc' and re-run with -v:
C:\Users\ cbuild\ tests\misc> set PATH=c: \Users\ cbuild\ Desktop\ gcc\bin; %PATH%
COLLECT_ GCC_OPTIONS= '-v' '-O' '-o' 'hello' '-march=armv7-a' '-mtune=cortex-a9' '-mfloat- abi=softfp' '-mfpu=vfpv3-d16' '-mthumb' cbuild/ desktop/ gcc/bin/ ../libexec/ gcc/arm- linux-gnueabi/ 4.6.3/cc1. exe cbuild\ desktop\ gcc\bin\ ../lib/ gcc/arm- linux-gnueabi/ 4.6.3/ -isysroot c:\users\ cbuild\ desktop\ gcc\bin\ ../arm- linux-gnueabi/ libc hello.c -quiet -dumpbase hello.c -march=armv7-a -mtune=cortex-a9 -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -auxbase hello cbuild\ AppData\ Local\Temp\ ccsHl3Vf. s
c:/users/
-quiet -v -imultilib . -imultiarch arm-linux-gnueabi -iprefix c:\users\
-O -version -o C:\Users\
Note that with the space GCC tries to call 'cc1' where without the cbuild/ desktop/ gcc/bin/ ../libexec/ gcc/arm- linux-gnueabi/ 4.6.3/cc1. exe'
space it calls 'c:/users/