[petsc-users] WHY "C++ error! MPI_Finalize() could not be located!"? Thanks.

Jerry orzgodlo at gmail.com
Sat Jan 17 04:07:40 CST 2015


Hi, all.

I am trying to configure&compile petsc. However, during configuring, I got
the following error (C++ error! MPI_Finalize() could not be located!). I am
also copying the last few lines in configure.log.

But I am sure mpi.h is under the folder I specified
(--with-mpi-include=/usr/include/mpi )

Any idea about the problem? Thanks.


$$ ./configure --prefix=~/local --with-cc=gcc --with-cxx=g++
--with-fc=gfortran --with-mpi-include=/usr/include/mpi
--with-mpi-lib=/usr/lib/libmpi.so

===============================================================================
             Configuring PETSc to compile on your
system
===============================================================================
TESTING: CxxMPICheck from
config.packages.MPI(config/BuildSystem/config/packages*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
details):
-------------------------------------------------------------------------------
C++ error! MPI_Finalize() could not be located!
*******************************************************************************



===========  Last few lines from configure.log ================


*******************************************************************************
  File "./config/configure.py", line 272, in petsc_configure
    framework.configure(out = sys.stdout)
  File
"/home/delia/workspace/programs/petsc/config/BuildSystem/config/framework.py",
line 941, in configure
    child.configure()
  File
"/home/delia/workspace/programs/petsc/config/BuildSystem/config/package.py",
line 606, in configure
    self.executeTest(self.configureLibrary)
  File
"/home/delia/workspace/programs/petsc/config/BuildSystem/config/base.py",
line 126, in executeTest
    ret = test(*args,**kargs)
  File
"/home/delia/workspace/programs/petsc/config/BuildSystem/config/packages/MPI.py",
line 660, in CxxMPICheck
    raise RuntimeError('C++ error! MPI_Finalize() could not be located!')
================================================================================
Finishing Configure Run at Sat Jan 17 01:34:31 2015
================================================================================


Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150117/2c2c823b/attachment.html>


More information about the petsc-users mailing list