Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Unable to include mpich library
From: Götz Waschk (goetz.waschk_at_[hidden])
Date: 2010-06-25 04:11:26

On Fri, Jun 25, 2010 at 9:14 AM, Srinivas Gopal <srinivas13.2_at_[hidden]> wrote:
>    I'm trying to build CCSM4 for which I'm using open mpi 1.4.1. $MPICH_PATH
> is set /usr/local (output of $which mpirun is /usr/local/bin/mpirun) and
> LIB_MPI is set to $(MPICH_PATH)/lib in its Macros file. However build
> process exits with the following error:
> .....4/scratch//d_f45/lib -lcsm_share -lmct -lmpeu -lpio
> -L/home/srinivas/netcdf/lib -lnetcdf  -L/usr/local/lib -lmpich
> -L/home/srinivas/pnetcdf/lib -lpnetcdf
> ld: cannot find -lmpich

Hi Srinivas,

libmpich is not part of open-mpi. Maybe your software build with mpich
only? If your software does not use anything specific to mpich, you
could try to change -lmpich to -lmpi .

Regards, Götz

AL I:40: Do what thou wilt shall be the whole of the Law.