X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org From: "John Daintree" To: References: <20091023180754 DOT GB5001 AT onderneming10 DOT xs4all DOT nl> <000001ca54a6$a1553260$e3ff9720$@com> In-Reply-To: <000001ca54a6$a1553260$e3ff9720$@com> Subject: RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs Date: Wed, 28 Oct 2009 14:39:59 -0000 Message-ID: <000001ca57dc$8b18a430$a149ec90$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Identified-User: {765:host89.hostmonster.com:dyalogco:dyalog.co.uk} {sentby:smtp auth 81.187.162.50 authed with johnd AT dyalog DOT co DOT uk} X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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:johnd AT dyalog DOT com] Sent: 24 October 2009 13:37 To: cygwin AT cygwin DOT 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: jurriaan AT rivierenland DOT xs4all DOT nl [mailto:jurriaan AT rivierenland DOT xs4all DOT nl] Sent: 23 October 2009 19:08 To: cygwin AT cygwin DOT com Subject: Re: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs From: John Daintree 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