Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: [OMPI users] Unable to include mpich library
From: Srinivas Gopal (srinivas13.2_at_[hidden])
Date: 2010-06-25 03:14:28


Hi,
   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
gmake: *** [/home/srinivas/ccsm4/scratch//d_f45/run/ccsm.exe] Error 1*

All though /usr/local/lib exists it says it cannot find -lmpich. Contents of
/usr/local/lib is as follows:
*total 4764
-rwxr-xr-x 1 root root 991 2010-06-06 00:01 libmca_common_sm.la
lrwxrwxrwx 1 root root 25 2010-06-06 00:01 libmca_common_sm.so ->
libmca_common_sm.so.1.0.0
lrwxrwxrwx 1 root root 25 2010-06-06 00:01 libmca_common_sm.so.1 ->
libmca_common_sm.so.1.0.0
-rwxr-xr-x 1 root root 13566 2010-06-06 00:01 libmca_common_sm.so.1.0.0
-rwxr-xr-x 1 root root 1041 2010-06-06 00:01 libmpi_cxx.la
lrwxrwxrwx 1 root root 19 2010-06-06 00:01 libmpi_cxx.so ->
libmpi_cxx.so.0.0.0
lrwxrwxrwx 1 root root 19 2010-06-06 00:01 libmpi_cxx.so.0 ->
libmpi_cxx.so.0.0.0
-rwxr-xr-x 1 root root 135913 2010-06-06 00:01 libmpi_cxx.so.0.0.0
-rwxr-xr-x 1 root root 1045 2010-06-06 00:01 libmpi_f77.la
lrwxrwxrwx 1 root root 19 2010-06-06 00:01 libmpi_f77.so ->
libmpi_f77.so.0.0.0
lrwxrwxrwx 1 root root 19 2010-06-06 00:01 libmpi_f77.so.0 ->
libmpi_f77.so.0.0.0
-rwxr-xr-x 1 root root 362563 2010-06-06 00:01 libmpi_f77.so.0.0.0
-rwxr-xr-x 1 root root 1045 2010-06-06 00:01 libmpi_f90.la
lrwxrwxrwx 1 root root 19 2010-06-06 00:01 libmpi_f90.so ->
libmpi_f90.so.0.0.0
lrwxrwxrwx 1 root root 19 2010-06-06 00:01 libmpi_f90.so.0 ->
libmpi_f90.so.0.0.0
-rwxr-xr-x 1 root root 18024 2010-06-06 00:01 libmpi_f90.so.0.0.0
-rwxr-xr-x 1 root root 996 2010-06-06 00:01 libmpi.la
lrwxrwxrwx 1 root root 15 2010-06-06 00:01 libmpi.so -> libmpi.so.0.0.1
lrwxrwxrwx 1 root root 15 2010-06-06 00:01 libmpi.so.0 ->
libmpi.so.0.0.1
-rwxr-xr-x 1 root root 865544 2010-06-06 00:01 libmpi.so.0.0.1
-rwxr-xr-x 1 root root 997 2010-06-06 00:00 libopenmpi_malloc.la
lrwxrwxrwx 1 root root 26 2010-06-06 00:00 libopenmpi_malloc.so ->
libopenmpi_malloc.so.0.0.0
lrwxrwxrwx 1 root root 26 2010-06-06 00:00 libopenmpi_malloc.so.0 ->
libopenmpi_malloc.so.0.0.0
-rwxr-xr-x 1 root root 5923 2010-06-06 00:00 libopenmpi_malloc.so.0.0.0
-rwxr-xr-x 1 root root 966 2010-06-06 00:00 libopen-pal.la
lrwxrwxrwx 1 root root 20 2010-06-06 00:00 libopen-pal.so ->
libopen-pal.so.0.0.0
lrwxrwxrwx 1 root root 20 2010-06-06 00:00 libopen-pal.so.0 ->
libopen-pal.so.0.0.0
-rwxr-xr-x 1 root root 400658 2010-06-06 00:00 libopen-pal.so.0.0.0
-rwxr-xr-x 1 root root 996 2010-06-06 00:00 libopen-rte.la
lrwxrwxrwx 1 root root 20 2010-06-06 00:00 libopen-rte.so ->
libopen-rte.so.0.0.0
lrwxrwxrwx 1 root root 20 2010-06-06 00:00 libopen-rte.so.0 ->
libopen-rte.so.0.0.0
-rwxr-xr-x 1 root root 359832 2010-06-06 00:00 libopen-rte.so.0.0.0
-rw-r--r-- 1 root root 238478 2010-06-06 00:01 libotf.a
-rwxr-xr-x 1 root root 891 2010-06-06 00:01 libotf.la
-rw-r--r-- 1 root root 356316 2010-06-06 00:01 libvt.a
-rw-r--r-- 1 root root 123778 2010-06-06 00:01 libvt.fmpi.a
-rw-r--r-- 1 root root 538458 2010-06-06 00:01 libvt.mpi.a
-rw-r--r-- 1 root root 435412 2010-06-06 00:01 libvt.omp.a
-rw-r--r-- 1 root root 616194 2010-06-06 00:01 libvt.ompi.a
-rwxr-xr-x 1 root root 284540 2010-06-06 00:01 mpi.mod
drwxr-xr-x 2 root root 4096 2010-06-06 00:01 openmpi*

$mpif90 -showme -v
ifort -v
$ifort -v
Version 11.1
(Same ouput for mpicc as well)
Im using linux on x86_64

Kindly let me know where I'm going wrong.

Thanks and Regards,
Srinivas