Source: opengrm-ngram Version: 1.3.2-2 Severity: serious Tags: patch https://buildd.debian.org/status/package.php?p=opengrm-ngram&suite=sid
... libtool: compile: g++ -DHAVE_CONFIG_H -I./../include -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -c hist-arc.cc -fPIC -DPIC -o .libs/hist-arc.o ... virtual memory exhausted: Cannot allocate memory Makefile:481: recipe for target 'hist-arc.lo' failed make[4]: *** [hist-arc.lo] Error 1 Fix: --- debian/rules.old 2017-08-30 11:17:38.431222040 +0000 +++ debian/rules 2017-08-30 11:19:57.964547509 +0000 @@ -1,5 +1,12 @@ #!/usr/bin/make -f +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) + +# reduce g++ memory usage to fix FTBFS +ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel)) +export DEB_CXXFLAGS_MAINT_APPEND = --param ggc-min-expand=10 +endif + export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall include /usr/share/dpkg/buildflags.mk The mips64el FTBFS is unrelated, this is likely caused by the known gcc-7 breakage on mips64el (#871514).