Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936790 - dev-libs/openssl-3.4.1 fails on s390x with asm error
Summary: dev-libs/openssl-3.4.1 fails on s390x with asm error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: s390 team
URL: https://github.com/openssl/openssl/is...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-27 16:27 UTC by Andreas K. Hüttel
Modified: 2025-04-15 19:23 UTC (History)
2 users (show)

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


Attachments

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-07-27 16:27:06 UTC
s390x-ibm-linux-gnu-gcc  -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../openssl-3.3.1 -I../openssl-3.3.1/include -I../openssl-3.3.1/providers/common/include -I../openssl-3.3.1
/providers/implementations/include  -DAES_ASM -DAES_CTR_ASM -DAES_XTS_ASM -DGHASH_ASM -DKECCAK1600_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DPOLY1305_ASM -DRC4_ASM -DS390X_EC_ASM -DS
HA1_ASM -DSHA256_ASM -DSHA512_ASM -fPIC -pthread -m64 -Wa,--noexecstack -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR=
"\"/usr/lib64/engines-3\"" -DMODULESDIR="\"/usr/lib64/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG  -MMD -MF crypto/seed/libcrypto-shlib-seed_ofb.d.tmp -MT crypto/seed/libcrypto-shlib-seed_ofb.o -c -o cr
ypto/seed/libcrypto-shlib-seed_ofb.o ../openssl-3.3.1/crypto/seed/seed_ofb.c
s390x-ibm-linux-gnu-gcc  -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../openssl-3.3.1 -I../openssl-3.3.1/include -I../openssl-3.3.1/providers/common/include -I../openssl-3.3.1
/providers/implementations/include  -DAES_ASM -DAES_CTR_ASM -DAES_XTS_ASM -DGHASH_ASM -DKECCAK1600_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DPOLY1305_ASM -DRC4_ASM -DS390X_EC_ASM -DS
HA1_ASM -DSHA256_ASM -DSHA512_ASM -fPIC -pthread -m64 -Wa,--noexecstack -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR=
"\"/usr/lib64/engines-3\"" -DMODULESDIR="\"/usr/lib64/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG  -c -o crypto/sha/libcrypto-shlib-keccak1600-s390x.o crypto/sha/keccak1600-s390x.S
s390x-ibm-linux-gnu-gcc  -Icrypto -I../openssl-3.3.1/crypto -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../openssl-3.3.1 -I../openssl-3.3.1/include -I../openssl-3.3.1/provider
s/common/include -I../openssl-3.3.1/providers/implementations/include  -DAES_ASM -DAES_CTR_ASM -DAES_XTS_ASM -DGHASH_ASM -DKECCAK1600_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DPOLY13
05_ASM -DRC4_ASM -DS390X_EC_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -fPIC -pthread -m64 -Wa,--noexecstack -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DB_ENDIAN -DOPENSSL_PIC -DOPEN
SSLDIR="\"/etc/ssl\"" -DENGINESDIR="\"/usr/lib64/engines-3\"" -DMODULESDIR="\"/usr/lib64/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG  -c -o crypto/sha/libcrypto-shlib-sha1-s390x.o crypto/sha/sha1-s390x.
S
crypto/sha/keccak1600-s390x.S: Assembler messages:
crypto/sha/keccak1600-s390x.S:399: Error: Unrecognized opcode: `cijne'
s390x-ibm-linux-gnu-gcc  -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include -I../openssl-3.3.1 -I../openssl-3.3.1/include -I../openssl-3.3.1/providers/common/include -I../openssl-3.3.1
/providers/implementations/include  -DAES_ASM -DAES_CTR_ASM -DAES_XTS_ASM -DGHASH_ASM -DKECCAK1600_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_CPUID_OBJ -DPOLY1305_ASM -DRC4_ASM -DS390X_EC_ASM -DS
HA1_ASM -DSHA256_ASM -DSHA512_ASM -fPIC -pthread -m64 -Wa,--noexecstack -O2 -pipe -fno-strict-aliasing -Wa,--noexecstack -DOPENSSL_USE_NODELETE -DB_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/etc/ssl\"" -DENGINESDIR=
"\"/usr/lib64/engines-3\"" -DMODULESDIR="\"/usr/lib64/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG  -MMD -MF crypto/sha/libcrypto-shlib-sha1_one.d.tmp -MT crypto/sha/libcrypto-shlib-sha1_one.o -c -o cryp
to/sha/libcrypto-shlib-sha1_one.o ../openssl-3.3.1/crypto/sha/sha1_one.c
make[1]: *** [Makefile:11813: crypto/sha/libcrypto-shlib-keccak1600-s390x.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/dev-libs/openssl-3.3.1/work/openssl-3.3.1-abi_s390_64.s390x'
make: *** [Makefile:2879: build_sw] Error 2
 ESC[31;01m*ESC[0m ERROR: dev-libs/openssl-3.3.1::gentoo failed (compile phase):
 ESC[31;01m*ESC[0m   emake failed
Comment 1 Larry the Git Cow gentoo-dev 2025-04-10 23:00:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=cf9c3c00cdc6bf311f7edefab25721f378a910b5

commit cf9c3c00cdc6bf311f7edefab25721f378a910b5
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2025-04-10 22:53:56 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2025-04-10 22:56:49 +0000

    s390x: pin minimum -march to z10, to avoid problems with assembler in libraries
    
    This is surely old enough...
    "z10 Enterprise Class (2097 series), introduced on February 26, 2008"
    
    Whoever can't run that should borrow a newer Z from a friend and downgrade
    themselves ;) ... (or use the 31bit userspace as long as we still have it).
    
    Bug: https://bugs.gentoo.org/936790
    Bug: https://github.com/openssl/openssl/issues/27323
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 arch/s390.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2025-04-15 19:23:41 UTC
*** Running command: post_build openrc_64_23 s390x/stage1-openrc-23.spec
*** Running command: post_build openrc_64_23 s390x/stage3-openrc-23.spec
Uploading stage3-s390x-openrc-20250415T105024Z.tar.xz stage3-s390x-openrc-20250415T105024Z.tar.xz.CONTENTS.gz stage3-s390x-openrc-20250415T105024Z.tar.xz.DIGESTS stage3-s390x-openrc-20250415T105024Z.tar.xz.sha256

Everything happy again.