Package: haskell-hxt-relaxng
Version: 9.1.4-4
Tags: sid patch
Severity: important
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch


Packge haskell-hxt-relaxng FTBFS mips and mipsel with an error:
virtual memory exhausted: Cannot allocate memory.

https://buildd.debian.org/status/logs.php?pkg=haskell-hxt-relaxng&ver=9.1.4-4&arch=mipsel&suite=sid
https://buildd.debian.org/status/logs.php?pkg=haskell-hxt-relaxng&ver=9.1.4-4%2Bb1&arch=mips&suite=sid


Some packages, like haskell-hxt-relaxng, needs a lot of memory during 
compilation.
Unfortunately, this amount of memory is not available on all platforms,
and error: "virtual memory exhausted: Cannot allocate memory." could appear.

In this case possible solution could be using ggc-min-expand.
This parameter specifies the minimum percentage by which the
garbage collector’s heap should be allowed to expand between collections.
Tuning this may improve compilation speed; it has no effect on code generation.

Read more about this here:
http://hostingfu.com/article/compiling-with-gcc-on-low-memory-vps



Patch that fixes this issue is attached.
With this patch I was able to successfully built
haskell-hxt-relaxng for both mips and mipsel.


Could you please consider including this patch?



Regards,
Dejan
diff -uNr haskell-hxt-relaxng-9.1.4.orig/debian/rules haskell-hxt-relaxng-9.1.4/debian/rules
--- haskell-hxt-relaxng-9.1.4.orig/debian/rules	2012-10-13 11:31:40.000000000 +0000
+++ haskell-hxt-relaxng-9.1.4/debian/rules	2015-04-17 15:34:52.000000000 +0000
@@ -1,4 +1,10 @@
 #!/usr/bin/make -f
 
+DEB_BUILD_ARCH     ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
+        DEB_SETUP_GHC6_CONFIGURE_ARGS = --ghc-options="-optc--param -optcggc-min-expand=10"
+endif
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk

Reply via email to