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 Date: Sun, 19 Jan 2003 07:07:46 -0800 From: Dario Alcocer To: cygwin AT cygwin DOT com Subject: Re: gcc-2 ..../bin/as.exe: Permission denied Message-ID: <20030119070746.A4241@ns.helixdigital.com> References: <20030117054336 DOT GA2747 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030117054336.GA2747@redhat.com>; from cgf-noreply@cygwin.com on Fri, Jan 17, 2003 at 12:43:36AM -0500 On Fri, Jan 17, 2003 at 12:43:36AM -0500, Christopher Faylor wrote: > On Fri, Jan 17, 2003 at 04:35:15PM +1100, Brendan Kosowski wrote: > >I have just installed cygwin on win98se using setup.exe. I selected gcc-2 > >as the only extra on top of the base install. I told setup that I am the > >only user and I use unix style text files. > > > >When I run "Cygwin Bash Shell" and try to compile a C program in my home > >dir (eg. "gcc-2 -o mytest.exe mytest.c ) I get the following error > >message: > > > >gcc-2: installation problem, cannot exec > >'/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-10/../../../../i686-pc-cygwin/ > >bin/as.exe': Permission denied > > > >Thanks for any help. > > Check out http://cygwin.com/bugs.html, specifically the part about sending > cygcheck output. Chris, I ran into a similar problem[1] this *just* yesterday. With the help of the Cygwin FAQ, I remembered that symlinks are expected to have the DOS/NT system attribute set. I launched command.com, changed the directory c:\cygwin\usr\i686-pc-cygwin, and ran 'attrib', and as.exe did not have the system attribute set. I then ran 'attrib +s *.exe' from command.com, and retried my compile, and it started working again. So, somehow the system attribute is getting wiped out after installation. I'll look into it some more and post anything I find. [1] - I'm using gcc-3, and Brendan is using gcc-2, but I guess the problem is independent of gcc version. -- Dario Alcocer -- Sr. Software Developer, Helix Digital Inc. alcocer AT helixdigital DOT com -- http://www.helixdigital.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/