Bug#863927: qtwebengine-opensource-src: FTBFS: memory exhausted
On Sat, Jun 03, 2017 at 09:33:38PM +0200, Sandro Knauß wrote:
> Hey,
>
> > No, the fix would be to not produce 1 GB of debug info for this library:
>
> > The build log [1] confirms that -g is used in the i386 build.
> >
> > -g0 instead of -g (or no -g option) would surely solve this problem.
> >
> > -g1 would likely be sufficient to fix the problem on i386,
> > while still providing enough debug information for backtraces.
> >
> > A similar -g0/-g1 fix could also fix the armhf and mipsel builds (untested).
>
> interessting point and a year ago I also ask for ideas and nothing came. I
> tested a lot to get it building on other platforms without success. At the
> moment I'm hardy using my computer, so I can't test it at the moment, sorry.
I found the problem:
The -g is coming from dpkg-buildflags.
Below is the smallest patch I see for this, a proper reshuffle of the
debug settings in debian/rules looked too heavy so near to the release.
Could you upload this, or can I do an NMU?
> Best Regards,
>
> sandro
cu
Adrian
--- qtwebengine-opensource-src-5.7.1+dfsg/debian/rules 2017-01-18 20:00:38.000000000 +0200
+++ qtwebengine-opensource-src-5.7.1+dfsg/debian/rules 2017-06-04 22:12:35.000000000 +0300
@@ -6,16 +6,22 @@
export NINJAFLAGS=-v
include /usr/share/dpkg/default.mk
-export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
-export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+# TODO: properly integrate with the other debug setting for buster
+ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf i386 mips mipsel))
+ export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) -g1
+ export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) -g1
+else
+ export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+ export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
+endif
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
export QT_SELECT := qt5
VERSION_CLEAN_UPSTREAM = $(call dpkg_late_eval,VERSION_CLEAN_UPSTREAM,echo '$(DEB_VERSION_UPSTREAM)' | sed -e 's/\(~\|+\).*//')
-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
gstab_architectures :=
fulldebug_architectures :=
disabled_jit_architectures := armel mips mipsel
Reply to: