This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc-2 ..../bin/as.exe: Permission denied


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@helixdigital.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]