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: Subject: [BUG] Cygwin default mounts in 1.7 From: Jiri Engelthaler To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=windows-1252 Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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