[MITgcm-support] Problem with MPI (cannot find -lmpi)
Abbas Dorostkar
abbas.dorostkar at ce.queensu.ca
Fri Feb 6 17:24:08 EST 2009
Dear all,
I try to compile MITgcm with -mpi option on my Opteron machine with RedHat
Linux. The MPI environment (MPICH2) is tested by a simple "hello world"
program. However, I get this error message:
-L/usr/local/netcdf4/lib -L/usr/local/lib -lmpi
/usr/bin/ld: cannot find -lmpi
collect2: ld returned 1 exit status
make: *** [mitgcmuv] Error 1
=== Checking system libraries ===
Do we have the system() command using /usr/local/bin/mpif77... yes
Do we have the fdate() command using /usr/local/bin/mpif77... yes
Do we have the etime() command using /usr/local/bin/mpif77... yes
Can we call simple C routines (here, "cloc()") using
/usr/local/bin/mpif77... yes
Can we unlimit the stack size using /usr/local/bin/mpif77... yes
Can we register a signal handler using /usr/local/bin/mpif77... yes
Can we use stat() through C calls... yes
Can we create NetCDF-enabled binaries... no
The opt file I use is as follows:
#!/bin/bash
#
FC='/usr/local/bin/mpif77'
CC='/usr/local/bin/mpicc'
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=4'
LIBS='-L/usr/local/netcdf4/lib -L/usr/local/lib -lmpi'
INCLUDES='-I/usr/local/netcdf4/include -I/usr/local/include'
CPP='/usr/bin/cpp -traditional -P'
NOOPTFLAGS='-O0'
#MAKEDEPEND=/usr/X11R6/bin/gccmakedep
#MAKEDEPEND=/usr/X11R6/bin/makedepend
# For IEEE, use the "-ffloat-store" option
if test "x$IEEE" = x ; then
FFLAGS='-Wimplicit -Wunused -Wuninitialized'
FOPTIM='-O3 -funroll-loops'
else
FFLAGS='-Wimplicit -Wunused -ffloat-store'
FOPTIM='-O0 '
fi
I am not sure If something is wrong with my opfile. It would be great If I
could have your ideas.
Thanks very much
Abbas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20090206/fe55a726/attachment.htm>
More information about the MITgcm-support
mailing list