<div dir="ltr">I see. It compiled and linked on the frontend quickly. although with a warning<div>
<span></span>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgba(0,0,0,0.85)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">/global/homes/a/apbhalla/softwares/PETSc-BitBucket/PETSc/linux-opt/lib/libpetsc.a(send.o): In function `PetscOpenSocket':</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgba(0,0,0,0.85)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">send.c:(.text+0x346): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking</span></p>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Monaco;color:rgb(244,244,244);background-color:rgba(0,0,0,0.85)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">/usr/bin/rm -f ex3.o</span></p>
<br></div><div>Not sure how to get rid of this.</div><div><br></div><div>However, the executable is stuck in the interactive session. I wonder if something is up with the interactive session itself. </div><div>I am using the command salloc -N 1 -q debug -L SCRATCH</div><div>to create one, and running the example is </div><div><br></div><div><p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Monaco;color:rgb(236,236,21);background-color:rgba(0,0,0,0.85)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,187,200)">apbhalla</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(244,244,244)">@</span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(52,188,38)">nid00108:</span><span class="gmail-s4" style="font-variant-ligatures:no-common-ligatures">~/softwares/PETSc-BitBucket/PETSc/src/snes/examples/tutorials</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(244,244,244)">$ srun -n 3 ./ex3</span></p>
<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 29, 2018 at 9:01 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You should be able to compile/link on the frontend - and then run on the interactive node.<br>
<span class="HOEnZb"><font color="#888888"><br>
Satish<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, 30 Jan 2018, Amneet Bhalla wrote:<br>
<br>
> It's way too long. The interactive session expired :-(. I think the default<br>
> time is ~30 minutes.<br>
> I will let it link in a new session and see if that works.<br>
><br>
> On Mon, Jan 29, 2018 at 8:55 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>
><br>
> > On Tue, 30 Jan 2018, Amneet Bhalla wrote:<br>
> ><br>
> > > The configure and build worked. When I do make test, it asks to run<br>
> > > snes examples manually as nersc does not<br>
> > > provide mpiexec command. I tried an interactive session and tried<br>
> > building<br>
> > > snes/examples/tutorials/ex3<br>
> > ><br>
> > > % make VERBOSE=1 ex3<br>
> > ><br>
> > > I am getting stuck at<br>
> ><br>
> > Perhaps its taking a long time to link - and you need to wait for it [to<br>
> > complete]?<br>
> ><br>
> > Satish<br>
> > ><br>
> > > apbhalla@nid03377:<br>
> > > ~/softwares/PETSc-BitBucket/<wbr>PETSc/src/snes/examples/<wbr>tutorials$ make<br>
> > > VERBOSE=1 ex3<br>
> > ><br>
> > > cc -O3 -o ex3 ex3.o<br>
> > > -L/global/homes/a/apbhalla/<wbr>softwares/PETSc-BitBucket/<wbr>PETSc/linux-opt/lib<br>
> > > -Wl,-rpath,/global/homes/a/<wbr>apbhalla/softwares/PETSc-<br>
> > BitBucket/PETSc/linux-opt/lib<br>
> > > -lpetsc -lHYPRE -ldl -lstdc++<br>
> > ><br>
> > > I am not sure what's going on as there is no return after that.<br>
> > ><br>
> > > On Mon, Jan 29, 2018 at 8:27 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br>
> > ><br>
> > > > On Tue, 30 Jan 2018, Smith, Barry F. wrote:<br>
> > > ><br>
> > > > > Master now should not require this horrible flags. Could you do a<br>
> > > > > test build with master on edison without these flags and see what<br>
> > > > > happens?<br>
> > > ><br>
> > > > It does not work. Will move this thread (with logs) to petsc-maint.<br>
> > > ><br>
> > > > Satish<br>
> > > ><br>
> > ><br>
> > ><br>
> > ><br>
> > ><br>
> ><br>
> ><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>--Amneet <br><br></div><div><br></div><div><br></div></div></div>
</div>