# MM5 mpp compiling problem with pgf90

**URL:** <https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problem-with-pgf90/130590>\
**Category:** Legacy PGI Compilers (archived)\
**Created:** [January 9, 2007, 10:22pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problem-with-pgf90/130590 "2007-01-09T22:22:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jyg](https://forums.developer.nvidia.com/u/jyg)\
**Post date:** [January 9, 2007, 10:22pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problem-with-pgf90/130590/1 "2007-01-09T22:22:41Z")

</div>

Hello,

## I was trying to compile mpp, and got the following error:

## /usr/local/topspin/mpi/mpich/bin/mpif90.p -o mm5.mpp addall.o addrx1c.o addrx1n.o bdyin.o bdyrst.o bdyten.o bdyval.o cadjmx.o coef\_diffu.o condload.o consat.o convad.o couple.o date.o dcpl3d.o dcpl3dwnd.o decouple.o define\_comms.o diffu.o diffth.o diffthd.o diffmoi.o diffintp.o dm\_io.o dots.o dtfrz.o fillcrs.o fkill\_model.o gamma.o gauss.o hadv.o init.o initsav.o initts.o kfbmdata.o kill\_model.o lb\_alg.o lbdyin.o mhz.o mm5.o mp\_equate.o mp\_initdomain.o mp\_shemi.o mparrcopy.o mpaspect.o nconvp.o nudge.o output.o outsav.o outtap.o outts.o outts\_c.o param.o paramr.o rdinit.o rho\_mlt.o savread.o settbl.o setvegfr.o sfcrad.o shutdo.o slab.o solar1.o solve.o sound.o subch.o trans.o transm.o upshot\_mm5.o vadv.o vadv2.o vecgath.o write\_big\_header.o write\_fieldrec.o write\_flag.o exmoiss.o cup.o cupara3.o maximi.o minimi.o mrfpbl.o tridi2.o initnest.o chknst.o nstlev1.o nstlev2.o nstlev3.o nstlev4.o nstlev5.o mp\_stotndt.o smt2.o bcast\_size.o merge\_size.o mp\_feedbk.o rdter.o lwrad.o swrad.o milliclock.o ../../MPP/RSL/RSL/librsl.a -O2 -Mvect -Mcray=pointer -Mnoframe -byteswapio -DDEC\_ALPHA -L/usr/local/topspin/mpi/mpich/lib64 -lfmpich -lmpich /usr/bin/ld: kill\_model.o: No such file: No such file or directory make[1]: [all] Error 2 (ignored) /bin/mv mm5.mpp ../../Run/mm5.mpp /bin/mv: cannot stat `mm5.mpp’: No such file or directory make[1]: [all] Error 1 (ignored)

I checked the compile log and found no error msg for compiling kill\_model.c. However, when I mannually reproduce the compiling, I got the following error msg:

* * *

[adeq@efd build]$ gcc -c -I../../MPP -I../../MPP/RSL -I../../pick -I../../MPP/debug -I../../MPP/RSL/RSL -DMPP1 -DIOR=2 -DIWORDSIZE=4  
-DRWORDSIZE=4 -DLWORDSIZE=4  
-DASSUME\_HOMOGENEOUS\_ENVIRONMENT=1 -DMPI  
-I/usr/local/topspin/mpi/mpich/include kill\_model.c  
In file included from /usr/local/topspin/mpi/mpich/include/mpidefs.h:7,  
from /usr/local/topspin/mpi/mpich/include/mpi.h:230,  
from ../../MPP/RSL/RSL/rsl\_comm.h:266,  
from ../../MPP/RSL/RSL/rsl.h:839,  
from kill\_model.c:6:  
/usr/local/topspin/mpi/mpich/include/mpi\_fortdefs.h:5: error: redefinition of t  
ypedef ‘MPI\_Fint’  
../../MPP/RSL/RSL/rsl.h:832: error: previous declaration of ‘MPI\_Fint’ was here

* * *

I then did the following:

* * *

## rm -r MPP (remove the MPP folder entirely) make uninstall tar -xvf MPP.TAR (re-extract the MPP files) make mpclean make mpp

But still got the same problem. Any idea on what went wrong? Thanks.

Jane

---

<div class="post-metadata">

**Author:** ![MatColgrove](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/matcolgrove/32/14047_2.png) [@MatColgrove](https://forums.developer.nvidia.com/u/MatColgrove)\
**Post date:** [January 10, 2007, 12:08am UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problem-with-pgf90/130590/2 "2007-01-10T00:08:22Z")

</div>

Hi Jane,

This looks a lot like another post we had: [Problems compiling MPP MM5 3.7 using PG6.2 in FC5](https://forums.developer.nvidia.com/t/problems-compiling-mpp-mm5-3-7-using-pg6-2-in-fc5/130459/1)

Can you try removing “+0 -1” from the sort command at line 211 of “MPP/FLIC/FLIC/flic.csh”? These options are no longer valid for sort and cause problems when preprocessing kill\_model.

- Mat

---

<div class="post-metadata">

**Author:** ![jyg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jyg](https://forums.developer.nvidia.com/u/jyg)\
**Post date:** [January 25, 2007, 11:52pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problem-with-pgf90/130590/3 "2007-01-25T23:52:25Z")

</div>

Mat,

I removed the “+0 -1” from the flic.csh file. Then did the following:

> make mpclean  
> make mpp

However, I still have the same problem. I tried to manually compile kill\_model.c and got the same error msg as before.

I have no problem of compiling fkill\_model.f though.

Thank you for any further help,

Jane

---

<div class="post-metadata">

**Author:** ![MatColgrove](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/matcolgrove/32/14047_2.png) [@MatColgrove](https://forums.developer.nvidia.com/u/MatColgrove)\
**Post date:** [January 26, 2007, 9:20pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problem-with-pgf90/130590/4 "2007-01-26T21:20:14Z")

</div>

Hi Jane,

What OS and compiler version are you using?

Thanks,  
Mat

---

<div class="post-metadata">

**Author:** ![jyg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jyg](https://forums.developer.nvidia.com/u/jyg)\
**Post date:** [February 7, 2007, 10:35pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problem-with-pgf90/130590/5 "2007-02-07T22:35:54Z")

</div>

Hi Mat,

The info you asked are listed below:

OS: Linux 2.4.29  
PGI: Linux86/6.1  
CPU: AMD Opteron

Thank you.

Jane

---

<div class="post-metadata">

**Author:** ![hongyon](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hongyon](https://forums.developer.nvidia.com/u/hongyon)\
**Post date:** [February 9, 2007, 7:57pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problem-with-pgf90/130590/6 "2007-02-09T19:57:41Z")

</div>

jyg,

Where did you get your source? Here is what I did for 32-bit compile with 6.1-7 compilers, assume you have your own MPI. I compile on SUSE90 which has Kernel 2.4.21-102-default. It should not make any difference from your OS.

1. Go to ftp://ftp.ucar.edu/mesouser/MM5V3
2. Download MM5.TAR.gz and MPP.TAR.gz
3. Untar them as follow:-  
% gzip -d -c MM5.TAR.gz | tar xf -  
% cd MM5  
% gzip -d -c ../MPP.TAR.gz | tar xf -
4. Edit MPP/FLIC/FLIC/flic.csh to remove +0 +1 at line 211 as Mat recommended.
5. Edit configure.user, uncomment lines 778:801. Below is example, make sure you set LINUX\_MPIHOME and LOCAL\_LIBRARIES correctly.

* * *

RUNTIME\_SYSTEM = “linux”  
MPP\_TARGET=$(RUNTIME\_SYSTEM)

## edit the following definition for your system

## LINUX\_MPIHOME = /opt/pgi/linux86/6.1/ MFC = $(LINUX\_MPIHOME)/bin/mpif90 MCC = $(LINUX\_MPIHOME)/bin/mpicc MLD = $(LINUX\_MPIHOME)/bin/mpif90 FCFLAGS = -O2 -Mcray=pointer -Mnoframe -byteswapio LDOPTIONS = -O2 -Mcray=pointer -Mnoframe -byteswapio LOCAL\_LIBRARIES = -L$(LINUX\_MPIHOME)/lib -lfmpich -lmpich MAKE = make -i -r AWK = awk SED = sed CAT = cat CUT = cut EXPAND = expand M4 = m4 CPP = /lib/cpp -C -P -traditional CPPFLAGS = -DMPI -Dlinux -DSYSTEM\_CALL\_OK CFLAGS = -DMPI -I$(LINUX\_MPIHOME)/include ARCH\_OBJS = milliclock.o IWORDSIZE = 4 RWORDSIZE = 4 LWORDSIZE = 4

1. Set Path to 32-bit 6.1 PGI compilers.
2. Type: make mpp

Hope this helps,  
Hongyon
