This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Any way to force GCC to completely ignore default paths?
- From: scott dot a dot johnson at exgate dot tek dot com
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 7 Nov 2002 15:24:34 -0800
- Subject: Any way to force GCC to completely ignore default paths?
I've got a problem.
We are using a custom built GCC (2.95.3, powerpc/vxworks target), built with
--prefix=/login/scottjoh/gcc (my home directory; I do not have root access
on the machine it was built on) and subsequently installed elsewhere. Our
build scripts use the -B option everywhere to point GCC to the *correct*
location of its files, and all works well.
To make sure I was decoupled from the original build directory; the
/login/scottjoh/gcc directory was subsequently renamed, and GCC thoroughly
tested. All worked fine.
Until this morning, when the workstation that it was built on crashed and
died (and no longer is functional), but still has an NFS mount pointed at
it. When gcc runs,
it stats the above directory, gets an NFS timeout (or similar error code),
and dies. This has an entire design team out of commission.
We are working on the latter problem (again, I'm dependent on the sysadmins
to fix these problems). In the meantime, and to keep this from happening in
the future; is there any way to tell GCC to COMPLETELY DISREGARD the default
install path? (In other words, do not attempt to open or stat it AT ALL)
The -B option (and the GCC_EXEC_PREFIX environment variable) override it, so
that the specified path is searched before the default install path; however
GCC still checks the default install path for everything. Alternately, is
there any way (other than rebuilding the compiler or patching the binary,
neither of which I would like to do) to change the default install path?
Thanks,
Scott