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

Bug#1028624: libdeflate: Please build with -O1 on alpha to fix FTBFS

Source: libdeflate
Version: 1.14-1
Severity: normal
Tags: patch
User: debian-alpha@lists.debian.org
Usertags: alpha
X-Debbugs-Cc: debian-alpha@lists.debian.org


libdeflate currently FTBFS on alpha due to linker issues:

cc -o libdeflate.so.0 -specs=/usr/share/dpkg/pie-link.specs -Wl,-z,relro -Wl,-z,now -fprofile-generate -O2 -fomit-frame-pointer -std=c99 -I. -Wall -Wundef -Wdeclaration-after-statement -Wimplicit-fallthrough -Wmissing-prototypes -Wpedantic -Wshadow -Wstrict-prototypes -Wvla -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/pie-compile.specs -Wformat -Werror=format-security -fprofile-generate -fvisibility=hidden -D_ANSI_SOURCE \
	-Wl,-soname=libdeflate.so.0 -shared lib/deflate_decompress.shlib.o lib/utils.shlib.o lib/arm/cpu_features.shlib.o lib/x86/cpu_features.shlib.o lib/deflate_compress.shlib.o lib/adler32.shlib.o lib/zlib_decompress.shlib.o lib/zlib_compress.shlib.o lib/crc32.shlib.o lib/gzip_decompress.shlib.o lib/gzip_compress.shlib.o
lib/deflate_compress.shlib.o: in function `deflate_choose_match':
./lib/deflate_compress.c:2185:(.text+0x832c): relocation truncated to fit: GPRELHIGH against `.rodata'
./lib/deflate_compress.c:2185:(.text+0xa28c): relocation truncated to fit: GPRELHIGH against `.rodata'
./lib/deflate_compress.c:2185:(.text+0xbfa0): relocation truncated to fit: GPRELHIGH against `.rodata'
collect2: error: ld returned 1 exit status

This problem can be worked around by building the source -O1 which is what the attached patch does.

Could you apply it for the next upload?


> [1] https://buildd.debian.org/status/fetch.php?pkg=libdeflate&arch=alpha&ver=1.14-1&stamp=1673418504&raw=0

 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
--- debian/rules.orig	2022-10-03 13:55:19.000000000 +0200
+++ debian/rules	2023-01-13 16:48:12.970221727 +0100
@@ -4,6 +4,10 @@
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+ifeq (alpha,$(DEB_HOST_ARCH))
 	dh $@

Reply to: