Closed jcady closed 9 years ago
I have an idea as to what may be causing the issue. Let me investigate.
Nope. That idea didn't pan out. I shouldn't be explicitly trying to specify a "Program Files.." path from my makefiles.
@jcady92
The sh:
part of your error message is very unexpected to me. It is like make
is trying to run a Posix shell even on Windows. A bit of additional information would help me to track this down:
BuildShell.cmd
batch file in your gcc4mbed directory. Can you run that and then issue the following make command manually from the shell that it sets up: make VERBOSE=1 clean
Send me the output of that build attempt if it still fails to complete successfully.BuildShell.cmd
batch file and then go into the samples\HelloWorld directory and issuing a make clean
from there to see if it works even when the build from the root fails.I have tried to reproduce your problem on my Windows 8.1 install and I can't. It works as expected.
1) I tried clicking on the .cmd in explorer and running it from the cmd.exe shell, both with admin privileges and without. Same result.
2) Here's my PATH variable:
PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Int
el\Shared Files\cpp\bin\Intel64;C:\Program Files (x86)\Intel\iCLS Client\;C:\Pro
gram Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32
\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R
) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management En
gine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Comp
onents\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IP
T;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Progra
m Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SD
Ks\TypeScript\1.0\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c
:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft
SQL Server\100\DTS\Binn\;C:\Program Files\nodejs\;C:\Program Files (x86)\MySQL\M
ySQL Utilities\;C:\Program Files (x86)\MySQL\MySQL Utilities\Doctrine extensions
for PHP\;C:\Program Files (x86)\GnuWin32\bin;C:\Program Files (x86)\QuickTime\Q
TSystem\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Nordic Semicond
uctor\nrf51\bin\;C:\Program Files\Calibre2\;C:\Users\jcady_000\AppData\Roaming\n
pm;C:\Program Files (x86)\Git\bin;C:\Program Files (x86)\Git\cmd;C:\Program File
s (x86)\GNU Tools ARM Embedded\4.8 2014q2\bin;C:\Program Files (x86)\GnuWin32\bi
n;C:\Users\jcady_000\AppData\Local\Android\android-studio\sdk\platform-tools;C:\
Users\jcady_000\AppData\Local\Android\android-studio\sdk\tools;C:\apache-ant-1.9
.4\bin;C:\Users\jcady_000\android-sdk\platform-tools;C:\Qt\Qt5.4.0\5.4\mingw491_
32\bin;C:\Users\jcady_000\android-sdk\tools;C:\Users\jcady_000\android-sdk\platf
orm-tools;C:\Python27;C:\Program Files (x86)\CMake\bin;C:\Qt\Qt5.4.1\5.4\mingw49
1_32\bin;C:\Program Files (x86)\CMake\bin
3) It doesn't look like I have a MAKE environment variable.
4) Here's the output:
sh: C:\Program: No such file or directory
make: *** [samples.clean] Error 127
5) I did a make clean
and it looked to successfully clean the sample. So I did a make
and it looks like it successfully built the HelloWorld sample. Does this mean it installed correctly?
Hope that helps diagnose!
Thanks for the extra information.
So I did a make and it looks like it successfully built the HelloWorld sample. Does this mean it installed correctly?
Yes, it just means that the makefile in the root isn't working as expected but the project specific ones are.
I have attempted to make a fix in the working branch to correct this problem. You could try downloading https://github.com/adamgreen/gcc4mbed/archive/working.zip and see if that installs with no errors.
That did the trick! Installed perfectly. Thanks Adam!
Ok. I will get it merged into the master branch as soon as I can.
Thanks for reporting, helping me troubleshoot, and testing.
-Adam
Fixed now merged into master.
Thanks again,
Adam
I'm installing on Windows 8.1 (NTFS file system). I downloaded the compressed installation file and extracted it to C:\gcc4mbed. Every time I run the win_install.cmd script it downloads the files and then fails when installing. Here are the logs:
Does anyone have any idea what's going on? Thanks!