[Debian-med-packaging] Bug#894156: bedops FTBFS on mips/mipsel: Memory exhausted

Adrian Bunk bunk at debian.org
Mon Mar 26 19:54:44 UTC 2018


Source: bedops
Version: 2.4.32+dfsg-1
Severity: serious
Tags: patch

https://buildd.debian.org/status/package.php?p=bedops&suite=sid

...
mkdir -p ../bin && g++ -o ../bin/bedmap-typical -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/bedops-2.4.32+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security   -s -Wall -pedantic -O3 -std=c++11  objects_typical/NaN.o objects_typical/starchConstants.o objects_typical/starchFileHelpers.o objects_typical/starchHelpers.o objects_typical/starchMetadataHelpers.o objects_typical/unstarchHelpers.o objects_typical/starchSha1Digest.o objects_typical/starchBase64Coding.o  -iquote../../../../interfaces/general-headers -Wl,-z,relro -Wl,-z,now -ljansson -lz -lbz2 Bedmap.cpp
/tmp/ccY7Hd7w.s: Assembler messages:
/tmp/ccY7Hd7w.s: Fatal error: can't close /tmp/cc9LiHfl.o: Memory exhausted
make[4]: *** [Makefile:51: ../bin/bedmap-typical] Error 1


Fix:

--- debian/rules.old	2018-03-26 14:39:37.624272779 +0000
+++ debian/rules	2018-03-26 15:22:42.490793752 +0000
@@ -10,6 +10,15 @@
 
 include /usr/share/dpkg/default.mk
 
+include /usr/share/dpkg/architecture.mk
+
+# less debug info to avoid running
+# out of address space
+ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
+  export DEB_CFLAGS_MAINT_APPEND = -g1
+  export DEB_CXXFLAGS_MAINT_APPEND = -g1
+endif
+
 docpkg := $(DEB_SOURCE)-doc
 
 %:



More information about the Debian-med-packaging mailing list