Bug#865310: sfcgal: Reduce build-time memory usage on mips/mipsel

2017-06-20 Thread Sebastiaan Couwenberg
Control: tags -1 pending

Hi Adrian,

On 06/20/2017 02:58 PM, Adrian Bunk wrote:
> On mips/mipsel only 2 GB address space are available for userspace.
> 
> The following change addresses this by reducing the amount of
> debug info generated to what is required for backtraces:

Thanks for the patch! I've applied it in git and new upload to unstable
will follow shortly.

Kind Regards,

Bas

-- 
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel


Processed: Re: Bug#865310: sfcgal: Reduce build-time memory usage on mips/mipsel

2017-06-20 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 pending
Bug #865310 [src:sfcgal] sfcgal: Reduce build-time memory usage on mips/mipsel
Added tag(s) pending.

-- 
865310: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865310
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel


Bug#865310: sfcgal: Reduce build-time memory usage on mips/mipsel

2017-06-20 Thread Adrian Bunk
Source: sfcgal
Version: 1.3.1-1
Severity: important
Tags: patch

https://buildd.debian.org/status/fetch.php?pkg=sfcgal=mips=1.3.1-1=1497851040=0

...
cc1plus: out of memory allocating 5842196 bytes after a total of 57806848 bytes
src/CMakeFiles/SFCGAL.dir/build.make:1241: recipe for target 
'src/CMakeFiles/SFCGAL.dir/algorithm/union.cpp.o' failed
make[3]: *** [src/CMakeFiles/SFCGAL.dir/algorithm/union.cpp.o] Error 1
...


On mips/mipsel only 2 GB address space are available for userspace.

The following change addresses this by reducing the amount of
debug info generated to what is required for backtraces:

--- debian/rules.old2017-06-19 22:17:14.0 +
+++ debian/rules2017-06-19 23:42:31.0 +
@@ -6,9 +6,15 @@
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+DEB_HOST_ARCH  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+# reduce debug info to fix FTBFS on archs with few address space
+ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
+CMAKECXXFLAGS="-DCMAKE_CXX_FLAGS_RELWITHDEBINFO=' -O2 -g1 -DNDEBUG'"
+endif
+
 # main packaging script based on dh7 syntax
 %:
dh $@ --with pkgkde_symbolshelper --parallel
@@ -16,6 +22,7 @@
 override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+   $(CMAKECXXFLAGS) \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
-DCMAKE_VERBOSE_MAKEFILE=ON \

___
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel