[MITgcm-support] make problems
Gus Correa
gus at ldeo.columbia.edu
Thu Jan 27 13:23:16 EST 2011
Hi Nataliya
My guess is that you are missing some libraries required by MPICH2.
It tends to be simpler to use mpif77 or mpif90, perhaps with full path,
instead of ifort (*if* your MPICH2 was compiled with ifort).
The mpi compiler wrapper knows where to look for its libraries.
FC=ifort -> FC=/full/path/to/mpich/mpif77
An alternative is to do:
mpif77 -show
to see which additional flags you need to add to FFLAGS or LDFLAGS.
My two cents,
Gus Correa
Nataliya Stashchuk wrote:
> Hi All,
>
>
>
> I started to run MITgcm on new cluster. I wrote the following optfile:
>
> ------------------------------------------------------------------------------------------------
>
> #!/bin/bash
>
> #
>
>
>
> FC=ifort
>
>
>
> EXTENDED_SRC_FLAG='-132'
>
> OMPFLAG='-openmp'
>
>
>
> DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'
>
> CPP='/lib/cpp -traditional -P'
>
> F90FIXEDFORMAT='-fixed -Tf'
>
>
>
> NOOPTFLAGS='-O0 -g -m64 -mcmodel=medium'
>
> NOOPTFILES=''
>
>
>
> INCLUDEDIRS='/opt/mpich2/gnu/include'
>
> INCLUDES='-I/opt/mpich2/gnu/include'
>
>
>
> #MPI_HEADER_FILES='mpif.h mpiof.h'
>
>
>
> LIBS='-L/opt/mpich2/gnu/lib -lmpich -lfmpich'
>
>
>
> if test "x$DEVEL" != x ; then
>
> FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume
> byterecl -mcmodel=medium -O0 -g -noalign -fpstkchk -check all -fpe0
> -traceback -ftrapuv -warn all'
>
> else
>
> FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume
> byterecl -mcmodel=medium'
>
> fi
>
>
>
> if test "x$IEEE" = x ; then
>
> FOPTIM='-O2 -align -xW -ip'
>
> else
>
> FOPTIM='-O2 -align -xW -ip -mp'
>
> fi
>
>
>
> F90FLAGS=$FFLAGS
>
> F90OPTIM=$FOPTIM
>
> CFLAGS='-O2 -ip -mcmodel=medium'
>
> ------------------------------------------------------------------
>
>
>
> After make command I got the following error
>
>
>
> /opt/mpich2/gnu/lib/libmpich.so: undefined reference to `shm_open'
>
> /opt/mpich2/gnu/lib/libmpich.so: undefined reference to `aio_suspend64'
>
> /opt/mpich2/gnu/lib/libmpich.so: undefined reference to `aio_return64'
>
> /opt/mpich2/gnu/lib/libmpich.so: undefined reference to `aio_read64'
>
> /opt/mpich2/gnu/lib/libmpich.so: undefined reference to `shm_unlink'
>
> /opt/mpich2/gnu/lib/libmpich.so: undefined reference to `aio_error64'
>
> /opt/mpich2/gnu/lib/libmpich.so: undefined reference to `aio_write64'
>
> make: *** [mitgcmuv] Error 1
>
>
>
> Does anybody know how to solve it?
>
>
>
> Regards,
>
>
>
> Nataliya
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
More information about the MITgcm-support
mailing list