Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <42DE687F.8284191C@dessent.net> Date: Wed, 20 Jul 2005 08:06:39 -0700 From: Brian Dessent 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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/