delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/19/12:13:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Sun, 19 Jan 2003 09:11:59 -0800
From: Dario Alcocer <alcocer AT helixdigital DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gcc-2 ..../bin/as.exe: Permission denied
Message-ID: <20030119091159.B4241@ns.helixdigital.com>
References: <Pine DOT BSF DOT 3 DOT 96 DOT 1030117162419 DOT 32267A-100000 AT garfield DOT bmk DOT com DOT au>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <Pine.BSF.3.96.1030117162419.32267A-100000@garfield.bmk.com.au>; from brendan@bmk.com.au on Fri, Jan 17, 2003 at 04:35:15PM +1100

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

Just curious; are you running Windows stand-alone, or in an emulated
environment?  I ran into a very similar problem as yours yesterday
using gcc-3 (also running Windows 98 SE), but running under Win4Lin.

What I found in my case is that Cygwin symbolic links lose the DOS
system attribute after Win4Lin shuts down.  Since
.../i686-pc-cygwin/bin/as.exe is supposed to a symbolic link to
/usr/bin/as.exe, gcc cannot run the assembler due to the broken
symbolic link.  I verified that this does not happen under a
stand-alone (non-Win4Lin) Win98SE installation; the system attribute
persists between reboots.

Check the attributes for C:\cygwin\usr\i686-pc-cygwin\bin\as.exe
from a DOS command line using the 'attrib' command.  If the 'S'
flag isn't displayed, then reset the system attributes using the
command 'attrib +s *.exe'.

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

- Raw text -


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