On Sat, 28 Apr 2018, Matthew Knepley wrote: > On Sat, Apr 28, 2018 at 5:58 AM, Adrian Bunk <b...@debian.org> wrote:
> > mips and mipsel are the only architectures where we have only 2 GB > > address space for userspace, so when the compiler needs more than > > 2 GB of memory you are getting this error. > > > > On other 32bit buildds you have 3 GB or even 4 GB address space, > > mips/mipsel is the canary for huge memory usage. > > > > gcc sometimes has huge memory usage compiling C++ hitting this 2 GB > > limit, it is possible that there are also problems with Fortran code. > > > > It is very annoying that the buildd log hides the compiler flags, > > if you fix that I'll take a look regarding a workaround. > > > > make V=1 Also we print a summary of compile flags up in the log: Using Fortran compile: mpif90 -c -g -O2 -fstack-protector-strong -fPIC -Wdate-time -D_FORTIFY_SOURCE=2 -fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. -I/<<BUILDDIR>>/petsc-3.9.0+dfsg1/include -I/<<BUILDDIR>>/petsc-3.9.0+dfsg1/mips-linux-gnu-real-debug/include -I/usr/include/suitesparse -I/usr/include/superlu -I/usr/include/superlu-dist -I/usr/include/hypre -I/usr/include/hdf5/openmpi -I/usr/include/scotch -Wdate-time -D_FORTIFY_SOURCE=2 Also - current build is with: Using MAKEFLAGS: -j4 -l4 w -j4 -Oline --jobserver-auth=3,4 -- PETSC_DIR=/<<BUILDDIR>>/petsc-3.9.0+dfsg1 PETSC_ARCH=mips-linux-gnu-real-debug CFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. CXXFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. FCFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. FFLAGS=-fdebug-prefix-map=/<<BUILDDIR>>/petsc-3.9.0+dfsg1=. If '-j1' is used - memory usage will go down a bit. [but might not be sufficient to clear the 2 GB limit] Satish