[Pkg-haskell-commits] darcs: haskell-src-exts: Pass ggc-min-expand=10 to gcc, might make this compile on mips*. Thanks to Dejan Latinovic for the patch. Closes: #770830

Joachim Breitner mail at joachim-breitner.de
Mon Nov 24 15:13:11 UTC 2014


Mon Nov 24 15:07:24 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Pass ggc-min-expand=10 to gcc, might make this compile on mips*. Thanks to Dejan Latinovic for the patch. Closes: #770830

    M ./changelog +7
    M ./rules +17

Mon Nov 24 15:07:24 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Pass ggc-min-expand=10 to gcc, might make this compile on mips*. Thanks to Dejan Latinovic for the patch. Closes: #770830
diff -rN -u old-haskell-src-exts/changelog new-haskell-src-exts/changelog
--- old-haskell-src-exts/changelog	2014-11-24 15:13:11.555042858 +0000
+++ new-haskell-src-exts/changelog	2014-11-24 15:13:11.563042861 +0000
@@ -1,3 +1,10 @@
+haskell-src-exts (1.14.0.1-2) UNRELEASED; urgency=medium
+
+  * Pass ggc-min-expand=10 to gcc, might make this compile on mips*. Thanks to
+    Dejan Latinovic for the patch. Closes: #770830
+
+ -- Joachim Breitner <nomeata at debian.org>  Mon, 24 Nov 2014 16:06:36 +0100
+
 haskell-src-exts (1.14.0.1-1) unstable; urgency=medium
 
   * New upstream release
diff -rN -u old-haskell-src-exts/rules new-haskell-src-exts/rules
--- old-haskell-src-exts/rules	2014-11-24 15:13:11.555042858 +0000
+++ new-haskell-src-exts/rules	2014-11-24 15:13:11.559042860 +0000
@@ -2,8 +2,25 @@
 
 DEB_CABAL_PACKAGE=src-exts
 DEB_BUILD_DEPENDENCIES = build-arch
+
 DEB_SETUP_GHC6_CONFIGURE_ARGS = --ghc-options="+RTS -V0 -RTS"
 
+# haskell-src-exts 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.
+#
+# http://hostingfu.com/article/compiling-with-gcc-on-low-memory-vps
+#  -- Dejan Latinovic <Dejan.Latinovic at imgtec.com>
+DEB_BUILD_ARCH     ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
+       DEB_SETUP_GHC6_CONFIGURE_ARGS += "-optc--param -optcggc-min-expand=10"
+endif
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk
 




More information about the Pkg-haskell-commits mailing list