Source: gnudatalanguage
Version: 0.9.8-2
Severity: serious
Tags: patch

https://buildd.debian.org/status/package.php?p=gnudatalanguage

...
cd /<<PKGBUILDDIR>>/obj-mips-linux-gnu/src && /usr/bin/c++  -DHAVE_CONFIG_H 
-DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -Dgnudatalanguage_EXPORTS 
-I/usr/include/GraphicsMagick 
-I/usr/lib/mips-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 
-I/usr/include/hdf5/serial -I/usr/include/hdf -I/usr/include/python2.7 
-I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/eigen3 
-I/<<PKGBUILDDIR>> -I/<<PKGBUILDDIR>>/obj-mips-linux-gnu  -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -DBUILD_DATE="\"Apr  3 2018\"" -std=gnu++11 -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC   -fopenmp -o 
CMakeFiles/gnudatalanguage.dir/datatypes.cpp.o -c 
/<<PKGBUILDDIR>>/src/datatypes.cpp
In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1809:0,
                 from /usr/include/python2.7/numpy/ndarrayobject.h:18,
                 from /usr/include/python2.7/numpy/arrayobject.h:4,
                 from /<<PKGBUILDDIR>>/src/datatypes.cpp:21:
/usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning 
"Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API 
NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~

cc1plus: out of memory allocating 972584 bytes after a total of 51625984 bytes
make[3]: *** [src/CMakeFiles/gnudatalanguage.dir/build.make:282: 
src/CMakeFiles/gnudatalanguage.dir/datatypes.cpp.o] Error 1


Fix:

--- debian/rules.old    2018-04-08 14:31:59.814323615 +0000
+++ debian/rules        2018-04-08 14:33:25.220985470 +0000
@@ -1,9 +1,16 @@
 #!/usr/bin/make -f
 
 include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/architecture.mk
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+# less debug info to avoid running
+# out of address space
+ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel))
+  export DEB_CXXFLAGS_MAINT_APPEND += -g1
+endif
+
 CXXFLAGS += -DBUILD_DATE="\"$(shell LC_ALL=C date -u 
--date=@"$(SOURCE_DATE_EPOCH)" +'%b %e %Y')\"" -std=gnu++11
 
 %:

Reply via email to