Bug#890237: yade FTBFS on mips/mipsel: virtual memory exhausted: Cannot allocate memory
Adrian Bunk
bunk at debian.org
Mon Feb 12 10:58:27 UTC 2018
Source: yade
Version: 2018.02a-2
Severity: important
Tags: patch
https://buildd.debian.org/status/package.php?p=yade
...
virtual memory exhausted: Cannot allocate memory
CMakeFiles/yade.dir/build.make:521: recipe for target 'CMakeFiles/yade.dir/pkg/common/Cylinder.cpp.o' failed
make[3]: *** [CMakeFiles/yade.dir/pkg/common/Cylinder.cpp.o] Error 1
Fix:
--- debian/rules.old 2018-02-11 13:26:34.803924197 +0000
+++ debian/rules 2018-02-11 13:29:11.853915345 +0000
@@ -1,4 +1,7 @@
#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+
BUILDDIR = $(CURDIR)/debian/build
tmpInstall = $(CURDIR)/debian/tmp
tmpDirMatplotLib = $(CURDIR)/debian/matplotlib
@@ -8,6 +11,12 @@
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed,-no-keep-memory
+# less debug info to avoid running
+# out of address space when linking
+ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
+ export DEB_CXXFLAGS_MAINT_APPEND += -g1
+endif
+
# Check, whether Build-Depends-Indep are installed
BUILD_DOC=$(shell dpkg -s python-sphinx | grep -q "^Status:.* installed$$" && echo yes)
More information about the debian-science-maintainers
mailing list