Source: mia Version: 2.4.4-1 Severity: serious Tags: patch https://buildd.debian.org/status/package.php?p=mia&suite=sid
... virtual memory exhausted: Cannot allocate memory mia/2d/maskedcost/CMakeFiles/2dimage-maskedcost-ncc-common.dir/build.make:65: recipe for target 'mia/2d/maskedcost/CMakeFiles/2dimage-maskedcost-ncc-common.dir/ncc.cc.o' failed ... On mips/mipsel only 2 GB address space are available for userspace. The following change addresses this by reducing the amount of debug info generated to what is required for backtraces: --- debian/rules.old 2017-06-22 21:09:04.000000000 +0000 +++ debian/rules 2017-06-22 21:39:05.000000000 +0000 @@ -1,10 +1,18 @@ #!/usr/bin/make -f # -*- makefile -*- +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) + export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -fvisibility=hidden +# reduce debug info to fix FTBFS on archs with few address space +ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel)) + export DEB_CFLAGS_MAINT_APPEND = -g1 + export DEB_CXXFLAGS_MAINT_APPEND = -g1 +endif + # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1