|
From: Eli Z. <el...@gn...> - 2013-05-14 07:48:58
|
> Date: Mon, 13 May 2013 21:34:24 -0700 (PDT) > From: zhangxinghai <zxh...@16...> > > By the way,I try to copy sh.exe from msys/bin directory to the path in the > path variable one by one.I continue succeed until I copy to the > c:\windows\system32\wbem directory. You succeed as long as sh.exe is in a directory _before_ c:\windows\system32\wbem or as long as it is in a directory _after_ c:\windows\system32\wbem? > Then I move this directory after the c:\mingw\bin directory.Now the > path looks like this > > PATH=c:\mingw\bin;C:\WINDOWS\System32\Wbem;D:\oracle11.2g\product\11.2.0\dbhome_ > 1\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program > Files > \Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program > Files\Intel\DMIX > ;d:\Program Files\Sybase\SQL Anywhere 7\win32;d:\Program > Files\Sybase\Shared\Pow > erBuilder;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program > Files > \Microsoft SQL Server\100\DTS\Binn\;D:\Program Files\Microsoft SQL > Server\100\To > ols\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio > 9.0\Commo > n7\IDE\PrivateAssemblies\;D:\Program Files\QuickTime\QTSystem\ > > Now I succeed until I copy to the C:\WINDOWS directory.It seems the problem > concerns with the length of the path variable. I doubt that the length of PATH is the factor here. I see no limitations on that in the Make sources. E.g., my PATH is 311 characters long, which is shorter than yours, but much longer than the part up until c:\windows in your PATH. Do all the directories on your PATH exist and are accessible to your user? Also, if you invoke mingw32-make with the -d switch, do you see a line like this in its output: find_and_set_shell() path search set default_shell = D:/some/path/sh.exe Please try this both when mingw32-make works correctly and when it fails, but on the same machine. I understand that you can make it fail or succeed by moving sh.exe from one directory to another. Also, if you invoke "mingw32-make --debug=j -j80" when it fails, do you see a message like this one: Jobserver slots limited to 63 By the way, why do you have PATH instead of Path? |