Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930260 - dev-libs/openssl:3.2.1-r2 Failed bootstrap on ppc unrecognized opcode: Error: unrecognized opcode: `stvx'
Summary: dev-libs/openssl:3.2.1-r2 Failed bootstrap on ppc unrecognized opcode: Error:...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-19 20:44 UTC by germ
Modified: 2024-05-21 19:27 UTC (History)
3 users (show)

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


Attachments
complete build log (buildlog.txt,196.44 KB, text/plain)
2024-04-19 20:44 UTC, germ
Details
info.txt (info.txt,5.31 KB, text/plain)
2024-04-19 20:44 UTC, germ
Details

Note You need to log in before you can comment on or make changes to this bug.
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.