[petsc-users] MatConvert behavior 3.1 vs 3.2

Dominik Szczerba dominik at itis.ethz.ch
Fri Jan 27 08:16:07 CST 2012


> PETSc-dev uses ParMetis-4.0.2 with other custom patches.
>
>
> I suggest that you try building your code with petsc-dev to see if
> ParMetis-4.0.2 fixed the bug you are hitting.

I am getting this error. Looks simple but it comes from BLAS routines,
so I did not attempt to resolve it:

/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(gklib.c.o): In
function `libmetis__inorm2':
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/gklib.c:18:
undefined reference to `sqrt'
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(gklib.c.o): In
function `libmetis__rnorm2':
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/gklib.c:19:
undefined reference to `sqrt'
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(kmetis.c.o): In
function `libmetis__InitKWayPartitioning':
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kmetis.c:187:
undefined reference to `log'
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kmetis.c:187:
undefined reference to `pow'
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(util.c.o): In
function `gk_flog2':
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/GKlib/util.c:106:
undefined reference to `log'
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(kwayfm.c.o): In
function `libmetis__Greedy_KWayCutOptimize':
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kwayfm.c:181:
undefined reference to `sqrt'
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kwayfm.c:321:
undefined reference to `sqrt'
/home/dsz/pack/petsc-dev/gnu-debug/lib/libmetis.a(kwayfm.c.o): In
function `libmetis__Greedy_McKWayCutOptimize':
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kwayfm.c:823:
undefined reference to `sqrt'
/home/dsz/pack/petsc-dev/externalpackages/metis-5.0.2/libmetis/kwayfm.c:977:
undefined reference to `sqrt'
collect2: ld returned 1 exit status
make[3]: *** [programs/mtest] Error 1
make[2]: *** [programs/CMakeFiles/mtest.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2



-- 
Dominik


More information about the petsc-users mailing list