delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/02/15:13:18

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <4894B1B4.67910D93@dessent.net>
Date: Sat, 02 Aug 2008 12:12:52 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: Jason Pyeron <jpyeron AT pdinc DOT us>
CC: cygwin AT cygwin DOT com
Subject: Re: Weird filesystem permissions issue.
References: <200808021721 DOT m72HLOlk003341 AT mail DOT pdinc DOT us>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Jason Pyeron wrote:

> I am trying to compile gcc (and later ghdl) and it seems that certain files are
> inaccessible to cygwin, while easily accessed from non-cygwin applications. I
> installed another disk and formatted it FAT32 as a workaround right now, but
> what might the problem be or where can I start researching this one?

If you check your mount table I think you'll see that /usr/src has been
switched to managed mode, yet those filenames contain uppercase
characters that are not escaped.  I don't recall right now all the
circumstances as to which postinstall script makes this change, probably
one of the gcc postinstalls.  Or maybe it's setup itself when you select
any source package.  I think the reasoning was that one or more source
packages contain filenames that cannot be represented by Win32 filename
rules, so the /usr/src dir has to be set to managed mode.  The problem
is that managed mounts only work when the files in them are created by
Cygwin, which does the filename mangling.  If something else (in this
case setup) writes files to a managed mount then the mangling won't
occur and Cygwin will get confused because it expects the filenames to
have been mangled.

What I would do: turn off managed mode, erase everything in /usr/src,
turn managed mode back on, unpack the source packages by hand with tar. 
Further, I'm pretty sure that managed mode is not required for any of
the FSF gcc parts, only for one of the out-of-tree add-on languages like
D or Pascal.  So if you're not unpacking/building those you can skip the
whole ordeal.

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/

- Raw text -


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