[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1010975: openssl: Please build w/o -fzero-call-used-regs=used-gpr and w/ no-asm on ia64



Source: openssl
Version: 3.0.3-2
Severity: normal
User: debian-ia64@lists.debian.org
Usertags: ia64
X-Debbugs-Cc: debian-ia64@lists.debian.org

Hello!

The openssl build currently fails on ia64 with:

gcc  -I. -Iinclude -Iapps/include -I.. -I../include -I../apps/include  -fPIC -pthread -Wa,--noexecstack -Wall -fzero-call-used-regs=used-gpr -Wa,--noexecstack -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/pie-compile.specs -Wformat -Werror=format-security -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/lib/ssl\"" -DENGINESDIR="\"/usr/lib/ia64-linux-gnu/engines-3\"" -DMODULESDIR="\"/usr/lib/ia64-linux-gnu/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2 -MMD -MF apps/lib/libapps-lib-engine.d.tmp -MT apps/lib/libapps-lib-engine.o -c -o apps/lib/libapps-lib-engine.o ../apps/lib/engine.c
/tmp/ccP5Wi5Z.s: Assembler messages:
/tmp/ccP5Wi5Z.s:1242: Error: Register number out of range 0..5
/tmp/ccP5Wi5Z.s:1246: Error: Register number out of range 0..5
/tmp/ccP5Wi5Z.s:1382: Error: Register number out of range 0..5
/tmp/ccP5Wi5Z.s:1386: Error: Register number out of range 0..5
make[3]: *** [Makefile:3585: apps/lib/libapps-lib-engine.o] Error 1

This is fixed by removing "-fzero-call-used-regs=used-gpr" from "cflags" in
Configurations/20-debian.conf. After that, the build will fails with assembler
error message in crypto/poly1305/asm/poly1305-ia64.s. However, this can be
fixed by passing "no-asm" to "CONFARGS" in debian/rules.

So, the easiest way should be to add "-fno-zero-call-used-regs=used-gpr" for ia64
in Configurations/20-debian.conf which would override the previously set
"-fzero-call-used-regs=used-gpr" and adding "no-asm" to "CONFARGS" when DEB_HOST_ARCH
is ia64:

ifeq ($(DEB_HOST_ARCH), ia64)
        CONFARGS += no-asm
endif

To verify the changes, feel free to use yttrium.debian.net.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: