Hello all, I'm still having this problem but I'm beginning to narrow it down. Here's an example of the error I get:
"J:\trunk\svn\apl\win\bin\mk_cc: /cygdrive/j/trunk/svn/apl/allos/bin/verbose: /usr/bin/sh: bad interpreter: Permission denied" I've upgraded to cygwin 1.7, and I'm running this on Windows 7 x64. Cygwin is installed on the local C drive. I've removed all anti-virus software. It seems that I only get this sporadic (and incorrect) "bad interpreter" message if my scripts are located on a mounted SAMBA drive. If I move all the scripts to my local drive the access problem goes away, but I want to keep them on the remove drive. If I run my make task with a single job (-j1) the problem goes away. Here's my mount output C:/cygwin/bin on /usr/bin type ntfs (binary,auto) C:/cygwin/lib on /usr/lib type ntfs (binary,auto) C:/cygwin on / type ntfs (binary,auto) C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto) D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto) I: on /cygdrive/i type smbfs (binary,posix=0,user,noumount,auto) J: on /cygdrive/j type smbfs (binary,posix=0,user,noumount,auto) M: on /cygdrive/m type smbfs (binary,posix=0,user,noumount,auto) U: on /cygdrive/u type smbfs (binary,posix=0,user,noumount,auto) Z: on /cygdrive/z type ntfs (binary,posix=0,user,noumount,auto) My scripts are located on /cygdrive/j which cygwin has auto-mounted from my J: drive, which I'd previously (using Windows) mapped from our SAMBA server. I've experimented with acl/noacl but that seems to make no difference, and to be honest, I'm sort of guessing a bit. I also thought I try mapping the relevant drive directly (ie //devt/files on /cygdrive/j) to remove the intermediate use of "J:", but I can't find out how to prevent cygwin from automatically mounting all my drives. I've also been trying to build a local cygwin so I can try to debug the problem, but I can't get the build process to complete (see http://article.gmane.org/gmane.os.cygwin/111950) Does anyone have any tips, or things I can try in order to get this to work? Thanks, John. -----Original Message----- From: John Daintree [mailto:jo...@dyalog.com] Sent: 24 October 2009 13:37 To: cygwin@cygwin.com Subject: RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs Hi Jurriaan, I've tried that, completely removed my Sophos anti-virus. I'm still getting the same problem. /john -----Original Message----- From: jurri...@rivierenland.xs4all.nl [mailto:jurri...@rivierenland.xs4all.nl] Sent: 23 October 2009 19:08 To: cygwin@cygwin.com Subject: Re: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs From: John Daintree <jo...@dyalog.com> Date: Fri, Oct 23, 2009 at 12:02:52PM +0100 > I've installed the beta of cygwin 1.7 and I have the same problem there. You're not running something like a virus scanner, are you? I know my scripts throw some strange errors when McAfee is running. Why these errors mostly happen at night while I'm in bed, I'm not sure. However, I do know that since I've disabled McAfee, I sleep a lot better since work never calls in the middle of the night. HTH, Jurriaan -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple