[petsc-users] MatConvert behavior 3.1 vs 3.2

Jed Brown jedbrown at mcs.anl.gov
Fri Jan 27 08:18:40 CST 2012


I have no idea how you are missing linking libm, but that's the problem.
On Jan 27, 2012 8:16 AM, "Dominik Szczerba" <dominik at itis.ethz.ch> wrote:

> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120127/8defb6d6/attachment.htm>


More information about the petsc-users mailing list