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

Bug 930260

Summary: dev-libs/openssl:3.2.1-r2 Failed bootstrap on ppc unrecognized opcode: Error: unrecognized opcode: `stvx'
Product: Gentoo Linux Reporter: germ <germtoo>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: erhard_f, germtoo, matoro_gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/openssl/openssl/issues/20681
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: complete build log
info.txt

Description germ 2024-04-19 20:44:04 UTC
Created attachment 891133 [details]
complete build log

To Reproduce:

1.) Update ppc32 system to GCC14
2.) Attempt to compile dev-libs/openssl:3.2.1-r2

Command to reproduce... powerpc-gentoo-linux-musl-gcc -fPIC -pthread -Wa,--noexecstack -Os -mcpu=powerpc -mtune=powerpc -pipe -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib/engines-3\"" -DMODULESDIR="\"/usr/lib/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG  -c -o crypto/chacha/libcrypto-lib-chachap10-ppc.o crypto/chacha/chachap10-ppc.s
Comment 1 germ 2024-04-19 20:44:51 UTC
Created attachment 891134 [details]
info.txt

emerge --info
Comment 2 ernsteiswuerfel archtester 2024-05-21 19:27:42 UTC
Got a hint on #gentoo-powerpc that one of the current Gentoo ppc patches may be the problem here.

You may try building openssl after building GCC 14 without that patch.

To do that use the now ~ppc keyworded GCC 14 and modify src_prepare() in the ebuild like this:

src_prepare() {
        local p upstreamed_patches=(
                # add them here
                76_all_ppc_PR112868-no-checking-many.patch
        )

BTW I see you are using -mtune=powerpc in your build. You probably don't need that because -mpcu=powerpc emits generic ppc code. -mtune= makes only sense in tuning for a specific cpu like G3 or G4 etc.