Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 935064

Summary: app-benchmarks/stress-ng-0.18.00 - fails to build with -mcpu=G5: Error: unrecognized opcode: `lvx' [...]
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Conrad Kostecki <conikost>
Status: UNCONFIRMED ---    
Severity: normal CC: erhard_f, sam
Priority: Normal    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
URL: https://github.com/ColinIanKing/stress-ng/issues/406
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log (ppc64, 0.18.0)
emerge --info

Description ernsteiswuerfel archtester 2024-06-28 15:25:15 UTC
Created attachment 896561 [details]
build.log (ppc64, 0.18.0)

Builds ok with -mcpu=power9 but fails to build with -mcpu=G5 or -mcpu=970.

[...]
powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=970 -mtune=970 -O2 -maltivec -mabi=altivec -pipe -Wall -Wextra -DVERSION='"0.18.00"' -std=gnu99 -Wformat -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Werror=format-security -c -o stress-quota.o stress-quota.c
CC stress-qsort.c
powerpc64-unknown-linux-gnu-gcc -O2 -mcpu=970 -mtune=970 -O2 -maltivec -mabi=altivec -pipe -Wall -Wextra -DVERSION='"0.18.00"' -std=gnu99 -Wformat -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Werror=format-security -c -o stress-qsort.o stress-qsort.c
{standard input}: Assembler messages:
{standard input}:4996: Error: unrecognized opcode: `lvx'
{standard input}:4997: Error: unrecognized opcode: `lvx'
{standard input}:5000: Error: unrecognized opcode: `lvsr'
{standard input}:5003: Error: unrecognized opcode: `lvsr'
[...]
{standard input}:7667: Error: unrecognized opcode: `vperm'
{standard input}:7668: Error: unrecognized opcode: `stvx'
{standard input}:7669: Error: unrecognized opcode: `stvx'
make: *** [Makefile:708: stress-qsort.o] Error 1
Comment 1 ernsteiswuerfel archtester 2024-06-28 15:26:05 UTC
Created attachment 896562 [details]
emerge --info
Comment 2 ernsteiswuerfel archtester 2024-06-30 13:56:06 UTC
Upstream suggests Gentoo toolchain may have a problem as building with debian powerpc-linux-gnu-gcc-13 toolchain and -mcpu=G5 worked fine:

https://github.com/ColinIanKing/stress-ng/issues/406
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-30 17:51:24 UTC
Mysterious. Is it the GCC checking nonsense again, I wonder?