# MM5 MPP - compiling problems 2

**URL:** <https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problems-2/130476>\
**Category:** Legacy PGI Compilers (archived)\
**Created:** [September 22, 2006, 2:57pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problems-2/130476 "2006-09-22T14:57:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ezio](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ezio](https://forums.developer.nvidia.com/u/ezio)\
**Post date:** [September 22, 2006, 2:57pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problems-2/130476/1 "2006-09-22T14:57:07Z")

</div>

Hi,

I’m working on a Linux Cluster Mandrake 9.1 with MPI-CH1.2.7 and MM5  
When I try to compile MM5-MPP I get the following error message:  
  
  
/cluster/mpich/bin/mpif77 -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 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 savread.o settbl.o sfcrad.o shutdo.o slab.o solar1.o solve.o sound.o subch.o trans.o transm.o upshot\_mm5.o vadv.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 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 -Mcray=pointer -tp p6 -pc 32 -Mnoframe -byteswapio -L/cluster/mpich/lib -lfmpich -lmpich  
../../MPP/RSL/RSL/librsl.a(rsl\_malloc.o)(.text+0x1e6): In function `rsl_free': : undefined reference to `errno’  
../../MPP/RSL/RSL/librsl.a(rsl\_malloc.o)(.text+0x204): In function `rsl_free': : undefined reference to `errno’  
make[1]: [all] Error 2 (ignored)  
/bin/mv mm5.mpp ../../Run/mm5.mpp  
/bin/mv: impossibile fare stat di `mm5.mpp': No such file or directory make[1]: [all] Error 1 (ignored) make[1]: Leaving directory `/cluster/MM5/MPP/build’

wich this  
configure.user

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

## edit the following definition for your system

LINUX\_MPIHOME = /cluster/mpich  
MFC = $(LINUX\_MPIHOME)/bin/mpif77  
MCC = $(LINUX\_MPIHOME)/bin/mpicc  
MLD = $(LINUX\_MPIHOME)/bin/mpif77  
FCFLAGS = -O2 -Mcray=pointer -tp p6 -pc 32 -Mnoframe -byteswapio  
LDOPTIONS = -O2 -Mcray=pointer -tp p6 -pc 32 -Mnoframe -byteswapio  
#LOCAL\_LIBRARIES = -L$(LINUX\_MPIHOME)/build/LINUX/ch\_p4/lib -lfmpich -lmpich  
#LOCAL\_LIBRARIES = -L$(LINUX\_MPIHOME)/build/LINUX/ch\_p4/p4/lib -lfmpich -lmpich  
#LIB\_PATH = -L $(PGI)/linux86-64/5.1/lib -L $(LINUX\_MPIHOME)/lib -L /lib64  
#LOCAL\_LIBRARIES = $(LIB\_PATH) -lgcc -lmpich -lfmpich -lrapl -lmpichfsup -lpthread $(LOCAL\_OBJS  
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  
#-----------------------------------------------------------------------------

Please could someone can help me to fix my problem  
Thanks a lot!

Best Regards  
Ezio

---

<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:** [September 22, 2006, 7:09pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problems-2/130476/2 "2006-09-22T19:09:18Z")

</div>

Hi Ezio,

UCAR fixed the ‘errno’ problem as of the MPP 3.7 release (See [HERE](http://www.mmm.ucar.edu/mm5/mpp/helpdesk/20030725.html)). Linux changed how it handles the global variable ‘errno’ and many programs needed to be updated.

Hope this helps,  
Mat

---

<div class="post-metadata">

**Author:** ![ezio](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ezio](https://forums.developer.nvidia.com/u/ezio)\
**Post date:** [September 27, 2006, 2:42pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problems-2/130476/3 "2006-09-27T14:42:00Z")

</div>

Thanks Mat,  
with MPP 3.7 I’ve resolve ‘errno’ problem but now I have this error:  
  
  
/cluster/mpich/bin/mpif77 -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 -Mcray=pointer -tp p6 -pc 32 -Mnoframe -byteswapio -L/cluster/mpich/lib -lfmpich -lmpich  
/usr/bin/ld: cannot open kill\_model.o: No such file or directory  
make[1]: [all] Error 2 (ignored)  
/bin/mv mm5.mpp …/…/Run/mm5.mpp  
/bin/mv: impossibile fare stat di `mm5.mpp': No such file or directory make[1]: [all] Error 1 (ignored) make[1]: Leaving directory `/cluster/MM5/MPP/build’  
[root@mm502 MM5]#

Please, where is my mistake?  
Thanks, Ezio

---

<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:** [September 28, 2006, 4:58pm UTC](https://forums.developer.nvidia.com/t/mm5-mpp-compiling-problems-2/130476/4 "2006-09-28T16:58:21Z")

</div>

Hi Ezio,

> /usr/bin/ld: cannot open kill\_model.o: No such file or directory

You need to look earlier in your log and determine why “kill\_model.o” didn’t get compiled.

- Mat
