[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

What to do when autobuilders might run out of memory when building a package



Hi,

recently I uploaded seqan and I admit I fail to build the package on two
of three machines I control and use to build.  Only one of these three
amd64 machines has a big enough memory and does not die from swapping.
When looking at the build log of i386:

https://buildd.debian.org/status/fetch.php?pkg=seqan&arch=i386&ver=1.4.1-3&stamp=1390975155

I see

...
Scanning dependencies of target pair_align
make[4]: Leaving directory `/«PKGBUILDDIR»/obj-i486-linux-gnu'
make -f core/apps/pair_align/CMakeFiles/pair_align.dir/build.make core/apps/pair_align/CMakeFiles/pair_align.dir/build
make[4]: Entering directory `/«PKGBUILDDIR»/obj-i486-linux-gnu'
/usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/obj-i486-linux-gnu/CMakeFiles 
[  3%] Building CXX object core/apps/pair_align/CMakeFiles/pair_align.dir/pair_align.cpp.o
cd /«PKGBUILDDIR»/obj-i486-linux-gnu/core/apps/pair_align && /usr/bin/c++   -DSEQAN_ENABLE_TESTING=0 -DSEQAN_HAS_EXECINFO=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -g -O2 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -W -Wall -Wno-long-long -fstrict-aliasing -Wstrict-aliasing -pedantic -Wno-variadic-macros -I/«PKGBUILDDIR»/core/include    -o CMakeFiles/pair_align.dir/pair_align.cpp.o -c /«PKGBUILDDIR»/core/apps/pair_align/pair_align.cpp

cc1plus: out of memory allocating 7372636 bytes after a total of 45391872 bytes
make[4]: *** [core/apps/pair_align/CMakeFiles/pair_align.dir/pair_align.cpp.o] Error 1
make[4]: Leaving directory `/«PKGBUILDDIR»/obj-i486-linux-gnu'
...


When looking at

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

it seems that only the "more powerful" architectures are able to build
this package but also kfreebsd-amd64 fails (with a different error but I
suspect the same problem).  I would consider excluding some
architectures but the package is really used on i386 and I wonder whether
there are some options to get it builded at least for this architecture.

Kind regards

         Andreas.


-- 
http://fam-tille.de


Reply to: