X-Recipient: archive-cygwin@delorie.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" <johnd@dyalog.com>
To: <cygwin@cygwin.com>
References: <hbn24q$gjf$1@ger.gmane.org> <hbs2gv$4cs$1@ger.gmane.org> <20091023180754.GB5001@onderneming10.xs4all.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@dyalog.co.uk}
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@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: jurriaan@rivierenland.xs4all.nl
[mailto:jurriaan@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 <johnd@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

