delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/20/11:29:58

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <42DE687F.8284191C@dessent.net>
Date: Wed, 20 Jul 2005 08:06:39 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Error running gcc ("No such file or directory" error for as.exe)
References: <158B6C2B3023D3119CC000508B08FA3C035749C0 AT ukrintx01 DOT oxinst DOT co DOT uk>
X-Spam-Report: -5.9/5.0 ---- Start SpamAssassin results * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

James DOT Beard AT oxinst DOT co DOT uk wrote:

> What is odd is that there is no doubt that this file (as.exe) exists.
> If I do:
>         ls -l
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe
> the file is listed as expected with full execute permissions set.
> 
> If I try, from the command line, to execute the file, I get the following:
> 1) If I am in the directory itself (which equates to
> /usr/i686-pc-cygwin/bin), I can execute the file.
> 2) If I am in any other directory, I can see the file, but I cannot execute
> it (again get the "No such file or directory" error).

If you are using one of the versions of Cygwin that defaulted to
traverse checking turned on, then there's a chance that this could be
your problem.  Though I don't know if that is possible since it works if
you run it from the same directory.

In order to know if this is the case we would need to know what version
of Cygwin you're using, what the permissions on each component of the
path to as.exe are, and whether adding 'notraverse' to $CYGWIN makes a
difference.  Regardless of the question of traverse checking, you should
post the output of getfacl for /usr, /usr/i686-pc-cygwin,
/usr/i686-pc-cygwin/bin, and /usr/i686-pc-cygwin/bin/as.exe.

Incidently, much of this information would have been already known to us
if you had included your "cygcheck -svr" output.  If you're not going to
follow the guidelines at <http://cygwin.com/problems.html> then people
are going to be less likely to want to help you.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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