dev-libs/openssl-3.2.1-r1 fails to build on s390x (64bit) with USE=-asm crypto/x509/libcrypto-shlib-x_x509.o \ crypto/x509/libcrypto-shlib-x_x509a.o \ providers/libcrypto-shlib-baseprov.o \ providers/libcrypto-shlib-defltprov.o \ providers/libcrypto-shlib-nullprov.o \ providers/libcrypto-shlib-prov_running.o \ providers/libdefault.a providers/libcommon.a -ldl -pthread /usr/lib/gcc/s390x-ibm-linux-gnu/13/../../../../s390x-ibm-linux-gnu/bin/ld: libcrypto.a(libcrypto-lib-dh_key.o): in function `dh_bn_mod_exp': dh_key.c:(.text+0x3de): undefined reference to `s390x_mod_exp' /usr/lib/gcc/s390x-ibm-linux-gnu/13/../../../../s390x-ibm-linux-gnu/bin/ld: libcrypto.a(libcrypto-lib-rsa_ossl.o): in function `rsa_ossl_s390x_mod_exp': rsa_ossl.c:(.text+0x100): undefined reference to `s390x_crt' /usr/lib/gcc/s390x-ibm-linux-gnu/13/../../../../s390x-ibm-linux-gnu/bin/ld: libcrypto.a(libcrypto-lib-rsa_ossl.o):(.data.rel+0x30): undefined reference to `s390x_mod_exp' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:23933: util/quicserver] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/var/tmp/portage/dev-libs/openssl-3.2.1-r1/work/openssl-3.2.1-abi_s390_64.s390x' make: *** [Makefile:2857: build_sw] Error 2 ESC[31;01m*ESC[0m ERROR: dev-libs/openssl-3.2.1-r1::gentoo failed (compile phase):
Created attachment 884430 [details] build log (xz)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f3e7da215c0462b6ab264daa4d15f8933a8e379 commit 9f3e7da215c0462b6ab264daa4d15f8933a8e379 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-04-29 17:05:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-04-29 17:05:12 +0000 dev-libs/openssl: backport fix for s390x w/ USE=-asm to 3.2.x It's already been backported upstream on the 3.2 branch but no new 3.2.x release yet. Closes: https://bugs.gentoo.org/923957 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/openssl/files/openssl-3.2.1-s390x.patch | 31 ++++++++++++++++++++++++ dev-libs/openssl/openssl-3.2.1-r2.ebuild | 1 + 2 files changed, 32 insertions(+)