<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Apr 28, 2018 at 5:58 AM, Adrian Bunk <span dir="ltr"><<a href="mailto:bunk@debian.org" target="_blank">bunk@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Apr 27, 2018 at 09:48:17AM +0800, Drew Parsons wrote:<br>
> Source: petsc<br>
> Version: 3.9.0+dfsg1-1exp4<br>
> Severity: normal<br>
> <br>
> PETSc 3.9 Fails To Build From Source on mips. PETSC 3.8 continues to build fine.<br>
> <br>
> Build logs are at<br>
>   <a href="https://buildd.debian.org/status/logs.php?pkg=petsc&arch=mips" rel="noreferrer" target="_blank">https://buildd.debian.org/<wbr>status/logs.php?pkg=petsc&<wbr>arch=mips</a><br>
> e.g.<br>
>   <a href="https://buildd.debian.org/status/fetch.php?pkg=petsc&arch=mips&ver=3.9.0%2Bdfsg1-1exp4&stamp=1524789882&raw=0" rel="noreferrer" target="_blank">https://buildd.debian.org/<wbr>status/fetch.php?pkg=petsc&<wbr>arch=mips&ver=3.9.0%2Bdfsg1-<wbr>1exp4&stamp=1524789882&raw=0</a><br>
> <br>
> The build log reports<br>
> -====<br>
> ...<br>
>          CXX mips-linux-gnu-real-debug/obj/<wbr>tao/linesearch/interface/<wbr>dlregis_taolinesearch.o<br>
>          CXX mips-linux-gnu-real-debug/obj/<wbr>tao/linesearch/impls/<wbr>gpcglinesearch/gpcglinesearch.<wbr>o<br>
>          CXX mips-linux-gnu-real-debug/obj/<wbr>tao/linesearch/interface/ftn-<wbr>auto/taolinesearchf.o<br>
>          CXX mips-linux-gnu-real-debug/obj/<wbr>tao/linesearch/interface/ftn-<wbr>custom/ztaolinesearchf.o<br>
>          CXX mips-linux-gnu-real-debug/obj/<wbr>tao/linesearch/interface/<wbr>taolinesearch.o<br>
>          CXX mips-linux-gnu-real-debug/obj/<wbr>tao/leastsquares/impls/<wbr>pounders/gqt.o<br>
>          CXX mips-linux-gnu-real-debug/obj/<wbr>tao/leastsquares/impls/<wbr>pounders/pounders.o<br>
>           FC mips-linux-gnu-real-debug/obj/<wbr>mat/f90-mod/petscmatmod.o<br>
>           FC mips-linux-gnu-real-debug/obj/<wbr>dm/f90-mod/petscdmmod.o<br>
> <br>
> f951: out of memory allocating 2097152 bytes after a total of 1844178944 bytes<br>
> make[4]: *** [gmakefile:164: mips-linux-gnu-real-debug/obj/<wbr>dm/f90-mod/petscdmmod.o] Error 1<br>
> -====<br>
> <br>
> Looks like the fortran module for petscdm has gotten bigger than it<br>
> used to be.<br>
> <br>
> Nevertheless, on amd64 the 3.9 library is 15539008 bytes,  while 3.8 was 14727872,<br>
> not much smaller.  The amd64 3.9 debug library is 86882368 bytes where 3.8<br>
> was 84142848.<br>
> <br>
> On mips the 3.8 debug library is 68622188 bytes, smaller than amd64.<br>
> Is this out-of-memory error a problem with the mips buildds? Are there<br>
> buildd memory constraints we're hitting against? Or is there a problem with<br>
> fortran95 on mips?<br>
>...<br>
<br>
mips and mipsel are the only architectures where we have only 2 GB <br>
address space for userspace, so when the compiler needs more than<br>
2 GB of memory you are getting this error.<br>
<br>
On other 32bit buildds you have 3 GB or even 4 GB address space,<br>
mips/mipsel is the canary for huge memory usage.<br>
<br>
gcc sometimes has huge memory usage compiling C++ hitting this 2 GB <br>
limit, it is possible that there are also problems with Fortran code.<br>
<br>
It is very annoying that the buildd log hides the compiler flags,<br>
if you fix that I'll take a look regarding a workaround.<br></blockquote><div><br></div><div>make V=1</div><div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
cu<br>
<span class="HOEnZb"><font color="#888888">Adrian<br>
<br>
-- <br>
<br>
       "Is there not promise of rain?" Ling Tan asked suddenly out<br>
        of the darkness. There had been need of rain for many days.<br>
       "Only a promise," Lao Er said.<br>
                                       Pearl S. Buck - Dragon Seed<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>