Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923957 - dev-libs/openssl-3.2.1-r1 fails to build on s390 (64bit) with USE=-asm
Summary: dev-libs/openssl-3.2.1-r1 fails to build on s390 (64bit) with USE=-asm
Status: RESOLVED FIXED
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: PATCH
Depends on:
Blocks: openssl32
  Show dependency tree
 
Reported: 2024-02-06 21:34 UTC by Andreas K. Hüttel
Modified: 2024-04-29 17:07 UTC (History)
4 users (show)

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


Attachments
build log (xz) (dev-libs:openssl-3.2.1-r1:20240203-100349.log.xz,36.95 KB, application/x-xz)
2024-02-06 21:36 UTC, Andreas K. Hüttel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Hüttel archtester gentoo-dev 2024-02-06 21:34:28 UTC
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):
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2024-02-06 21:36:02 UTC
Created attachment 884430 [details]
build log (xz)
Comment 2 Larry the Git Cow gentoo-dev 2024-04-29 17:07:20 UTC
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(+)