[MITgcm-support] a problem with mpich

Martin Losch Martin.Losch at awi.de
Mon Jun 21 03:14:36 EDT 2010


To me this looks like it has to do with the mpich installation. Make sure (possibly with the help of your sysadmin) that you can compile simple fortran programs with mpi. That's easier to debug.

Martin

On Jun 20, 2010, at 3:27 PM, ouc.edu.cn wrote:

> Hi all,
>   when I compile the code with mpich, an error message appears:
> /public/source/mpich-1.2.7p1/lib/libmpich.a(farg.o):(.data+0x0): undefined reference to `pgf90_compiled'
> /public/source/mpich-1.2.7p1/lib/libmpich.a(initfcmn.o):(.data+0x0): undefined reference to `pgf90_compiled'
> make: *** [mitgcmuv] Error 2
> 
> The optfile I use is:
>  
> INCLUDES="-I/public/soft/mpich127-pgi702/include"
> FC=pgf77
> LIBS="-L/public/soft/mpich127-pgi702/lib -lmpich"
> INCLUDEDIRS="../../../../../../../public/soft/mpich127-pgi702/include"
> DEFINES='-DWORDLENGTH=4'
> CPP='cpp  -traditional -P'
> NOOPTFLAGS='-O0 -fPIC'
> MAKEDEPEND=/public/home/hycom/Mitgcm/MITgcm_c61z/tools/cyrus-imapd-makedepend/makedepend
> if test "x$IEEE" = x ; then
>     #  No need for IEEE-754
>     FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend -Ktrap=fp -fPIC'
>     FOPTIM='-tp k8-64 -pc=64 -O2 -Mvect=sse' #-fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform'
> else
>     #  Try to follow IEEE-754
>     FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend -Ktrap=fp -fPIC'
>     FOPTIM='-tp k8-64 -pc=64 -O2 -Mvect=sse -Kieee' #-fastsse -O3 -Msmart -Kieee -Mvect=cachesize:1048576,transform'
> fi
> CFLAGS='-O2 -fPIC'
>  
> It seems that there is something wrong with this line: LIBS="-L/public/soft/mpich127-pgi702/lib -lmpich"
> Could anybody tell me what is the problem with this optfile ? Thanks a lot.
> Cheers,
> Dwight
> 
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list