Bug#827979: package quantlib-swig FTBFS on mips/mipsel (virtual memory exhausted)

2016-06-23 Thread Dirk Eddelbuettel

On 23 June 2016 at 12:15, Daniel Knezevic wrote:
| Package: quantlib-swig
| Version: 1.8-1
| Severity: important
| Tags: sid + patch
| Justification: FTBFS
| User: debian-m...@lists.debian.org
| Usertags: mips-patch
| 
| Hello,
| Package quantlib-swig FTBFS on mips and mipsel with following error:
| virtual memory exhausted: Cannot allocate memory
| error: command 'g++' failed with exit status 1

Yup. And I had strictly no idea what to do about it :-/

| 
| build logs:
| 
https://buildd.debian.org/status/fetch.php?pkg=quantlib-swig=mips=1.8-1=1464237100
| 
https://buildd.debian.org/status/fetch.php?pkg=quantlib-swig=mipsel=1.8-1=1464237390
| 
| I tried to reduce ggc-min-expand to 20, and with this change package compiles 
for me.

Never heard of that option -- nice. It reduces internal memory footprint?
 
| With attached patch I was able to build quantlib-swig successfully for both 
mips and mipsel.

Will apply ASAP!

Thanks, Dirk
 
| Regards,
| Daniel
| 
| x[DELETED ATTACHMENT quantlib-swig-mips-rules.patch, text/x-patch]

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org



Bug#827979: package quantlib-swig FTBFS on mips/mipsel (virtual memory exhausted)

2016-06-23 Thread Daniel Knezevic
Package: quantlib-swig
Version: 1.8-1
Severity: important
Tags: sid + patch
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch

Hello,
Package quantlib-swig FTBFS on mips and mipsel with following error:
virtual memory exhausted: Cannot allocate memory
error: command 'g++' failed with exit status 1

build logs:
https://buildd.debian.org/status/fetch.php?pkg=quantlib-swig=mips=1.8-1=1464237100
https://buildd.debian.org/status/fetch.php?pkg=quantlib-swig=mipsel=1.8-1=1464237390

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 quantlib-swig successfully for both 
mips and mipsel.

Regards,
Daniel
--- orig/quantlib-swig-1.8/debian/rules	2016-06-23 11:48:51.0 +
+++ quantlib-swig-1.8/debian/rules	2016-06-23 09:21:51.0 +
@@ -62,7 +62,7 @@
 ## edd 06 Dec 2014  patch by Dejan Latinovic (see #772028) to add -mxgot
 ifneq "$(findstring $(cpu), mipsel mips)" ""
 #compilerflags   = -O2 -g0 
-compilerflags   = -O0 -g0 -mxgot
+compilerflags   = -O0 -g0 -mxgot --param ggc-min-expand=20
 endif
 
 ## edd 25 Dec 2002  g++-3.2 for s390