This usually comes from mixing something debug with something optimized. 'petscstack' is only defined for debug builds.<div><br></div><div>   Matt<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 4:17 AM, Blaise Bourdin <span dir="ltr"><<a href="mailto:bourdin@lsu.edu">bourdin@lsu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
On a freshly pulled / reconfigured / rebuild version of petsc-dev, I get the following link error whenever I try to compile any example:<br>
<br>
/share/apps/mvapich2-1.6-ib-intel11.1/bin/mpicxx -lstdc++   -wd1572 -O3 -axSSE4.2 -Kc++  -o ex10 ex10.o -Wl,-rpath,/share/apps/petsc-dev/Linux-intel11.1-mef90-O/lib -L/share/apps/petsc-dev/Linux-intel11.1-mef90-O/lib  -lpetsc -lX11 -Wl,-rpath,/share/apps/petsc-dev/Linux-intel11.1-mef90-O/lib -lchaco -lpromfei -lprometheus -lparmetis -lmetis -lHYPRE -lml -Wl,-rpath,/share/apps/intel/Compiler/11.1/075/mkl -L/share/apps/intel/Compiler/11.1/075/mkl -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -Wl,-rpath,/share/apps/exodusii-4.81-intel11.1/lib -L/share/apps/exodusii-4.81-intel11.1/lib -lexoIIv2for -lexoIIv2c -Wl,-rpath,/share/apps/netcdf-4.1.1-intel11.1/lib -L/share/apps/netcdf-4.1.1-intel11.1/lib -lnetcdf_c++ -lnetcdf -lhdf5_fortran -lhdf5 -lz -lstdc++ -ldl -Wl,-rpath,/share/apps/mvapich2-1.6-ib-intel11.1/lib -L/share/apps/mvapich2-1.6-ib-intel11.1/lib -lmpich -lopa -llimic2 -lpthread -lrdmacm -libverbs -libumad -lrt -Wl,-rpath,/share/apps/intel/Compiler/11.1/075/mkl/lib/em64t -L/share/apps/intel/Compiler/11.1/075/mkl/lib/em64t -Wl,-rpath,/share/apps/intel/Compiler/11.1/075/lib/intel64 -L/share/apps/intel/Compiler/11.1/075/lib/intel64 -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lirc_s -lmpichf90 -lifport -lifcore -lm -lm -lmpichcxx -lstdc++ -ldl -lmpich -lopa -llimic2 -lpthread -lrdmacm -libverbs -libumad -lrt -limf -lsvml -lipgo -ldecimal -lgcc_s -lirc -lirc_s -ldl<br>

/share/apps/petsc-dev/Linux-intel11.1-mef90-O/lib/libpetsc.so: undefined reference to `petscstack'<br>
make: [ex10] Error 1 (ignored)<br>
/bin/rm -f ex10.o<br>
<br>
Has anybody seen this? I've looked at recent changelogs but could not find anything related.<br>
<br>
Blaise<br>
<font color="#888888"><br>
--<br>
Department of Mathematics and Center for Computation & Technology<br>
Louisiana State University, Baton Rouge, LA 70803, USA<br>
Tel. <a href="tel:%2B1%20%28225%29%20578%201612" value="+12255781612">+1 (225) 578 1612</a>, Fax  <a href="tel:%2B1%20%28225%29%20578%204276" value="+12255784276">+1 (225) 578 4276</a> <a href="http://www.math.lsu.edu/~bourdin" target="_blank">http://www.math.lsu.edu/~bourdin</a><br>

<br>
<br>
<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>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<br>

</div>