[MITgcm-support] a problem with mpich

ouc.edu.cn ouc.edu.cn at 163.com
Sun Jun 20 09:27:31 EDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20100620/3a555ebb/attachment.htm>


More information about the MITgcm-support mailing list