[petsc-users] petsc linking error with MatSetType

Satish Balay balay at mcs.anl.gov
Mon Aug 13 09:39:39 CDT 2012


This report has incomplete info [you listed errors - but not the link command]

does 'make test' work for your PETSc build? If so you should check
with libmesh folks about libmesh issues.

satish

On Mon, 13 Aug 2012, Kyunghoon Lee wrote:

> Hi all,
> 
> I got the following linking error when I was building libmesh:
> 
> /homehome//aeronova/aeronova/
> Development/Developmentlocal//localshare//sharelibmesh//libmesh/liblib//x86_64-unknownx86_64--unknown-linux-linux-gnu_dbg/gnu_dbg/libmesh.so:libmesh.so
> undefined : referenceundefined  referenceto ` to `MatSetType(_p_Mat*, char
> const*)'MatSetType(_p_Mat*, char const*)'
> /
> /home/aeronovahome//Developmentaeronova/Development//locallocal//share/libmeshshare//lib/libmesh/x86_64-unknownlib/-x86_64-unknownlinux--linuxgnu_dbg/-libmesh.so:
> gnu_dbg/undefined referencelibmesh.so: to `
> undefinedEPSSetTolerances(_p_EPS*, double, int)'
>  reference/ home/toaeronova/ `DevelopmentEPSSetTolerances(_p_EPS*, double,
> int)'/local/
> /share/libmeshhome//libaeronova//x86_64Development/-local/unknownshare/libmesh-linux/lib/-x86_64-gnu_dbg/libmesh.sounknown-:
> linux-gnu_dbgundefined/libmesh.so reference : toundefined reference `
> VecScatterEnd(_p_VecScatter*, _p_Vec*, _p_Vec*, InsertMode, ScatterMode)to'
>  `/VecScatterEnd(_p_VecScatter*, _p_Vec*, _p_Vec*, InsertMode,
> ScatterMode)home/'aeronova
> /Development/home//localaeronova/Development//localshare//libmeshshare//liblibmesh/x86_64/lib/-unknownx86_64-unknown--linuxlinux--gnu_dbg/gnu_dbglibmesh.so:
> /libmesh.soundefined: undefined reference reference  to
> to`SNESGetLinearSolveIterations(_p_SNES*, int*) '
> `SNESGetLinearSolveIterations(_p_SNES*, int*)/home'
> 
> It looks like I'm missing some libraries in my petsc, but I'm not sure how
> to resolve the link problem.  My petsc configuration is
> 
> ./configure --download-mpich=1 --download-blacs=1 --download-parmetis=1
> --download-scalapack=1 --download-mumps=1 --download-umfpack=1
> --with-clanguage=C++
> 



More information about the petsc-users mailing list