Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

John Paul Adrian Glaubitz

unread,
Jan 13, 2023, 2:10:03 PM1/13/23
to
Source: libdeflate
Version: 1.14-1
Severity: normal
Tags: patch
User: debian...@lists.debian.org
Usertags: alpha
X-Debbugs-Cc: debian...@lists.debian.org

Hi!

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?

Thanks,
Adrian

> [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
libdeflate-alpha-fix.patch
0 new messages