Package: yade Version: 1.12.0-2 Tags: sid patch Severity: normal Justification: FTBFS User: debian-m...@lists.debian.org Usertags: mips-patch
Package yade version 1.12.0-2 FTBFS for mips/mipsel arch with an error: > /usr/bin/c++ -DYADE_ODEINT -DYADE_VTK6 -Dyade_EXPORTS -g -O2 > -fstack-protector-strong -Wformat -Werror=format-security --param > ggc-min-expand=20 --param ggc-min-heapsize=128000 -D_FORTIFY_SOURCE=2 > -ftrack-macro-expansion=0 -save-temps -std=c++0x -fPIC -DYADE_VTK > -DYADE_OPENMP -fopenmp -DYADE_GTS -DQGLVIEWER_FOUND -DYADE_OPENGL > -frounding-math -DYADE_CGAL -DFLOW_ENGINE -DYADE_GL2PS -DLBM_ENGINE -O3 > -DNDEBUG -fPIC -I/«PKGBUILDDIR» > -I/usr/lib/python2.7/dist-packages/numpy/core/include > -I/usr/include/python2.7 -I/usr/include/eigen3 -I/usr/include/vtk-6.1 > -I/usr/include/mipsel-linux-gnu -I/usr/include/jsoncpp > -I/usr/include/glib-2.0 -I/usr/lib/mipsel-linux-gnu/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/QtWebKit -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/«PKGBUILDDIR»/debian/build -I/«PKGBUILDDIR»/debian/build/pkg/pfv > -DEIGEN_DONT_VECTORIZE -DEIGEN_DONT_ALIGN > -DEIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT -o > CMakeFiles/yade.dir/pkg/dem/Shop_02.cpp.o -c > /«PKGBUILDDIR»/pkg/dem/Shop_02.cpp > > cc1plus: out of memory allocating 4035988 bytes after a total of 29720576 > bytes > make[3]: *** [CMakeFiles/yade.dir/pkg/dem/Shop_02.cpp.o] Error 1 > make[2]: *** [CMakeFiles/yade.dir/all] Error 2 I tried to reduce ggc-min-expand to 10, and with this change package compiles for me. For mipsel on xlp builds finished successfully. For mips and mipsel on cavium build failed with TERM signal on 'usr/bin/yade --check' command. If run this check manually it finishes successfully, but need a lot of time for execution. With attached patch I was able to build yade successfully for both mips and mipsel. Patch contains changes that reduce ggc-min-expand and disable 'usr/bin/yade --check' for mips/mipsel. Could you please consider including these changes? Best Regards, Dejan
diff -uNr yade-1.12.0.orig/debian/rules yade-1.12.0/debian/rules --- yade-1.12.0.orig/debian/rules 2014-10-24 16:07:21.000000000 +0000 +++ yade-1.12.0/debian/rules 2015-01-29 18:20:00.000000000 +0000 @@ -9,10 +9,14 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed,-no-keep-memory # Theses flags are neccessry for weak archs. See #733152 -ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf hurd-i386 mips mipsel i386 kfreebsd-i386)) +ifneq (,$(filter $(DEB_HOST_ARCH), armel armhf hurd-i386 i386 kfreebsd-i386)) export DEB_CXXFLAGS_MAINT_APPEND = --param ggc-min-expand=20 --param ggc-min-heapsize=128000 endif +ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel)) + export DEB_CXXFLAGS_MAINT_APPEND = --param ggc-min-expand=10 --param ggc-min-heapsize=128000 +endif + # Check, whether Build-Depends-Indep are installed BUILD_DOC=$(shell dpkg -s python-sphinx | grep -q "^Status:.* installed$$" && echo yes) @@ -42,7 +46,9 @@ help2man $(tmpInstall)/usr/bin/yade > yade.1 help2man $(tmpInstall)/usr/bin/yade-batch > yade-batch.1 $(tmpInstall)/usr/bin/yade --test +ifeq (,$(filter $(DEB_HOST_ARCH), mips mipsel)) $(tmpInstall)/usr/bin/yade --check +endif dh_numpy ifeq ($(BUILD_DOC), yes) #Generate docs
-- debian-science-maintainers mailing list debian-science-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers