Bug#971018: libgnatcoll-db: FTBFS on mips(64)el with assembler message: branch out of range
tags 971018 +patch thanks I did some testing on the porterbox, which showed optimizing for size is enough to make things build on mipsel. Debdiff attached, no intent to NMU. diff -Nru libgnatcoll-db-21.0.0/debian/changelog libgnatcoll-db-21.0.0/debian/changelog --- libgnatcoll-db-21.0.0/debian/changelog 2020-12-22 22:35:21.0 + +++ libgnatcoll-db-21.0.0/debian/changelog 2020-12-29 13:27:55.0 + @@ -1,3 +1,10 @@ +libgnatcoll-db (21.0.0-5.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Use -Os on mipsel, to work around jump length error (Closes: 971018). + + -- Peter Michael Green Tue, 29 Dec 2020 13:27:55 + + libgnatcoll-db (21.0.0-5) unstable; urgency=medium [ Adrian Bunk ] diff -Nru libgnatcoll-db-21.0.0/debian/rules libgnatcoll-db-21.0.0/debian/rules --- libgnatcoll-db-21.0.0/debian/rules 2020-11-17 18:33:55.0 + +++ libgnatcoll-db-21.0.0/debian/rules 2020-12-29 13:27:55.0 + @@ -34,6 +34,11 @@ DEB_CFLAGS_MAINT_APPEND := -mxgot endif +# Use -Os on mipsel to workaround further jump length issues +ifneq (,$(filter mipsel,$(DEB_HOST_ARCH))) + DEB_CFLAGS_MAINT_APPEND += -Os +endif + include /usr/share/dpkg/buildflags.mk include $(wildcard /usr/share/ada/debian_packaging-$(GNAT_VERSION).mk) # wildcard means: not during -indep builds.
Bug#971018: libgnatcoll-db FTBFS on mips(64)el with assembler message: branch out of range
Hello. Here is the full history, just in case. mipsel mips64el 18-4 OK OK 19.2-1 fails OK 19.2-2 fails OK 19.2-3 -mxgot OK OK 20.0-1 -mxgot fails fails 21.0.0-1-mxgot fails-mxgot ? 21.0.0-2-mxgot fails-mxgot OK 21.0.0-3-mxgot fails-mxgot OK 21.0.0-4-mxgot fails-mxgot OK 21.0.0-5 fails-mxgot OK
Bug#971018: libgnatcoll-db: FTBFS on mips(64)el with assembler message: branch out of range
Source: libgnatcoll-db Version: 20.0-1 Severity: serious Justification: fails to build from scratch on previously built architectures Hello. libgnatcoll-db/20.0-1 in experimental fails to build on mipsel and mips64el with the following messages [1]. /tmp/ccl8IVnY.s: Assembler messages: /tmp/ccl8IVnY.s:692755: Error: branch out of range /tmp/ccl8IVnY.s:693545: Error: branch out of range /tmp/ccl8IVnY.s:693669: Error: branch out of range The problem seems related to a previous bug [2] with similar symptoms [3]. xref/gnatcoll-xref.adb: In function ‘GNATCOLL.XREF’: xref/gnatcoll-xref.adb:40:1: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without Assembler messages: 678119: Error: branch out of range CFLAGS+=-mxgot has fixed the issue then, but does not seem sufficient anymore. Any advice would be welcome. [1] https://buildd.debian.org/status/package.php?p=libgnatcoll-db=experimental [2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953069 [3] https://buildd.debian.org/status/fetch.php?pkg=libgnatcoll-db=mipsel=19.2-2=1584014543=0