Wrong assembler used with gcc 4.3.0 on Solaris 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've built gcc 4.3.0 (with ada) and binutils 2.18 on Solaris 9. Hello world program works fine in C, but fails in C++ and ada :

# g++ hello.cxx
/usr/ccs/bin/as: "/var/tmp//ccDeMxqh.s", line 139: error: unknown opcode ".weakref"
/usr/ccs/bin/as: "/var/tmp//ccDeMxqh.s", line 139: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccDeMxqh.s", line 140: error: unknown opcode ".weakref"
[and a lot more of these errors]

The same happens with gnatmake and an ada helloworld.

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

This works :
g++ -S hello.cxx
as -xarch=v9 hello.s

How to specify which assembler to use ? Why doesn't it use the first one found in PATH ?

Regards,
Raphaël Langella


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux