This is the mail archive of the gcc@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]

Re: intermittent gcc bug with /usr/ccs/bin/as


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".


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