Package: dune-grid
Version: 2.4.1-1
Severity: important
Tags: sid + patch
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch

Hi,

Package dune-grid FTBFS on mips and mipsel with following error:
virtual memory exhausted: Cannot allocate memory

build logs:
https://buildd.debian.org/status/fetch.php?pkg=dune-grid&arch=mips&ver=2.4.1-1&stamp=1466966398
https://buildd.debian.org/status/fetch.php?pkg=dune-grid&arch=mipsel&ver=2.4.1-1&stamp=1456760195

I tried to reduce ggc-min-expand to 20, and with this change package compiles 
for me.

With attached patch I was able to build dune-grid successfully for both mips 
and mipsel.

Regards,
Daniel
--- dune-grid-2.4.1.orig/configure.ac
+++ dune-grid-2.4.1/configure.ac
@@ -22,6 +22,16 @@ AC_SUBST([LDADD], '$(top_builddir)/dune/
 # make DUNE_GRID_LIBDIR available as it is needed for the alberta libs
 AC_SUBST(DUNE_GRID_LIBDIR, '$(top_builddir)/lib')

+# Check the platform information.
+AC_CANONICAL_HOST
+case "${host_cpu}" in
+    mips | mipsel)
+        AC_SUBST([TEST_CXXFLAGS], ["--param ggc-min-expand=20"])
+    ;;
+    *)
+    ;;
+esac
+
 DUNE_SUMMARY_ALL

 # write output
--- dune-grid-2.4.1.orig/dune/grid/test/Makefile.am
+++ dune-grid-2.4.1/dune/grid/test/Makefile.am
@@ -63,7 +63,7 @@ EXTRA_PROGRAMS = $(ALBERTA_EXTRA_PROGS)

 # output coverage
 #COVERAGE = -fprofile-arcs -ftest-coverage
-AM_CXXFLAGS = $(COVERAGE)
+AM_CXXFLAGS = $(COVERAGE) @TEST_CXXFLAGS@
 AM_CPPFLAGS = @AM_CPPFLAGS@ -DHAVE_DUNE_GRID=1

 # The directory where the example grid files used for testing are located
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to