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
Created attachment 891134 [details] info.txt emerge --info
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.
Ah, wait, the upstream bug is legitimate.
*** Bug 934362 has been marked as a duplicate of this bug. ***