This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc -print-search-dirs madness!


Perhaps a gcc guru will take pity on me and explain what's going on here?
I know, theoretically, the answer is in the source code somewhere, but since
I've never read gcc source code before, I'd probably just end up horribly
confused.

Below, gcc-search-dirs.sh is a script which calls "gcc -print-search-dirs",
splits the output of the libraries section one-per-line, and then either
flags the dir as nonexistant, or canonicalizes it by doing "cd $dir && pwd".

As you can see, gcc tries to search many nonexistant pathes, and makes no
mention of /lib/w32api, which it *does* search for libraries

Help?!?

Thanks,

Max.

max@POMELLO [~] $ ./gcc-search-dirs.sh
/usr/lib/gcc-lib/i686-pc-cygwin/3.2
NONEXISTANT: /usr/lib/gcc/i686-pc-cygwin/3.2/
NONEXISTANT:
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/lib/i686-pc-c
ygwin/3.2/
NONEXISTANT:
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/lib/
NONEXISTANT:
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../i686-pc-cygwin/3.2/
/usr/lib
NONEXISTANT: /lib/i686-pc-cygwin/3.2/
/lib
NONEXISTANT: /usr/lib/i686-pc-cygwin/3.2/
/usr/lib
max@POMELLO [~] $ ./gcc-search-dirs.sh -mno-cygwin
/usr/lib/gcc-lib/i686-pc-mingw32/3.2
NONEXISTANT: /usr/lib/gcc/i686-pc-mingw32/3.2/
NONEXISTANT:
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../../i686-pc-mingw32/lib/i686-pc
-mingw32/3.2/
/usr/i686-pc-mingw32/lib
NONEXISTANT:
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../i686-pc-mingw32/3.2/
/usr/lib
NONEXISTANT: /lib/i686-pc-mingw32/3.2/
/lib
NONEXISTANT: /usr/lib/i686-pc-mingw32/3.2/
/usr/lib


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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