This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug c++/12975] if exec-prefix set/ g++ looks for include files in wrong place


------- Additional Comments From boyland at cs dot uwm dot edu  2003-11-10 02:32 -------
Actually, even without symbolic links there are problems.
(My previous example, however, failed to show that
since I ran g++ through a symbolic link.)
Here's another -v run that uses the exec-prefix path directly.
Notice the "non-existent" directories.  They are compiled into
the binary with lots of ../'s as explained in the original bug report.

A new link-free execution:

% /afs/cs.uwm.edu/package/gcc/gcc-3.3/sun4x_58/bin/g++ -v test.cc
Reading specs from
/afs/cs.uwm.edu/package/gcc/gcc-3.3/sun4x_58/lib/gcc-lib/sparc-sun-solaris2.8/3.3/specs
Configured with: /afs/cs/package/gcc/temp-link/common/gcc-3.3/configure
--prefix=/afs/cs.uwm.edu/package/gcc/gcc-3.3/common
--exec-prefix=/afs/cs.uwm.edu/package/gcc/gcc-3.3/sun4x_58 --enable-languages=c,c++
Thread model: posix
gcc version 3.3
 /afs/cs.uwm.edu/package/gcc/gcc-3.3/sun4x_58/lib/gcc-lib/sparc-sun-solaris2.8/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -Dsparc -D__sparc__ -D__sparc -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc test.cc -D__GNUG__=3 -quiet -dumpbase test.cc -auxbase test -version -o /var/tmp//ccij82f8.s
GNU C++ version 3.3 (sparc-sun-solaris2.8)
        compiled by GNU C version 3.3.
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32768
ignoring nonexistent directory "/include/c++/3.3"
ignoring nonexistent directory "/include/c++/3.3/sparc-sun-solaris2.8"
ignoring nonexistent directory "/include/c++/3.3/backward"
ignoring nonexistent directory "/afs/sparc-sun-solaris2.8/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /afs/cs.uwm.edu/package/gcc/gcc-3.3/common/include
 /afs/cs.uwm.edu/package/gcc/gcc-3.3/sun4x_58/lib/gcc-lib/sparc-sun-solaris2.8/3.3/include
 /usr/include
End of search list.
test.cc:1:16: list: No such file or directory
test.cc:7: error: 'list' is used as a type, but is not defined as a type.

BTW: I'm installing a version with --with-gxx-include-dir, so if you have AFS
and want to try things out yourself, it won't be there anymore.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12975


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