[petsc-users] Issue with the installation of Petsc
Franco Dassi
franco.dassi at unimib.it
Mon Apr 6 06:16:29 CDT 2020
Good morning,
We are using your Petsc library to solve linear systems coming from PDEs.
However recently we are trying to install PETSC (maint branch) on a linux
system but we have some issues.
On the one hand, when we use the following configure command
./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran
--download-mpich --download-fblaslapack --with-mpi=1
--download-superlu_dist --download-mumps --download-hypre
--with-debugging=0 COPTFLAGS='-O3 -march=native -mtune=native'
CXXOPTFLAGS='-O3 -march=native -mtune=native' FOPTFLAGS='-O3
-march=native -mtune=native' --download-scalapack
I obtain the following error:
===============================================================================
Configuring PETSc to compile on your system
===============================================================================
TESTING: checkFortranCompiler from
config.setCompilers(config/BuildSystem/config/setCompilers.py:989)
*******************************************************************************
OSError while running ./configure
-------------------------------------------------------------------------------
Cannot run executables created with FC. If this machine uses a batch system
to submit jobs you will need to configure using ./configure with the
additional option --with-batch.
Otherwise there is problem with the compilers. Can you compile and run
code with your compiler
'/home/gurst/repositories/petsc/arch-linux-c-opt/bin/mpif90'?
*******************************************************************************
On the other hand if we add the --with-batch the library is compiled, but
when we try to use it to run the code we obtain the following error (at run
time):
./testGBDForMixed3d: symbol lookup error:
/home/martinelli/repositories/petsc/arch-linux-c-opt//lib/libmpifort.so.12:
undefined symbol: MPIR_F_NeedInit
Looking the symbols table in the petsc/arch-linux-c-opt/lib directory,
It seems that something is undefined:
~/repositories/petsc/arch-linux-c-opt/lib $ nm -A *.so | grep -n
MPIR_F_NeedInit
12591:libfmpich.so: U MPIR_F_NeedInit
18943:libmpi.so:000000000031ab00 D MPIR_F_NeedInit
27046:libmpich.so:000000000031ab00 D MPIR_F_NeedInit
34565:libmpichf90.so: U MPIR_F_NeedInit
40333:libmpifort.so: U MPIR_F_NeedInit
46685:libmpl.so:000000000031ab00 D MPIR_F_NeedInit
54788:libopa.so:000000000031ab00 D MPIR_F_NeedInit
Are we doing something wrong?
Thank you in advance for your time
best
Massimiliano and Franco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200406/ef9844ca/attachment.html>
More information about the petsc-users
mailing list