Thank you for the reply. It turned out the linker tried to use petsc installed by Ubuntu, not the one I built. After removing the one installed by Ubuntu, the error disappeared.
K. Lee. On Mon, Aug 13, 2012 at 10:39 PM, Satish Balay <balay at mcs.anl.gov> wrote: > 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++ > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120814/ded5fc78/attachment-0001.html>
