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]

preprocessor/1810: /usr/local/include not searched



>Number:         1810
>Category:       preprocessor
>Synopsis:       /usr/local/include not searched
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 30 08:26:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     neil@dcs.kcl.ac.uk
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
Solaris or Linux
>Description:
gcc is configured with --prefix=/usr/local/pkg/gcc-2.95.2
it does not then search /usr/local/include (or /usr/local/lib for libraries). Using --local-prefix has no effect on the problem.

root-argon:/usr/local/pkg (187) # /usr/local/pkg/gcc-2.95.2/bin/gcc -v -S -o /dev/null -xc /dev/null
Reading specs from /usr/local/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) /dev/null /var/tmp/ccSdV4gU.i
GNU CPP version 2.95.2 19991024 (release) (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/pkg/gcc-2.95.2/include
 /usr/local/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/../../../../sparc-sun-solaris2.8/include
 /usr/local/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/local/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/../../../../include/g++-3
End of omitted list.
 /usr/local/pkg/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/cc1 /var/tmp/ccSdV4gU.i -quiet -dumpbase null.c -version -o /dev/null
GNU C version 2.95.2 19991024 (release) (sparc-sun-solaris2.8) compiled by GNU C version 2.95.2 19991024 (release).


The problem does not occur with gcc-2.8.1:

root-argon:/usr/local/pkg (188) # /usr/local/pkg/gcc-2.8.1/bin/gcc -v -S -o /dev/null -xc /dev/null
Reading specs from /usr/local/pkg/gcc-2.8.1/lib/gcc-lib/sparc-sun-solaris2.8/2.8.1/specs
gcc version 2.8.1
 /usr/local/pkg/gcc-2.8.1/lib/gcc-lib/sparc-sun-solaris2.8/2.8.1/cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=8 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) /dev/null /var/tmp/cc4aa4ns.i
GNU CPP version 2.8.1 (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/pkg/gcc-2.8.1/sparc-sun-solaris2.8/include
 /usr/local/pkg/gcc-2.8.1/lib/gcc-lib/sparc-sun-solaris2.8/2.8.1/include
 /usr/include
End of search list.
 /usr/local/pkg/gcc-2.8.1/lib/gcc-lib/sparc-sun-solaris2.8/2.8.1/cc1 /var/tmp/cc4aa4ns.i -quiet -dumpbase null.c -version -o /dev/null
GNU C version 2.8.1 (sparc-sun-solaris2.8) compiled by GNU C version 2.95.2 19991024 (release).


>How-To-Repeat:

>Fix:
edit the specs file by hand :-(
>Release-Note:
>Audit-Trail:
>Unformatted:

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