Bug#908820: pcl FTBFS on some 32bit architectures: virtual memory exhausted

Adrian Bunk bunk at debian.org
Fri Sep 14 14:13:17 BST 2018


Source: pcl
Version: 1.8.1+dfsg1-4
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/package.php?p=pcl&suite=sid

...
[ 41%] Built target pcl_openni_fast_mesh
virtual memory exhausted: Cannot allocate memory
make[3]: *** [sample_consensus/CMakeFiles/pcl_sample_consensus.dir/build.make:118: sample_consensus/CMakeFiles/pcl_sample_consensus.dir/src/sac_model_cone.cpp.o] Error 1


Note that the regression is actually not in pcl,
but gcc using more money.

The following addresses this by reducing the amount
of debug information when building for 32bit architectures:

--- debian/rules.old	2018-09-13 18:24:33.134097776 +0000
+++ debian/rules	2018-09-13 18:25:23.897428251 +0000
@@ -11,9 +11,8 @@
 CFLAGS+=$(CPPFLAGS)
 CXXFLAGS+=$(CPPFLAGS)
 
-DEB_BUILD_ARCH     ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel))
-	CXXFLAGS+=--param ggc-min-expand=20
+ifeq (32,$(DEB_HOST_ARCH_BITS))
+	CXXFLAGS+=-g1
 endif
 
 ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)



More information about the debian-science-maintainers mailing list