delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/30/03:56:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
From: "John Daintree" <johnd AT dyalog DOT com>
To: <cygwin AT cygwin DOT com>
References: <hbn24q$gjf$1 AT ger DOT gmane DOT org> <hbs2gv$4cs$1 AT ger DOT gmane DOT org> <20091023180754 DOT GB5001 AT onderneming10 DOT xs4all DOT nl> <000001ca54a6$a1553260$e3ff9720$@com> <000001ca57dc$8b18a430$a149ec90$@com> <20091029082244 DOT GK28753 AT calimero DOT vinschen DOT de> <003901ca588a$7edc0500$7c940f00$@com> <20091029133834 DOT GO28753 AT calimero DOT vinschen DOT de>
In-Reply-To: <20091029133834.GO28753@calimero.vinschen.de>
Subject: RE: "Permission denied" on /usr/bin/sh when running gmake with multiple jobs
Date: Fri, 30 Oct 2009 08:55:50 -0000
Message-ID: <000901ca593e$c938fcc0$5baaf640$@com>
MIME-Version: 1.0
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi Corinna,

I was using a "gmake" not the cygwin "make", and that was generating the
windows path. I've moved over to the cygwin supplied make and fixed up all
the relevant environment variables. No windows paths anymore but I'm still
getting the permission problem.

None of the scripts are created dynamically.

I'd tried strace before, but didn't really know how to interpret the output
or locate the relevant bits. (is there an article that describes the
output?)

I've run the make again under strace and posted the output of both strace
and make (I couldn't find how to have the output of both go to the same
file) to www.johndaintree.com/index.htm. Would it be too much to ask that
you take a look?

Thanks for your help,

john.



-----Original Message-----
From: Corinna Vinschen [mailto:corinna-cygwin AT cygwin DOT com] 
Sent: 29 October 2009 13:39
To: cygwin AT cygwin DOT com
Subject: Re: "Permission denied" on /usr/bin/sh when running gmake with
multiple jobs



http://cygwin.com/acronyms/#TOFU


On Oct 29 11:25, John Daintree wrote:
> Can you shed some light on
http://article.gmane.org/gmane.os.cygwin/111950?
> I may need to get my local cygwin build working to investigate this
further.

>> "J:\trunk\svn\apl\win\bin\mk_cc:
>> /cygdrive/j/trunk/svn/apl/allos/bin/verbose: /usr/bin/sh: bad
interpreter:
>> Permission denied"

Where's this Windows path coming from?  Are you sure you're using only
Cygwin tools?  If so, get rid of the Win32 path and use either the
matching /cygdrive path, or mount (the relevant subtree of) drive J to
some other POSIX path.

The permission denied is probably not the permission of sh itself, but
the permissions of the script.  It's lacking execute permissions,
perhaps.  If the script gets generated during the make run, it might
be a race.  One job tries to use the script before another job has
run chmod on the script.

Instead of building your own debug version of Cygwin, you could also
just start with stracing your make runs and see what happens when the
script access fails.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019