How to update Solaris assembler after updating to GCC 5?
1
vote
0
answers
530
views
This is related to [Where is GCC-5 after installing it on Solaris 11?](https://unix.stackexchange.com/q/339296/56041) We got GCC 5 installed thanks to @DanekDuvall. We started a round of Solaris testing...
Testing on Solaris with GCC 5 is [revealing an old assembler](https://github.com/weidai11/cryptopp/issues/551) :
$ gmake
...
g++ -DNDEBUG -g2 -O3 -fPIC -m64 -Wa,--divide -pthread -pipe -msse4.2 -msha -c sha-simd.cpp
{standard input}: Assembler messages:
{standard input}:166: Error: no such instruction: `sha1rnds4 $0,%xmm0,%xmm7'
{standard input}:199: Error: no such instruction: `sha1nexte %xmm0,%xmm2'
{standard input}:206: Error: no such instruction: `sha1msg1 %xmm0,%xmm10'
{standard input}:212: Error: no such instruction: `sha1rnds4 $0,%xmm2,%xmm9'
{standard input}:239: Error: no such instruction: `sha1nexte %xmm2,%xmm7'
...
GCC 5.0 added SHA instrinsic support and Binutils 2.24 added SHA support so I believe the GNU machinery has what is needed. I believe I am missing an updated assembler on Solaris.
How do we install the updated assembler needed by GCC 5? Or, is there something else we should be doing?
------
***First (naive) attempt***:
$ sudo pkg install gcc-5 gcc-c-5 gcc-c++-5 gcc-as-5 gcc-ar-5
Password:
pkg install: The following pattern(s) did not match any allowable packages. Try
using a different matching pattern, or refreshing publisher information:
gcc-as-5
gcc-ar-5
***Second attempt***:
$ pkg search as | grep -i gcc
basename link usr/sfw/libexec/gcc/i386-pc-solaris2.11/3.4.3/as
pkg:/developer/gcc-3@3.4.3-0.175.3.0.0.30.0
basename link usr/sfw/libexec/gcc/sparc-sun-solaris2.11/3.4.3/as
pkg:/developer/gcc-3@3.4.3-0.175.3.0.0.30.0
***Third attempt***:
$ pkg search as | grep -i assembler
basename file usr/bin/as
pkg:/developer/assembler@0.5.11-0.175.3.9.0.2.0
***Fourth attempt***:
$ pkg search binutil
$
-----
This may be relevant:
$ /usr/bin/as -V
Asked by user56041
Dec 28, 2017, 07:38 PM
Last activity: Dec 28, 2017, 11:02 PM
Last activity: Dec 28, 2017, 11:02 PM