Wrong assembler used with gcc 4.3.0 on Solaris 9

Dennis Clarke dclarke@blastwave.org
Wed Apr 2 21:46:00 GMT 2008

>> -----Message d'origine-----
>> De : gcc-help-owner@gcc.gnu.org
>> [mailto:gcc-help-owner@gcc.gnu.org] De la part de Jim Wilson
>> Envoyé : mercredi 2 avril 2008 08:32
>> À : Langella Raphael
>> Cc : gcc-help@gcc.gnu.org
>> Objet : Re: Wrong assembler used with gcc 4.3.0 on Solaris 9
>> Langella Raphael wrote:
>> > I don't understand why the default solaris assembler is
>> used instead of the binutils one (which can be found at the
>> very beginning of my PATH).
>> GCC has its own built-in paths for finding things.  The best
>> solution here is to always use the same --prefix when
>> configuring binutils and gcc.  And build and install binutils
>> before building and installing gcc.
>>   Then gcc should automatically find binutils and everything
>> should just work.
>> If it still doesn't work, you might need to add extra
>> configure options like --with-gnu-as=/path/to/gnu/as, but
>> these aren't needed normally.
>> Jim
> Thanks for your advice. I've found a solution by setting COMPILER_PATH to my
> binutils.
> To answer Dennis who asked why I don't use the native as and ld, it's
> because it doesn't work. That's the point of my initial post.

As a cross compiler .. right. That would not fly at all.


More information about the Gcc-help mailing list