<p>I have no idea how you are missing linking libm, but that's the problem.</p>
<div class="gmail_quote">On Jan 27, 2012 8:16 AM, "Dominik Szczerba" <<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> PETSc-dev uses ParMetis-4.0.2 with other custom patches.<br>
><br>
><br>
> I suggest that you try building your code with petsc-dev to see if<br>
> ParMetis-4.0.2 fixed the bug you are hitting.<br>
<br>
I am getting this error. Looks simple but it comes from BLAS routines,<br>
so I did not attempt to resolve it:<br>
<br>
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(gklib.c.o): In<br>
function `libmetis__inorm2':<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/gklib.c:18:<br>
undefined reference to `sqrt'<br>
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(gklib.c.o): In<br>
function `libmetis__rnorm2':<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/gklib.c:19:<br>
undefined reference to `sqrt'<br>
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(kmetis.c.o): In<br>
function `libmetis__InitKWayPartitioning':<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kmetis.c:187:<br>
undefined reference to `log'<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kmetis.c:187:<br>
undefined reference to `pow'<br>
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(util.c.o): In<br>
function `gk_flog2':<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/GKlib/util.c:106:<br>
undefined reference to `log'<br>
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(kwayfm.c.o): In<br>
function `libmetis__Greedy_KWayCutOptimize':<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kwayfm.c:181:<br>
undefined reference to `sqrt'<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kwayfm.c:321:<br>
undefined reference to `sqrt'<br>
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(kwayfm.c.o): In<br>
function `libmetis__Greedy_McKWayCutOptimize':<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kwayfm.c:823:<br>
undefined reference to `sqrt'<br>
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kwayfm.c:977:<br>
undefined reference to `sqrt'<br>
collect2: ld returned 1 exit status<br>
make[3]: *** [programs/mtest] Error 1<br>
make[2]: *** [programs/CMakeFiles/mtest.dir/all] Error 2<br>
make[1]: *** [all] Error 2<br>
make: *** [all] Error 2<br>
<br>
<br>
<br>
--<br>
Dominik<br>
</blockquote></div>