[Debian-med-packaging] Bug#1028624: libdeflate: Please build with -O1 on alpha to fix FTBFS

Michael Cree mcree at orcon.net.nz
Fri Jan 13 22:53:13 GMT 2023


On Fri, Jan 13, 2023 at 08:05:43PM +0100, John Paul Adrian Glaubitz wrote:
> 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'

I suspect this might be better worked around with -Wl,-no-relax on the
linking only rather than disabling compiler optimisations.  I intend to
run a test of that today.

Cheers,
Michael.



More information about the Debian-med-packaging mailing list