pkgsrc-Users archive

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

GCC and as




I'm hitting a compile issue on CentOS 6 (yes, I must continue to support this relic for a while).

I have GCC_REQD=5.5 set in mk.conf and this works fine for the vast majority of packages.  I had over 17,000 successful builds under pbulk for 2018Q1.

The problem is the old version of binutils (providing /usr/binas) as described here:

http://www.nwchem-sw.org/index.php/Special:AWCforum/st/id2207/Intel_E5-2640v3_Haswell%3A_No_such....html

I'm wondering if there is a clean way to make gcc use an alternate assembler.  I was hoping it might be as simple as

AS=             ${PREFIX}/bin/gas

Not so, unfortunately.  If not, perhaps the gcc packages should be using pkgsrc binutils on CentOS?

I verified that using a newer as gets around the issue by temporarily hacking pkgsrc as into /usr/bin.

My actual error message below.

Thanks,

    JB

cc -c -O2 -g -DDYNAMIC_ZLIB -I/usr/pkg/include -I/usr/include -std=gnu99 -DNDEBUG -DZSTD_MULTITHREAD -Wall -Wextra -Wshadow -Wformat-security -Wdouble-promotion -Wfloat-conversion -Ihtslib -Ilibdeflate -Ilibdeflate/common -Izstd/lib -Izstd/lib/common -Izstd/zlibWrapper  -o libdeflate/lib/adler32.o libdeflate/lib/adler32.c
/tmp/cc3nKXpg.s: Assembler messages:
/tmp/cc3nKXpg.s:594: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/cc3nKXpg.s:599: Error: suffix or operands invalid for `vpaddd'
/tmp/cc3nKXpg.s:604: Error: suffix or operands invalid for `vpsadbw'
/tmp/cc3nKXpg.s:609: Error: suffix or operands invalid for `vpaddd'
/tmp/cc3nKXpg.s:614: Error: suffix or operands invalid for `vpmaddwd'
/tmp/cc3nKXpg.s:619: Error: suffix or operands invalid for `vpaddd'
/tmp/cc3nKXpg.s:629: Error: suffix or operands invalid for `vphaddd'
/tmp/cc3nKXpg.s:635: Error: suffix or operands invalid for `vphaddd'
/tmp/cc3nKXpg.s:642: Error: no such instruction: `vextracti128 $0x1,%ymm1,%xmm1'
/tmp/cc3nKXpg.s:652: Error: suffix or operands invalid for `vpslld'
/tmp/cc3nKXpg.s:659: Error: suffix or operands invalid for `vpaddd'
/tmp/cc3nKXpg.s:661: Error: suffix or operands invalid for `vphaddd'
/tmp/cc3nKXpg.s:667: Error: suffix or operands invalid for `vphaddd'
/tmp/cc3nKXpg.s:674: Error: no such instruction: `vextracti128 $0x1,%ymm3,%xmm3'
make: *** [libdeflate/lib/adler32.o] Error 1
*** Error code 2



Home | Main Index | Thread Index | Old Index