delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/09/21/04:49:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Date: Fri, 21 Sep 2012 10:48:12 +0200
Message-ID: <CAHODtZQ6y8H=Teje=sjdBms_h9i45zFtY+76ihbFiTHgkamRug@mail.gmail.com>
Subject: [BUG] Cygwin default mounts in 1.7
From: Jiri Engelthaler <engycz AT gmail DOT com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q8L8n65d013963

Hello Cygwin developers
I have a problem with cygwin default mounts
I have compiled gcc cross compiler for powerpc (some problem with arm
cross) and installed to destination directory. Installed directory
structure is (truncated)

+bin
|   +powerpc-unknown-linux-gnu-gcc.exe
+include
+lib
+libexec
|   +gcc
|      +powerpc-unknown-linux-gnu
|          +4.4.7
|               +cc1.exe
+powerpc-unknown-linux-gnu
+share

When I start “powerpc-unknown-linux-gnu-gcc.exe a.c” in “bin”
directory from windows command line, compiler fails with
“powerpc-unknown-linux-gnu-gcc: error trying to exec 'cc1': execvp: No
such file or directory”. Starting compiler from bash shell works fine
and a.c is compiled.
“powerpc-unknown-linux-gnu-gcc --print-search-dirs” says that one of
search paths for programs is
“/usr/bin/../libexec/gcc/powerpc-unknown-linux-gnu/4.4.7/” so all
should work.
But problem is with “/usr/bin” prefix. I have made tests with “ls” and
“pwd” copied do “bin” directory and found that:
- “pwd” is “/usr/bin”
- “ls” shows “bin” directory content
- “ls ..” shows “ls: cannot access ..: No such file or directory”
- “ls /” shows “bin  cygdrive  dev  etc  include  lib  libexec
powerpc-unknown-linux-gnu  proc  share”

Core of problem is that pwd for “bin” directory is “/usr/bin”, but
“/usr/bin/..” is not accessible.
How to mount current directory as "/cygdrive/c/foo/bar/...../bin"
while executing pwd or ls?

  Thank you for your answer and have a nice day.
      Jiri Engelthaler

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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