From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13047 invoked by alias); 20 Jul 2005 15:29:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12944 invoked by uid 22791); 20 Jul 2005 15:29:25 -0000 Received: from dessent.net (HELO dessent.net) (66.17.244.20) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 20 Jul 2005 15:29:25 +0000 Received: from localhost ([127.0.0.1] helo=dessent.net) by dessent.net with esmtp (Exim 4.50) id 1DvG5u-0000kP-GW for cygwin@cygwin.com; Wed, 20 Jul 2005 15:02:48 +0000 Message-ID: <42DE687F.8284191C@dessent.net> Date: Wed, 20 Jul 2005 16:25:00 -0000 From: Brian Dessent MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Error running gcc ("No such file or directory" error for as.exe) References: <158B6C2B3023D3119CC000508B08FA3C035749C0@ukrintx01.oxinst.co.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@cygwin.com X-SW-Source: 2005-07/txt/msg00924.txt.bz2 James.Beard@oxinst.co.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/