Errors while compiling with gcc/g++ compiler.
/usr/ccs/bin/as: " stdin", line 68488: error: unknown opcode ".subsection"
/usr/ccs/bin/as:" stdin", line 68488: error: statement syntax
/usr/ccs/bin/as:" stdin", line 68497: error: unknown opcode ".previous"
/usr/ccs/bin/as:" stdin", line 68497: error: statement syntax
/usr/ccs/bin/as:" stdin", line 88369: error: unknown opcode ".weakref"
/usr/ccs/bin/as:" stdin", line 88369: error: statement syntax
/usr/ccs/bin/as:" stdin", line 88370: error: unknown opcode ".weakref"
/usr/ccs/bin/as:" stdin", line 88370: error: statement syntax
/usr/ccs/bin/as:" stdin", line 88371: error: unknown opcode ".weakref"
/usr/ccs/bin/as: " stdin", line 88371: error: statement syntax
/usr/ccs/bin/as:" stdin", line 88372: error: unknown opcode ".weakref"
/usr/ccs/bin/as: " stdin", line 88372: error: statement syntax
/usr/ccs/bin/as:" stdin", line 88373: error: unknown opcode ".weakref"
/usr/ccs/bin/as:" stdin", line 88373: error: statement syntax
/usr/ccs/bin/as:" stdin", line 88374: error: unknown opcode ".weakref"
/usr/ccs/bin/as: " stdin", line 88374: error: statement syntax
/usr/ccs/bin/as: " stdin", line 88375: error: unknown opcode ".weakref"
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as: " stdin"
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as:
/usr/ccs/bin/as: " stdin"
/usr/ccs/bin/as: " stdin"
Possible situations:
1. When we are trying to compile in Solaris 10 having migrated from Solaris 8
2. When we trying to compile using GNU compilers and did compilation recently with SUN CC compilers.
GNU compiler have its own method to call /usr/ccs/bin/as binary.
We can change this and make GNU assembler to take on '/usr/ccs/bin/as' with our GNU 'as' located /usr/local/sparc-sun-solaris2.10/bin/
Create a file 'as' in your gcc/g++ installed path '/usr/local/gcc-4.5.0/libexec/gcc/sparc-sun-solaris2.10/4.5.0/' and give a soft link to it so that it should point to '/usr/local/sparc-sun-solaris2.10/bin/as' binary.