<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Mary, <br>
<br>
Thanks for the tips. I had already experimented with removing some
of the options from that command. I had left the -O in, thinking
that would be the minimum mount of optimization, but it turns out I
was wrong. Using -O0 or -O1 fixed my problem. This looks like a bug
in pgfortran, so I'll take it up with the Portland Group. <br>
<pre class="moz-signature" cols="72">Prentice Bisbal
Lead Software Engineer
Princeton Plasma Physics Laboratory
<a class="moz-txt-link-freetext" href="http://www.pppl.gov">http://www.pppl.gov</a></pre>
<div class="moz-cite-prefix">On 07/12/2016 05:56 PM, Mary Haley
wrote:<br>
</div>
<blockquote
cite="mid:CACNN_CL1iQtTw5pL-xSyeCD9M1HU_ApyFVYdds8MB8cBY8Evdw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Hi,</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">I can't get
onto the system that has PGI compilers at the moment in order
to try this.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">One thing I
always try first when I run into compiler issues is to turn
off optimization for just this one file. Sometimes it's
enough to just remove the "-O", and other times you might
additionally need to add "-g" or "-O0" to force less
optimization to occur.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">I do this by
going to the offending directory
($NCARG/ncarg2d/src/libncarg/srface), editing "Makefile", and
removing any references to "-O".</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Then, I save
the file, exit the file, and type (in the same directory):</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small"><font
face="monospace, monospace">rm -rf ctcell.o</font></div>
<div class="gmail_default" style="font-size:small"><font
face="monospace, monospace">make ctcell.o</font></div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">to see if it
works.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">If it does,
then you can edit the "yMakefile" file, and add a special rule
at the end that would look something like this:</div>
<div class="gmail_default" style="font-size:small">
<p class=""><font face="monospace, monospace">ctcell.o:
ctcell.f<br>
$(<span class="">F77</span>) $(<span class="">FCOPTIONS</span>)
-c ctcell.f</font></p>
<p class="">(Make sure that's a tab before the $(F77))</p>
<p class="">To test that your yMakefile change worked, type:</p>
<p class=""><font face="monospace, monospace">make me<br>
rm -rf ctcell.o<br>
make ctcell.o</font></p>
<p class="">If this doesn't work, then repeat the above steps
until something does work.</p>
<p class="">Then, you can start the build from scratch by
running "make Everything" from the top directory, or you can
restart it from where it left off by typing:</p>
<p class=""><font face="monospace, monospace">cd $NCARG<br>
make all install </font></p>
<p class="">--Mary</p>
<p class=""><br>
</p>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jul 12, 2016 at 1:36 PM,
Prentice Bisbal <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:pbisbal@pppl.gov" target="_blank">pbisbal@pppl.gov</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying
to compile ncarg (ncl_ncarg-6.3.0) with the Portland Group<br>
compilers when I get to ctcell.f, the build fails with this
error:<br>
<br>
> make[5]: Entering directory<br>
>
`/local/pbisbal/ncl_ncarg-6.3.0/ncarg2d/src/libncarg/srface'<br>
> pgf90 -tp px-64 -O -Msignextend -Mreentrant -fPIC<br>
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O
-c -o srface.o<br>
> srface.f<br>
> pgf90 -tp px-64 -O -Msignextend -Mreentrant -fPIC<br>
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O
-c -o srfgk.o<br>
> srfgk.f<br>
> pgf90 -tp px-64 -O -Msignextend -Mreentrant -fPIC<br>
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O
-c -o ezsrfc.o<br>
> ezsrfc.f<br>
> pgf90 -tp px-64 -O -Msignextend -Mreentrant -fPIC<br>
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O
-c -o setr.o setr.f<br>
> pgf90 -tp px-64 -O -Msignextend -Mreentrant -fPIC<br>
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O
-c -o draws.o<br>
> draws.f<br>
> pgf90 -tp px-64 -O -Msignextend -Mreentrant -fPIC<br>
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O
-c -o trn32s.o<br>
> trn32s.f<br>
> pgf90 -tp px-64 -O -Msignextend -Mreentrant -fPIC<br>
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O
-c -o clset.o<br>
> clset.f<br>
> pgf90 -tp px-64 -O -Msignextend -Mreentrant -fPIC<br>
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -mp -O
-c -o ctcell.o<br>
> ctcell.f<br>
>
pgf90-Fatal-/usr/pppl/pgi/16.5/linux86-64/16.5/bin/pgf901
TERMINATED<br>
> by signal 9<br>
<br>
The signal 9 seems to be coming from the operating system
(RHEL 5.10),<br>
probably the OOM-killer, because pgf90 eventually uses up
all the memory<br>
on the system. The system that I originally started building
it on only<br>
has 500 MB of RAM, so I tried building it on a system with
128 GB of<br>
RAM. On that system, it took linger to fail, but it
eventually failed in<br>
the same way, using up all of the systems memory before
getting killed<br>
with signal 9.<br>
<br>
<br>
Has anyone else seen this? Any idea how to fix this? I've
tried a couple<br>
of earlier versions of pgfortran: 16.3 and 15.9 with the
same exact<br>
results. I just compiled it with GCC 6.1.0 without any
issue, so this<br>
problem seems to be specific to pgfortran.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Prentice<br>
<br>
_______________________________________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a moz-do-not-send="true"
href="http://mailman.ucar.edu/mailman/listinfo/ncl-install"
rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-install</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>