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

Matthew Knepley knepley at gmail.com
Sat Jan 17 06:52:16 CST 2015


Send the whole configure.log

  Thanks,

     Matt

On Sat, Jan 17, 2015 at 4:07 AM, Jerry <orzgodlo at gmail.com> wrote:

> 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
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150117/911eb2cc/attachment-0001.html>


More information about the petsc-users mailing list