This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: intermittent gcc bug with /usr/ccs/bin/as
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Edward Peschko <esp5 at pge dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 9 Dec 2004 15:48:42 -0800
- Subject: Re: intermittent gcc bug with /usr/ccs/bin/as
- References: <20041209224724.GA27975@venus>
On Thu, Dec 09, 2004 at 02:47:25PM -0800, Edward Peschko wrote:
> Basically, some times gcc ignores the fact that a gnu 'as' is in my path,
> and opts to use /usr/ccs/bin/as instead.
Perhaps you're running Solaris, and you didn't specify "--with-gnu-as",
or an explicit assembler, when you built gcc?
gcc does not use your path to find the assembler (or, rather, it uses the
path only if it fails to find an assembler in standard places). It has
its own concept of the path to be used to search for compiler passes.
To force the use of a particular assembler, you can make a symbolic link
from the directory where the compiler passes (cc1, cc1plus, etc) are
stored, to the assembler you want, with the name "as". This location is
always searched first. With 3.4.x this directory is
$prefix/libexec/gcc/$system/$version
where $prefix is the --prefix specified when you ran configure, $system
is the target triplet, e.g. "sparc-sun-solaris2.9", "i686-pc-linux-gnu",
etc., and $version is the version, e.g. "3.4.3".