Re: how to deal with "virtual memory exhausted: Cannot allocate memory"?

Yaroslav Halchenko <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
On Sat, 15 Oct 2016, Adrian Bunk wrote:
> > > The build log says
> > >   make -j4

> > > This is due to the following in debian/rules:
> > >   dh $@ --parallel --sourcedirectory=src

> > > Running 4 instances of the compiler in parallel can quadruple
> > > the memory usage. 

> > That is true, however the amount of memory per 32-bit process is
> > unchanged and still limited to 2GB, so I doubt it will make any
> > change.

> The error message just tells that mmap() failed with ENOMEM,
> but looking at the hardware specs of the autobuilders I agree
> with you that my suggestion is not likely to help here.

and your suspicion is right on the money -- it didn't help, the same
problem:
https://buildd.debian.org/status/fetch.php?pkg=connectome-workbench&arch=mips&ver=1.2.3-3&stamp=1476565096
and there is 'make -j1' there but
cd /«PKGBUILDDIR»/obj-mips-linux-gnu/Desktop && /usr/bin/c++   -DCARET_OS_LINUX -DHAVE_FREETYPE -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_XML_LIB -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtCore -isystem /usr/include/qt4/QtOpenGL -isystem /usr/include/qt4/QtXml -isystem /usr/include/qt4/QtNetwork -I/«PKGBUILDDIR»/src/Desktop -I/«PKGBUILDDIR»/src/Algorithms -I/«PKGBUILDDIR»/src/Commands -I/«PKGBUILDDIR»/src/GuiQt -I/«PKGBUILDDIR»/src/Brain -I/«PKGBUILDDIR»/src/FilesBase -I/«PKGBUILDDIR»/src/Files -I/«PKGBUILDDIR»/src/Palette -I/«PKGBUILDDIR»/src/Cifti -I/«PKGBUILDDIR»/src/Gifti -I/«PKGBUILDDIR»/src/Nifti -I/«PKGBUILDDIR»/src/Qwt -I/«PKGBUILDDIR»/src/Scenes -I/«PKGBUILDDIR»/src/Xml -I/«PKGBUILDDIR»/src/Common  -fopenmp -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -DNDEBUG -Wdate-time -D_FORTIFY_SOURCE=2     -W -Wall -Werror=return-type -Werror=switch -Wunused-parameter -Wno-narrowing -Wno-unused-local-typedefs -o CMakeFiles/wb_view.dir/qrc_resources.cxx.o -c /«PKGBUILDDIR»/obj-mips-linux-gnu/Desktop/qrc_resources.cxx
virtual memory exhausted: Cannot allocate memory

so the same story.

more ideas before I guess I just file for RM for mips and mipsel?
-- 
Yaroslav O. Halchenko
Center for Open Neuroscience     http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.