Source: yade Version: 1.05.0-2 Severity: wishlist Tags: patch User: debian-powerpc...@breakpoint.cc Usertags: powerpcspe
Hi, yade FTBFS on powerpcspe like this: ... [ 24%] Building CXX object CMakeFiles/yade.dir/pkg/common/Cylinder.cpp.o /usr/bin/c++ -Dyade_EXPORTS -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DYADE_PTR_CAST=static_pointer_cast -DYADE_CAST=static_cast -fPIC -DYADE_VTK -DYADE_OPENMP -fopenmp -DYADE_GTS -DQGLVIEWER_FOUND -DYADE_OPENGL -frounding-math -DYADE_CGAL -DFLOW_ENGINE -DYADE_GL2PS -fPIC -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/eigen3 -I/usr/include/vtk-5.8 -I/usr/include/glib-2.0 -I/usr/lib/powerpc-linux-gnuspe/glib-2.0/include -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtSvg -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/share/ qt4/mkspecs/default -I/usr/include/qt4 -I/usr/include/python2.7 -I/usr/include/powerpc-linux-gnuspe/python2.7 -I/«PKGBUILDDIR»/extra/floating_point_utilities_v3 -I/«PKGBUILDDIR»/debian/build -o CMakeFiles/yade.dir/pkg/common/Cylinder.cpp.o -c /«PKGBUILDDIR»/pkg/common/Cylinder.cpp virtual memory exhausted: Cannot allocate memory make[3]: *** [CMakeFiles/yade.dir/pkg/common/Cylinder.cpp.o] Error 1 make[2]: *** [CMakeFiles/yade.dir/all] Error 2 make[1]: *** [all] Error 2 make[3]: Leaving directory `/«PKGBUILDDIR»/debian/build' make[2]: Leaving directory `/«PKGBUILDDIR»/debian/build' make[1]: Leaving directory `/«PKGBUILDDIR»/debian/build' dh_auto_build: make -j1 returned exit code 2 make: *** [build-arch] Error 2 ... This is due to a gcc issue that uses too much memory while compiling, worked around by the following patch to tweak GC parameters. Possibly suitable also on arches with similar issues. Roland -- System Information: Debian Release: 7.0 APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: powerpcspe (ppc) Kernel: Linux 3.9.0-dirty (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Shell: /bin/sh linked to /bin/dash
--- yade-1.05.0/debian/rules 2013-10-28 20:59:03.000000000 +0100 +++ yade-1.05.0/debian/rules 2013-12-26 11:45:06.777009819 +0100 @@ -2,11 +2,15 @@ BUILDDIR = $(CURDIR)/debian/build tmpInstall = $(CURDIR)/debian/tmp tmpDirMatplotLib = $(CURDIR)/debian/matplotlib +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) %: dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --with python2 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed,-no-keep-memory +ifeq ($(DEB_HOST_ARCH),powerpcspe) +export DEB_CXXFLAGS_MAINT_APPEND = --param ggc-min-expand=20 --param ggc-min-heapsize=128000 +endif export MPLCONFIGDIR := $(tmpDirMatplotLib) export HOME := $(tmpDirMatplotLib)