Package: cpp-netlib
Version: 0.11.0-1
Tags: sid patch
Severity: important
Justification: FTBFS
User: [email protected]
Usertags: mips-patch


While trying to build cpp-netlib on mips architecture,
build fails with an error:

> [ 64%] Building CXX object 
> libs/mime/test/CMakeFiles/mime-roundtrip.dir/mime-roundtrip.cpp.o
> cd /«PKGBUILDDIR»/obj-mips-linux-gnu/libs/mime/test && /usr/bin/c++   
> -DBOOST_NETWORK_ENABLE_HTTPS -DBOOST_TEST_DYN_LINK -g -O2 -Wformat 
> -Werror=format-security -D_FORTIFY_SOURCE=2  -Wall -I/«PKGBUILDDIR»    -o 
> CMakeFiles/mime-roundtrip.dir/mime-roundtrip.cpp.o -c 
> /«PKGBUILDDIR»/libs/mime/test/mime-roundtrip.cpp
> virtual memory exhausted: Cannot allocate memory

https://buildd.debian.org/status/fetch.php?pkg=cpp-netlib&arch=mips&ver=0.11.0-1&stamp=1391980283


To avoid this error I have created a patch that adds
--param ggc-min-expand=20 to CXXFLAGS for mips.


After applying this patch,
I was able to build cpp-netlib successfully for mips and mipsel on a few local 
boards.
The patch is attached.

Could you please consider including this patch?

Best Regards,
Dejan
diff -uNr cpp-netlib-0.11.0.orig/debian/rules cpp-netlib-0.11.0/debian/rules
--- cpp-netlib-0.11.0.orig/debian/rules	2014-02-07 18:52:38.000000000 +0000
+++ cpp-netlib-0.11.0/debian/rules	2014-07-08 12:10:25.000000000 +0000
@@ -9,6 +9,12 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEB_BUILD_ARCH     ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
+	export DEB_CXXFLAGS_MAINT_APPEND = --param ggc-min-expand=20
+endif
+
 %:
 	dh $@
 

Reply via email to