[petsc-users] Errors encountered when linking against a successful build including MUMPS

Ellen M. Price ellen.price at cfa.harvard.edu
Sat Jun 23 19:51:52 CDT 2018


I just successfully (re)-compiled petsc-3.9.2 to use my MUMPS install.
The PETSc build process completed with no errors and I installed my new
shared libs. However, when I tried linking against the new libraries, I
get the following errors:

/home/eprice/software/petsc-opt/lib/libpetsc.so: undefined reference to
`MatMumpsSetIcntl'
/home/eprice/software/petsc-opt/lib/libpetsc.so: undefined reference to
`MatPartitioningParmetisSetRepartition'
/home/eprice/software/petsc-opt/lib/libpetsc.so: undefined reference to
`MatSolverTypeRegister_MUMPS'
/home/eprice/software/petsc-opt/lib/libpetsc.so: undefined reference to
`MatPartitioningCreate_Parmetis'
/home/eprice/software/petsc-opt/lib/libpetsc.so: undefined reference to
`MatPartitioningCreate_PTScotch'
collect2: error: ld returned 1 exit status

This is confusing, because I can't see any reason these functions
shouldn't be included in the final build. My configure command follows:

./configure --prefix=/home/eprice/software/petsc-opt --with-hdf5=1
--with-hdf5-dir=/home/eprice/software/hdf5-parallel --with-mpe=1
--with-mpe-dir=/home/eprice/software/mpe --with-debugging=0
LDFLAGS='-pthread -lz' COPTFLAGS='-O3 -march=native -mtune=native'
CXXOPTFLAGS='-O3 -march=native -mtune=native' FOPTFLAGS='-O3
-march=native -mtune=native' --with-mpi=1
--with-mpi-dir=/home/eprice/software/mpich --with-mumps=1
--with-mumps-dir=/home/eprice/software/mumps --with-parmetis=1
--with-parmetis-dir=/home/eprice/software/parmetis --with-metis=1
--with-metis-dir=/home/eprice/software/parmetis --with-ptscotch=1
--with-ptscotch-dir=/home/eprice/software/scotch --with-scalapack=1
--with-scalapack-dir=/home/eprice/software/scalapack

Any help is greatly appreciated. I tried picking through the build
system to find a problem, but it's difficult to understand without docs.

Ellen


More information about the petsc-users mailing list