This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: CT 0.29 - stuck compiling gcc 4.0 glibc 2.2.5 ppc405: execvp: /bin/sh: Resource temporarily unavailable


On Fri, Mar 25, 2005 at 10:35:06PM +0100, Martin Egholm Nielsen wrote:
>>>>>>Having scanned the man-page I'm still a bit confused abouts it's 
>>>>>>doing. It's seems like I have to indicate each and every directory 
>>>>>>containing binaries in question explicitly.
>>>>>Yes, of course.  As opposed to... what?  Wildcards?
>>>>I thought at first that it would affect entire subtrees, like mount
>>>>usually does.
>>>It does affect entire subtrees.  I wouldn't think that you'd want every
>>>file in an entire subtree to be considered to be a cygwin executable
>>>though.  YMMV.
>This should probably read "does _not_ affect" - right?! Otherwise, I
>cannot make the next sentence make sense...

Uh.  Huh?

Let me say it again: The cygwin mount command affects the entire
subtree.  If you do this:

  mount -f -X c:\cygwin /usr

Then every file in /usr/bin will be considered to be a cygwin executable,
as well as every file in /usr/share/doc and /usr/share/man.  If that doesn't
bother you then, by all means, just use the above to mount a subtree.

>>Well, if all it affects is how commandlines are passed etc., I probably do.
>>Can you sanity-check the mounts I plan to use?
>>Assuming it's run from the cygwin bash prompt, I'd type
>>  mount -f -X 'c:\DATA\crosstool-0.29' '/cygdrive/c/DATA/crosstool-0.29'
>>  mount -f -X 'c:\DATA\opt\crosstool' '/cygdrive/c/DATA/opt/crosstool'
>>to mark both the build tree and the install tree as containing
>>pure Cygwin executables (and lots of data files and directories).

I missed this the first time.  You seem to be confused here.

/cygdrive/X is what cygwin uses to more-or-less reference unmounted
drives.  You wouldn't use that in the second argument to mount.  If you
inspect the man page you'll see examples of how to use mount, and you'll
see that /cygdrive is not used in this fashion.

If you want cygwin to consider every single file in the
c:\DATA\opt\crosstool hierarchy to be an executable cygwin binary then
you'd do something like:

 mount -f -X 'c:\DATA\opt\crosstool' '/opt/crosstool'

This is sort of equivalent to doing something like:

  find /opt/crosstool -type f | xargs chmod a+x

on UNIX, i.e., every single file will be given executable permissions and,
if you try to execute a file, it will be considered to be a cygwin
executable.

cgf

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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