--print-prog-name=include

Ulrich Drepper drepper@redhat.com
Wed Jul 5 19:43:00 GMT 2000


The current gcc cannot handle

	gcc --print-prog-name=include

anymore.  Until last week it printed the complete path of the gcc
include directory, now it only prints "include" (which would be the
correct answer if there wouldn't be any directory named "include" in
the gcc directories).

Looking at the output of `strace' I can see that gcc actually finds
the directory but continues to search and then decides it failed.


access("/usr/lib/gcc-lib/i686-pc-linux/specs", R_OK) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc-lib/i686-pc-linux/2.96/include", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/usr/lib/gcc-lib/i686-pc-linux/2.96/include", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/usr/lib/gcc-lib/i686-pc-linux/include", 0xbffff608) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/i686-pc-linux/2.96/include", 0xbffff608) = -1 ENOENT (No such file or directory)
stat("/usr/lib/gcc/i686-pc-linux/include", 0xbffff608) = -1 ENOENT (No such file or directory)


This is on Linux/x86 with a compiler compiled using `make bootstrap'.
The sources are from the mainline CVS archive checked out at about
2000-07-05T17:00-0700.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Gcc-bugs mailing list