<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,
<div><br>
</div>
<div>I've already seen a thread where someone recently was trying to build with mumps and was failing at test. </div>
<div>The recommendation that seemed to have worked for that user, at least on this point, was </div>
<div>a fresh install and shared libraries off. <span style="font-size: 10pt;">Well, I am having the same problem with 3.5.1 with the same error message he was getting. </span></div>
<div>The build can not interpret symbols in some <span style="font-size: 10pt;">mumps and parmetis references.</span></div>
<div>Whether shared libraries is set to 0 or 1 is irrelevant, at least in my case. The problem persists. </div>
<div>The error messages are in the bottom of this post.</div>
<div><span style="font-size: 10pt;">And yes, all packages are there, otherwise petsc would not build in the first place. It fails a test with an error message that is</span></div>
<div>typical of the build missing some include files <span style="font-size: 10pt;">that it expects to have present. </span></div>
<div><span style="font-size: 10pt;">Without mumps - metis & parmetis - the install is fine and tests complete fine. </span></div>
<div>So, I guess I am wondering if the developers have any more insight to spare...</div>
<div>Thanks.</div>
<div><br>
</div>
<div>Here is my configure:<br>
<p class="p1">./configure --prefix=/software/petsc/3.5.1.1 \</p>
<p class="p1">--with-blas-lib=/software/lapack/3.5.0/lib/libblas.so --with-lapack-lib=/software/lapack/3.5.0/liblapack.so \</p>
<p class="p1">--with-hdf5=1 --with-hdf5-dir=/software/hdf5/1.8.10 \</p>
<p class="p1">--with-valgrind=1 --with-valgrind-dir=/software/valgrind/3.8.1 \</p>
<p class="p1">--with-boost=1 --with-boost-dir=/software/boost/1.41.0 \</p>
<p class="p1">--with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 \</p>
<p class="p1">--with-debugging=1 \</p>
<p class="p1">--download-fftw=yes \</p>
<p class="p1">--download-scalapack=yes \</p>
<p class="p1">--download-mumps=yes \</p>
<p class="p1">--download-parmetis=yes \</p>
<p class="p1">--download-metis=yes \</p>
<p class="p1">--CFLAGS="-I/usr/include -I/usr/include/openssl" \</p>
<p class="p1">--LDFLAGS=" -L/usr/lib64" \</p>
<p class="p1">--LDLIBS=" -lcrypto -lssl" \</p>
<p class="p1">--with-shared-libraries=0</p>
<p class="p1"><br>
</p>
<p class="p1">I found it necessary to pass references to libssl to the linker because otherwise the make is then complaining with an SSL related issue, that it can not find some include file.</p>
<p class="p1"><br>
</p>
</div>
<div><br>
</div>
<div>
<p class="p1">make PETSC_DIR=/software/petsc/3.5.1.1 test</p>
<p class="p1">Running test examples to verify correct installation</p>
<p class="p1">Using PETSC_DIR=/software/petsc/3.5.1.1 and PETSC_ARCH=arch-linux2-c-debug</p>
<p class="p2"><b>*******************Error detected during compile or link!*******************</b></p>
<p class="p2"><b>See http://www.mcs.anl.gov/petsc/documentation/faq.html</b></p>
<p class="p2"><b>/software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/snes/examples/tutorials ex19</b></p>
<p class="p2"><b>*********************************************************************************</b></p>
<p class="p2"><b>*********************W-a-r-n-i-n-g*************************</b></p>
<p class="p2"><b>Your PETSC_DIR may not match the directory you are in</b></p>
<p class="p2"><b>PETSC_DIR /software/petsc/3.5.1.1 Current directory /software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/snes/examples/tutorials</b></p>
<p class="p2"><b>Ignore this if you are running make test </b></p>
<p class="p2"><b>******************************************************</b></p>
</div>
<div>
<p class="p1">mpicc -o ex19.o -c -I/usr/include -I/usr/include/openssl -g3 -O0 -I/software/petsc/3.5.1.1/include -I/software/petsc/3.5.1.1/include -I/software/valgrind/3.8.1/include -I/software/hdf5/1.8.10/include -I/software/boost/1.41.0/include -I/software/mpi/openmpi-1.6.3-gcc-4.6.3-trq4/include
`pwd`/ex19.c</p>
<p class="p1">mpicc -I/usr/include -I/usr/include/openssl -g3 -O0 -o ex19 ex19.o -L/software/petsc/3.5.1.1/lib -lpetsc -Wl,-rpath,/software/petsc/3.5.1.1/lib -lcmumps -ldmumps -lsmumps -lzmumps -lmumps_common -lpord -lscalapack -Wl,-rpath,/software/lapack/3.5.0
-L/software/lapack/3.5.0 -llapack -Wl,-rpath,/software/lapack/3.5.0/lib -L/software/lapack/3.5.0/lib -lblas -lparmetis -lmetis -lX11 -lssl -lcrypto -lpthread -lfftw3_mpi -lfftw3 -Wl,-rpath,/software/hdf5/1.8.10/lib -L/software/hdf5/1.8.10/lib -lhdf5_fortran
-lhdf5_hl -lhdf5 -L/software/mpi/openmpi-1.6.3-gcc-4.6.3-trq4/lib64 -L/hpc/software/gcc/4.6.3-rhel6/lib/gcc/x86_64-unknown-linux-gnu/4.6.3 -L/hpc/software/gcc/4.6.3-rhel6/lib/gcc -L/hpc/software/gcc/4.6.3-rhel6/lib64 -L/hpc/software/gcc/4.6.3-rhel6/lib -lmpi_f90
-lmpi_f77 -lgfortran -lm -lgfortran -lm -lgfortran -lm -lgfortran -lm -lquadmath -lm -lmpi_cxx -lstdc++ -ldl -lmpi -lnuma -lrt -lnsl -lutil -lgcc_s -lpthread -ldl </p>
<p class="p1">/software/petsc/3.5.1.1/lib/libpetsc.a(baij.o): In function `MatCreate_SeqBAIJ':</p>
<p class="p1">/hpc/software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/mat/impls/baij/seq/baij.c:3006: undefined reference to `MatGetFactor_baij_mumps's'</p>
<p class="p1">/software/petsc/3.5.1.1/lib/libpetsc.a(mpibaij.o): In function `MatCreate_MPIBAIJ':</p>
<p class="p1">/hpc/software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/mat/impls/baij/mpi/mpibaij.c:3049: undefined reference to `MatGetFactor_baij_mumps'</p>
<p class="p1">/software/petsc/3.5.1.1/lib/libpetsc.a(sbaij.o): In function `MatCreate_SeqSBAIJ':</p>
<p class="p1">/hpc/software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/mat/impls/sbaij/seq/sbaij.c:1966: undefined reference to `MatGetFactor_sbaij_mumps'</p>
<p class="p1">/software/petsc/3.5.1.1/lib/libpetsc.a(mpisbaij.o): In function `MatCreate_MPISBAIJ':</p>
<p class="p1">/hpc/software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/mat/impls/sbaij/mpi/mpisbaij.c:1803: undefined reference to `MatGetFactor_sbaij_mumps'</p>
<p class="p1">/software/petsc/3.5.1.1/lib/libpetsc.a(aij.o): In function `MatCreate_SeqAIJ':</p>
<p class="p1">/hpc/software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/mat/impls/aij/seq/aij.c:4136: undefined reference to `MatGetFactor_aij_mumps'</p>
<p class="p1">/software/petsc/3.5.1.1/lib/libpetsc.a(mpiaij.o): In function `MatCreate_MPIAIJ':</p>
<p class="p1">/hpc/software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/mat/impls/aij/mpi/mpiaij.c:5578: undefined reference to `MatGetFactor_aij_mumps'</p>
<p class="p1">/software/petsc/3.5.1.1/lib/libpetsc.a(spartition.o): In function `MatPartitioningRegisterAll':</p>
<p class="p1">/hpc/software/sources/builds/petsc-3.5.1_PP/petsc-debug/petsc-3.5.1/src/mat/partition/spartition.c:45: undefined reference to `MatPartitioningCreate_Parmetis'</p>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</body>
</html>