[BUG] Cygwin default mounts in 1.7
Jiri Engelthaler
engycz@gmail.com
Fri Sep 21 10:38:00 GMT 2012
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
More information about the Cygwin
mailing list