# CMAQ5.3 MCIP compiling error

**URL:** <https://forum.cmascenter.org/t/cmaq5-3-mcip-compiling-error/994>\
**Category:** Compiling\
**Created:** [October 2, 2019, 9:06pm UTC](https://forum.cmascenter.org/t/cmaq5-3-mcip-compiling-error/994 "2019-10-02T21:06:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jliu](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jliu](https://forum.cmascenter.org/u/jliu)\
**Post date:** [October 2, 2019, 9:06pm UTC](https://forum.cmascenter.org/t/cmaq5-3-mcip-compiling-error/994/1 "2019-10-02T21:06:25Z")

</div>

Hello,  
I find the error when I was compiling MCIP, please help me to figure it out if you know it.

The makefile:  
FFLAGS = -O3 -I$(NETCDF\_DIR)/include -I$(IOAPI\_ROOT)/ioapi/fixed\_src  
LIBS = -L$(IOAPI\_ROOT)/Linux2\_x86\_64gfort -lioapi   
-L$(NETCDF\_DIR)/lib -lnetcdff -lnetcdf -lgomp

Thanks.

\*\*\*\*\*\*\* netcdff -lnetcdf -lgomp

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf\_nc4.o): In function `nf\_def\_var\_chunking\_’:

nf\_nc4.f90:(.text+0x5ea2): undefined reference to `nc\_def\_var\_chunking\_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf\_nc4.o): In function `nf\_inq\_var\_chunking\_’:

nf\_nc4.f90:(.text+0x61bf): undefined reference to `nc\_inq\_var\_chunking\_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf\_nc4.o): In function `nf\_set\_chunk\_cache\_’:

nf\_nc4.f90:(.text+0x6c0f): undefined reference to `nc\_set\_chunk\_cache\_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf\_nc4.o): In function `nf\_get\_chunk\_cache\_’:

nf\_nc4.f90:(.text+0x6c48): undefined reference to `nc\_get\_chunk\_cache\_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf\_nc4.o): In function `nf\_set\_var\_chunk\_cache\_’:

nf\_nc4.f90:(.text+0x6cdc): undefined reference to `nc\_set\_var\_chunk\_cache\_ints’

/home/jliu/LIBRARIES/netcdf/lib/libnetcdff.a(nf\_nc4.o): In function `nf\_get\_var\_chunk\_cache\_’:

nf\_nc4.f90:(.text+0x6d37): undefined reference to `nc\_get\_var\_chunk\_cache\_ints’

collect2: error: ld returned 1 exit status

make[1]: \*\*\* [mcip.exe] Error 1

make[1]: Leaving directory `/jwork/jliu/WRF\_CMAQ/CMAQ53/PREP/mcip/src’

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [October 2, 2019, 9:27pm UTC](https://forum.cmascenter.org/t/cmaq5-3-mcip-compiling-error/994/2 "2019-10-02T21:27:02Z")

</div>

This may be a netCDF-4.7 bug. This looks like _libnetcdf.a_ has been configured using the flag  
`--disable-netcdf4`  
while _libnetcdff.a_ has not. “net.rumor” says that this is a bug in this particular version of netCDF.  
netCDF (both C and Fortran) is known to work correctly; perhaps you should try that.

---

<div class="post-metadata">

**Author:** ![jliu](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@jliu](https://forum.cmascenter.org/u/jliu)\
**Post date:** [October 3, 2019, 2:10pm UTC](https://forum.cmascenter.org/t/cmaq5-3-mcip-compiling-error/994/3 "2019-10-03T14:10:24Z")

</div>

Thanks, I wil look at it

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [October 3, 2019, 2:11pm UTC](https://forum.cmascenter.org/t/cmaq5-3-mcip-compiling-error/994/4 "2019-10-03T14:11:25Z")

</div>

Oops – the known-=to-work version – 4.4 – somehow got lost here.
