Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935064 - app-benchmarks/stress-ng-0.18.00 - fails to build with -mcpu=G5: Error: unrecognized opcode: `lvx' [...]
Summary: app-benchmarks/stress-ng-0.18.00 - fails to build with -mcpu=G5: Error: unrec...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal
Assignee: Conrad Kostecki
URL: https://github.com/ColinIanKing/stres...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-28 15:25 UTC by ernsteiswuerfel
Modified: 2024-07-20 21:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (ppc64, 0.18.0) (stress-ng-0.18.00:20240628-145259.log,145.83 KB, text/plain)
2024-06-28 15:25 UTC, ernsteiswuerfel
Details
emerge --info (file_935064.txt,6.44 KB, text/plain)
2024-06-28 15:26 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
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?
Comment 4 Conrad Kostecki gentoo-dev 2024-07-20 21:13:52 UTC
Any further news here?