Skip to content

Fails to build on big-endian ppc64 by trying to link ELFv1 to ELFv2 code #29815

@glaubitz

Description

@glaubitz

Starting with OpenSSL 3.5.5, the openssl package in Debian started to fail to build from source with what seems to be a problem with the build system that tries to link ELFv1 and ELFv2 code:

${LDCMD:-gcc} -pthread -m64 -Wa,--noexecstack -Wall -fzero-call-used-regs=used-gpr -Wa,--noexecstack -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/openssl-3.5.5=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now \
	-o fuzz/ml-kem-test \
	fuzz/ml-kem-test-bin-fuzz_rand.o \
	fuzz/ml-kem-test-bin-ml-kem.o \
	fuzz/ml-kem-test-bin-test-corpus.o \
	libcrypto.a -lz -lzstd -ldl -pthread 
/usr/bin/powerpc64-linux-gnu-ld.bfd: libcrypto.a(libcrypto-lib-aes-gcm-ppc.o): ABI version 2 is not compatible with ABI version 1 output
/usr/bin/powerpc64-linux-gnu-ld.bfd: failed to merge target specific data of file libcrypto.a(libcrypto-lib-aes-gcm-ppc.o)
/usr/bin/powerpc64-linux-gnu-ld.bfd: libcrypto.a(libcrypto-lib-aes-gcm-ppc.o): ABI version 2 is not compatible with ABI version 1 output
/usr/bin/powerpc64-linux-gnu-ld.bfd: failed to merge target specific data of file libcrypto.a(libcrypto-lib-aes-gcm-ppc.o)
/usr/bin/powerpc64-linux-gnu-ld.bfd: libcrypto.a(libcrypto-lib-aes-gcm-ppc.o): ABI version 2 is not compatible with ABI version 1 output
/usr/bin/powerpc64-linux-gnu-ld.bfd: failed to merge target specific data of file libcrypto.a(libcrypto-lib-aes-gcm-ppc.o)
collect2: error: ld returned 1 exit status

Full build log available here: https://buildd.debian.org/status/fetch.php?pkg=openssl&arch=ppc64&ver=3.5.5-1&stamp=1769552037&raw=0

Also reported to IBM's LinuxPPC issue tracker: linuxppc/issues#495

And in Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1126531

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 3.3Applies to openssl-3.3branch: 3.4Applies to openssl-3.4branch: 3.5Applies to openssl-3.5branch: 3.6Applies to openssl-3.6help wantedseverity: regressionThe issue/pr is a regression from previous released versiontriaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions