Source: wesnoth-1.14
Version: 1:1.14.3-1
Severity: important
Tags: patch ftbfs

https://buildd.debian.org/status/package.php?p=wesnoth-1.14

...
virtual memory exhausted: Cannot allocate memory
make[3]: *** [src/CMakeFiles/wesnoth-core.dir/build.make:183: 
src/CMakeFiles/wesnoth-core.dir/gettext_boost.cpp.o] Error 1


Fix:

--- debian/rules.old    2018-06-22 20:10:00.867940283 +0000
+++ debian/rules        2018-06-22 20:10:30.177938628 +0000
@@ -18,9 +18,14 @@
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
+# less debug info to avoid running out of address space
+ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
+    CXXFLAGSDBG = -g1
+endif
+
 export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
 export CFLAGS   := $(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) 
-std=c++11 -fopenmp
-export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) 
-std=c++11 -fopenmp
+export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) 
-std=c++11 -fopenmp $(CXXFLAGSDBG)
 export LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)
 
 ifneq (,$(filter $(DEB_BUILD_ARCH),alpha))

Reply via email to