# Installing --disable-netcdf-4 --disable-dap NEVER works and instructions in CMAQ documentation regarding this seem misleading

**URL:** <https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946>\
**Category:** Compiling\
**Created:** [September 16, 2019, 5:16pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946 "2019-09-16T17:16:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 16, 2019, 5:16pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/1 "2019-09-16T17:16:49Z")

</div>

Hi,  
I tried many times for installing netcdf C and fortran libraries as suggested on cmass forum (e.g. [https://github.com/USEPA/CMAQ/blob/master/DOCS/Users\_Guide/Tutorials/CMAQ\_UG\_tutorial\_build\_library\_intel.md](https://github.com/USEPA/CMAQ/blob/master/DOCS/Users_Guide/Tutorials/CMAQ_UG_tutorial_build_library_intel.md)) but haven’t succeeded yet. Moreover, **it seems not possible to install netcdf-fortran libraries by the method suggested ( -with disable-netcdf-4 -disable-dap does NOT work!).**

## I see --disable-netcdf-4 is suggested most of the times throughout the CMAQ forum and CMAQ documentation but this method DOES NOT work at all! (I have checked with unidata netcdf too)

## I wonder if anyone ever was successful building these libraries by this method?

e.g. make chek on netcdf-fortran throws errors  
…/fortran/.libs/libnetcdff.so: undefined reference to `nc\_get\_chunk\_cache\_ints’

…/fortran/.libs/libnetcdff.so: undefined reference to `nc\_set\_var\_chunk\_cache\_ints’

…/fortran/.libs/libnetcdff.so: undefined reference to `nc\_def\_var\_chunking\_ints’

…/fortran/.libs/libnetcdff.so: undefined reference to `nc\_set\_chunk\_cache\_ints’

…/fortran/.libs/libnetcdff.so: undefined reference to `nc\_get\_var\_chunk\_cache\_ints’

…/fortran/.libs/libnetcdff.so: undefined reference to `nc\_inq\_var\_chunking\_ints’

#### I inquired with unidata and they indicated it is NOT possible to install netcdf-fortran the way it is suggested (i.e using disable-netcdf-4 -disable-dap doesn’t allow install netcdf-fortran) and I was told to reconfigure netcdf-c with netcdf-4 enabled!

Thank you.

Regards

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [September 16, 2019, 7:44pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/2 "2019-09-16T19:44:51Z")

</div>

Please send the following  
For the netcdf C library, attach a copy of your config.log  
I am sending a copy of the [config.log.txt](https://forum.cmascenter.org/uploads/short-url/reEruPqSvZuAOVWfIvqJIGtHkoZ.txt) (127.4 KB) when I followed the steps in the tutorial.

> <https://github.com/USEPA/CMAQ/blob/master/DOCS/Users_Guide/Tutorials/CMAQ_UG_tutorial_build_library_intel.md>

Here is a copy of my [make.install.log.txt](https://forum.cmascenter.org/uploads/short-url/ndQl3s15FbTQqeU5o5sveKMCjVV.txt) (37.5 KB)

I also updated the tutorial to try and give more explicit instructions.

Please attach your config.log.txt (you have to rename it from config.log to config.log.txt in order to upload it to this forum).  
Please attach your make.install.log.txt file as well, and I will look to see what may be causing the issue.

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 16, 2019, 8:18pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/3 "2019-09-16T20:18:10Z")

</div>

[config.log.txt](https://forum.cmascenter.org/uploads/short-url/bwHM1KeGupHINP3R8XbxuDpHm01.txt) (63.6 KB)

Thank you for the reply.  
netcdf-4.7.0 version is even not possible to install with --disable-netcdf-4 --disable-dap. It always complains about byte range thing, no matter if it is disabled or enabled! However, I could install netcdf-c version 4.7.1 successfully though with no luck in installing the accompanying netcdf-fortran library. To be consistent, I have enclosed config.log for netcdf-4.7.0 and with intel.

An example from unidata page regarding bug in netcdf-4.7.0 is here  
[https://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg14665.html](https://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg14665.html)

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [September 16, 2019, 8:30pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/4 "2019-09-16T20:30:27Z")

</div>

Hi again,  
I am getting a failure in the following step when I try to build the fortran library.

```auto
make[1]: Entering directory `/proj/ie/proj/CMAS/CMAQ/CMAQv5.3_branch_UNC10/openmpi_3.1.4_intel_18.2/library/netcdf-fortran-4.4.5/nf_test'
make nf_test tst_f77_v2 ftest tst_f90
make[2]: Entering directory `/proj/ie/proj/CMAS/CMAQ/CMAQv5.3_branch_UNC10/openmpi_3.1.4_intel_18.2/library/netcdf-fortran-4.4.5/nf_test'
DHAVE_CONFIG_H -I. -I.. -I../libsrc -I../fortran -I../fortran -I/proj/ie/proj/CMAS/CMAQ/CMAQv5.3_branch_UNC10/openmpi_3.1.4_intel_18.2/library/netcdf-c-4.7.0/netcdf-c-4.7.0-intel18.2/include -I../fortran -c -o test_get.o test_get.F
make[2]: DHAVE_CONFIG_H: Command not found

```

If I skip the make check test, and do the make install, the library is built anyway.

I am going to try and build the I/O API library, then build CMAQ Benchmark case using this newly built netcdf C and netcdf Fortran library.

I’ve noticed when I try to build the m3tools, that the netcdff and netcdf libraries are out of order. If I go into the m3tools directory and edit the Makefile to use the following, then issue a make in that directory, then the tools build successfully.  
LIBS = -L${OBJDIR} -lioapi -lnetcdff -lnetcdf (OMPLIBS) (ARCHLIB) $(ARCHLIBS)

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 16, 2019, 8:37pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/5 "2019-09-16T20:37:10Z")

</div>

That’s right. I also see make check failing in netcdf-fortran, and ignoring make check, the install seems building libraries, but I was getting error in I/O API later. I will try with this line again.

That line is already in the makefile under /m3tools.  
LIBS = -L${OBJDIR} -lioapi -lnetcdff -lnetcdf (OMPLIBS) (ARCHLIB) $(ARCHLIBS)

It didn’t work for me!

I have been working on it for a long time - turns out that not the atmospheric science and chemistry but the core computer knowledge is essential! I hope someone will help on this someday soon. For  
WRF model, for example, there are nice instructions on getting started, and they worked in my first trial. Unfortunately, here I am not able so far.

Sorry!

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [September 16, 2019, 9:18pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/6 "2019-09-16T21:18:15Z")

</div>

I’ve made more edits to the tutorial.  
Can you send me the log file output from your I/O API makefile?  
Is that where you are now, or were you able to successfully build the I/O API library?

> <https://github.com/USEPA/CMAQ/blob/master/DOCS/Users_Guide/Tutorials/CMAQ_UG_tutorial_build_library_intel.md>

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 17, 2019, 2:21pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/7 "2019-09-17T14:21:45Z")

</div>

Thanks. Here is the error in Makefile, with ifort.  
cd /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort; ifort -auto -warn notruncated\_source -Bstatic -static-intel -c -DAUTO\_ARRAYS=1 -DF90=1 -DFLDMN=1 -DFSTR\_L=int -DIOAPI\_NO\_STDOUT=1 -DAVOID\_FLUSH=1 -DBIT32=1 -O3 -unroll -stack\_temps -safe\_cray\_ptr -convert big\_endian -assume byterecl -traceback -xHost -openmp -DAUTO\_ARRAYS=1 -DF90=1 -DFLDMN=1 -DFSTR\_L=int -DIOAPI\_NO\_STDOUT=1 -DAVOID\_FLUSH=1 -DBIT32=1 -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/ioapi /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/ioapi/m3utilio.f  
ifort: command line error: option ‘-openmp’ is not supported. Please use the replacement option ‘-qopenmp’  
make: \*\*\* [m3utilio.mod] Error 1  
make: Nothing to be done for `fixed\_src’.

Not sure, where should the replacement go?

---

<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:** [September 17, 2019, 2:47pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/8 "2019-09-17T14:47:38Z")

</div>

Look at `OMPFLAGS` in your _ioapi-3.2/ioapi/Makeinclude.Linux2\_x86\_64ifort_: Intel changed the flag between different versions of the compiler. It used to be (v15 or earlier) `-openmp`; for v16 and later, it preferred `-qopenmp` but still accepted `-openmp`; and then in the latest version it accepts `-qopenmp` only.

It makes it difficult for software authors who don’t know which version their clients are using, or whose clients may actually be (for various reasons, including both testing and avoiding bugs in specific compiler versions for particular programs) using multiple versions of the compiler.

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 17, 2019, 4:54pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/9 "2019-09-17T16:54:44Z")

</div>

Thank you. ‘make’ in /ioapi seems working but NOT in /m3tools. The error is  
cd /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort; ifort -auto -warn notruncated\_source -Bstatic -static-intel -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/ioapi -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -DAUTO\_ARRAYS=1 -DF90=1 -DFLDMN=1 -DFSTR\_L=int -DIOAPI\_NO\_STDOUT=1 -DAVOID\_FLUSH=1 -DBIT32=1 -O3 -unroll -stack\_temps -safe\_cray\_ptr -convert big\_endian -assume byterecl -traceback -xHost -DAUTO\_ARRAYS=1 -DF90=1 -DFLDMN=1 -DFSTR\_L=int -DIOAPI\_NO\_STDOUT=1 -DAVOID\_FLUSH=1 -DBIT32=1 -c /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/m3tools/airs2m3.f  
cd /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort; ifort -auto -warn notruncated\_source -Bstatic -static-intel airs2m3.o -L/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -lioapi -lnetcdff -lnetcdf -qopenmp -Bstatic -o airs2m3  
/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_var1io.o): In function `nf_put_var1_int64_': /home/ytang/jjoshi/softwares/cmaq_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf_var1io.F90:354: multiple definition of`nf\_put\_var1\_int64\_’  
/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x71360): first defined here  
/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_var1io.o): In function `nf_get_var1_real': /home/ytang/jjoshi/softwares/cmaq_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf_var1io.F90:733: multiple definition of`nf\_get\_var1\_int64\_’  
/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x71380): first defined here  
/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_varaio.o): In function `nf_put_vara_int64_': /home/ytang/jjoshi/softwares/cmaq_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf_varaio.F90:440: multiple definition of`nf\_put\_vara\_int64\_’  
/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x713a0): first defined here  
/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_varaio.o): In function `nf_get_vara_double': /home/ytang/jjoshi/softwares/cmaq_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf_varaio.F90:933: multiple definition of`nf\_get\_vara\_int64\_’  
/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libioapi.a(modncfio.o):modncfio.F90:(.text+0x713c0): first defined here  
make: \*\*\* [airs2m3] Error 1

---

<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:** [September 17, 2019, 5:04pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/10 "2019-09-17T17:04:04Z")

</div>

Edit your _ioapi/Makeinclude.Linux2\_x86\_64ifort_ so that ARCHFLAGS is  
ARCHFLAGS =   
-DIOAPI\_NCF4=1   
-DAUTO\_ARRAYS=1   
-DF90=1 -DFLDMN=1   
-DFSTR\_L=int   
-DIOAPI\_NO\_STDOUT=1   
-DAVOID\_FLUSH=1 -DBIT32=1

and then _make clean; make_ in your _ioapi_ directory

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 17, 2019, 5:09pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/11 "2019-09-17T17:09:49Z")

</div>

Thanks! No errors encountered with that.

---

<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:** [September 17, 2019, 9:09pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/12 "2019-09-17T21:09:26Z")

</div>

Thanks for the feedback. I/ve updated the I/O API installation to note that this change is needed if the netCDF is built without the `--disable-netcdf-4`.

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 20, 2019, 3:59pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/13 "2019-09-20T15:59:57Z")

</div>

Thanks. But, thus built I/O API is failing in mcip make. (This is mcipv5.0 and the cmaq is v5.3). The output showing error is pasted below.

make[1]: Entering directory `/home/ytang/jjoshi/cmaq\_test/CMAQv5.3/PREP/mcip/src’

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c const\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c const\_pbl\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c coord\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ctmvars\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c date\_time\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c date\_pack\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c files\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c lucats\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c mcipparm\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c metinfo\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c metvars\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c netcdf\_io\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c vgrd\_mod.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c xvars\_mod.f90

make[1]: Leaving directory `/home/ytang/jjoshi/cmaq\_test/CMAQv5.3/PREP/mcip/src’

make[1]: Entering directory `/home/ytang/jjoshi/cmaq\_test/CMAQv5.3/PREP/mcip/src’

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c mcip.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c alloc\_ctm.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c alloc\_met.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c alloc\_x.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c bcldprc\_ak.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c blddesc.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c chkwpshdr.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c chkwrfhdr.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c close\_files.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c comheader.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c comheader\_lufrac.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c comheader\_mos.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c comheader\_soi.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ctmout.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ctmproc.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c dealloc\_ctm.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c dealloc\_met.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c dealloc\_x.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c detangle\_soil\_px.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c e\_aerk.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c dynflds.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c getluse.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c getmet.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c getpblht.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c getpsih.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c getsdt.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c graceful\_stop.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c gridout.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c gridproc.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c init\_ctm.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c init\_io.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c init\_met.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c init\_x.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c julian.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c layht.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ll2xy\_lam.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ll2xy\_lam\_sec.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ll2xy\_lam\_tan.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ll2xy\_merc.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ll2xy\_ps.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c locate.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c mapfac\_lam.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c mapfac\_merc.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c mapfac\_ps.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c metgrid2ctm.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c metvars2ctm.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c outclog.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c outcm3io.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c outglog.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c outgm3io.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c outncf.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c outncfbdy.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c outncfglobal.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c pblsup.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c ptemp.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c pvs.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c qsat.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c rdwrfem.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c readnml.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c resistcalc.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c setgriddefs.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c setup.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c setup\_wrfem.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c sfclayer.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c statflds.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c vertarys.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c vertnhy\_wrf.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c vstamp.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c vtemp.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c wind.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c wrfemopts.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c wrgdesc.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c xy2ll\_lam.f90

ifort -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -c xy2ll\_merc.f90

ifort -o mcip.exe -FR -O3 -traceback -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/include -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort mcip.o alloc\_ctm.o alloc\_met.o alloc\_x.o bcldprc\_ak.o blddesc.o chkwpshdr.o chkwrfhdr.o close\_files.o comheader.o comheader\_lufrac.o comheader\_mos.o comheader\_soi.o ctmout.o ctmproc.o dealloc\_ctm.o dealloc\_met.o dealloc\_x.o detangle\_soil\_px.o e\_aerk.o dynflds.o getluse.o getmet.o getpblht.o getpsih.o getsdt.o graceful\_stop.o gridout.o gridproc.o init\_ctm.o init\_io.o init\_met.o init\_x.o julian.o layht.o ll2xy\_lam.o ll2xy\_lam\_sec.o ll2xy\_lam\_tan.o ll2xy\_merc.o ll2xy\_ps.o locate.o mapfac\_lam.o mapfac\_merc.o mapfac\_ps.o metgrid2ctm.o metvars2ctm.o outclog.o outcm3io.o outglog.o outgm3io.o outncf.o outncfbdy.o outncfglobal.o pblsup.o ptemp.o pvs.o qsat.o rdwrfem.o readnml.o resistcalc.o setgriddefs.o setup.o setup\_wrfem.o sfclayer.o statflds.o vertarys.o vertnhy\_wrf.o vstamp.o vtemp.o wind.o wrfemopts.o wrgdesc.o xy2ll\_lam.o xy2ll\_merc.o const\_mod.o const\_pbl\_mod.o coord\_mod.o ctmvars\_mod.o date\_time\_mod.o date\_pack\_mod.o files\_mod.o lucats\_mod.o mcipparm\_mod.o metinfo\_mod.o metvars\_mod.o netcdf\_io\_mod.o vgrd\_mod.o xvars\_mod.o -qopenmp -L/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort -lioapi -L/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/lib -lnetcdff -lnetcdf

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_nc4.o): In function `nf\_def\_var\_chunking\_’:

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf\_nc4.f90:1402: undefined reference to `nc\_def\_var\_chunking\_ints’

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_nc4.o): In function `nf\_inq\_var\_chunking\_’:

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf\_nc4.f90:1448: undefined reference to `nc\_inq\_var\_chunking\_ints’

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_nc4.o): In function `nf\_set\_chunk\_cache\_’:

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf\_nc4.f90:2018: undefined reference to `nc\_set\_chunk\_cache\_ints’

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_nc4.o): In function `nf\_get\_chunk\_cache\_’:

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf\_nc4.f90:2040: undefined reference to `nc\_get\_chunk\_cache\_ints’

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_nc4.o): In function `nf\_set\_var\_chunk\_cache\_’:

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf\_nc4.f90:2073: undefined reference to `nc\_set\_var\_chunk\_cache\_ints’

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/ioapi-3.2/Linux2\_x86\_64ifort/libnetcdff.a(nf\_nc4.o): In function `nf\_get\_var\_chunk\_cache\_’:

/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1/fortran/nf\_nc4.f90:2100: undefined reference to `nc\_get\_var\_chunk\_cache\_ints’

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

make[1]: Leaving directory `/home/ytang/jjoshi/cmaq\_test/CMAQv5.3/PREP/mcip/src’

make: \*\*\* [all] Error 2

#### Any hints, please?

Thanks

#### More info on I/O API

ident init3.o  
init3.o:  
Id: init3.F90 120 2019-06-21 14:18:20Z coats   
ident libioapi.a  
libioapi.a:  
Id:: m3utilio.f 107 2018-07-26 14:05:39Z coats   
Id:: modgctp.f90 108 2018-09-07 18:59:37Z coats   
Id: modwrfio.f90 4 2017-06-20 17:43:15Z coats   
Id: modmpasfio.f90 67 2017-11-22 21:07:51Z coats   
Id: modmpasfio.f90 67 2017-11-22 21:07:51Z coats   
Id:: modatts3.F90 96 2018-04-04 21:17:59Z coats   
Id: init3.F90 120 2019-06-21 14:18:20Z coats   
ident m3stat  
m3stat:  
Id:: m3stat.f 117 2019-06-15 14:56:29Z coats   
Id: init3.F90 120 2019-06-21 14:18:20Z coats   
Id:: m3utilio.f 107 2018-07-26 14:05:39Z coats   
Id:: modatts3.F90 96 2018-04-04 21:17:59Z coats

---

<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:** [September 20, 2019, 5:20pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/14 "2019-09-20T17:20:21Z")

</div>

As a test to see what netCDF has built: go to the "_libnetcdf.a"_ directory, and do commands that search _libnetcdf.a_ for the missing symbols, e.g.

`nm libnetcdf.a | grep nc_get_var_chunk_cache_ints`

If it’s in the library, this should generate a line like

`0000000000001170 T nc_get_var_chunk_cache_ints`

[This sounds like netCDF-4 stuff, which should have been excluded…]

Under your netCDF[-fortran] directories, find the commands _nc-config_ and _nf-config_, and run them.  
Then use what you find out about needed libraries to fix up your _Makefile_s. You may as well expect that to be somewhat messy ;-(

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 20, 2019, 5:26pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/15 "2019-09-20T17:26:35Z")

</div>

Thank you.  
That didn’t find the symbol.  
softwares/cmaq\_libsicc19.0/netcdfs\_icc19.0\_formcip/lib\> $ nm libnetcdf.a | grep nc\_get\_var\_chunk\_cache\_ints

didn’t give anything!

---

<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:** [September 20, 2019, 5:31pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/16 "2019-09-20T17:31:29Z")

</div>

That then suggests that your _libnetcdf.a_ and _libnetcdff.a_ builds are inconsistent.

What does the _nf-config_ say?

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 20, 2019, 5:32pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/17 "2019-09-20T17:32:30Z")

</div>

Thanks.

In the directory cmaq\_libsicc19.0/netcdf-fortran-4.5.1-icc19.0/bin (it has only nf-config)

> $ ./nf-config --all

This netCDF-Fortran 4.5.1 has been built with the following features:

–cc → icc  
–cflags → -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1-icc19.0/include -DNDEBUG -DpgiFortran -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-c-4.7.1-icc19.0/include

–fc → ifort  
–fflags → -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1-icc19.0/include  
–flibs → -L/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1-icc19.0/lib -lnetcdff -L/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-c-4.7.1-icc19.0/lib -lnetcdf -lnetcdf -lm  
–has-f90 →   
–has-f03 → yes

–has-nc2 → yes  
–has-nc4 → yes

–prefix → /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1-icc19.0  
–includedir-\> /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-fortran-4.5.1-icc19.0/include  
–version → netCDF-Fortran 4.5.1

And in the netcdf-c install directory  
softwares/cmaq\_libsicc19.0/netcdf-c-4.7.1-icc19.0/bin\> $ ./nc-config --all

This netCDF 4.7.1 has been built with the following features:

–cc → icc  
–cflags → -I/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-c-4.7.1-icc19.0/include -DNDEBUG -DpgiFortran  
–libs → -L/home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-c-4.7.1-icc19.0/lib -lnetcdf  
–static → -lm

–has-c++ → no  
–cxx →

–has-c++4 → no  
–cxx4 →

–has-fortran → no  
–has-dap → no  
–has-dap2 → no  
–has-dap4 → no  
–has-nc2 → yes  
–has-nc4 → no  
–has-hdf5 → no  
–has-hdf4 → no  
–has-logging → no  
–has-pnetcdf → no  
–has-szlib →   
–has-cdf5 → yes  
–has-parallel4 → no  
–has-parallel → no

–prefix → /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-c-4.7.1-icc19.0  
–includedir → /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-c-4.7.1-icc19.0/include  
–libdir → /home/ytang/jjoshi/softwares/cmaq\_libsicc19.0/netcdf-c-4.7.1-icc19.0/lib  
–version → netCDF 4.7.1

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 20, 2019, 5:53pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/18 "2019-09-20T17:53:16Z")

</div>

Just to give more information, in case if I did something wrong in the installation of netcdfs, here are the environment variables set for netcdf installation.  
export CPPFLAGS="-DNDEBUG -DpgiFortran"

export CFLAGS ="-g -O"

export FFLAGS="-O2 -mp -recursive"

export CC=icc

export CXX=icpc

export FC=ifort

export F77=ifort

export F90=ifort

For netcdf-c  
./configure --prefix=$NCDIR --disable-netcdf-4 --disable-dap

For netcdf-fortran  
export LD\_LIBRARY\_PATH={NCDIR}/lib:{LD\_LIBRARY\_PATH}

export NFDIR={DIR}/netcdf{vers\_nf}-icc19.0  
CPPFLAGS="CPPFLAGS -I{NCDIR}/include" \

LDFLAGS="-L${NCDIR}/lib" \

./configure --prefix=${NFDIR}

---

<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:** [September 20, 2019, 5:53pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/19 "2019-09-20T17:53:46Z")

</div>

Note the  
`–has-nc4 -> yes`  
vs  
`–has-nc4 -> no`

That is the problem.

---

<div class="post-metadata">

**Author:** ![CMAQ\_user](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@CMAQ\_user](https://forum.cmascenter.org/u/CMAQ_user)\
**Post date:** [September 20, 2019, 5:55pm UTC](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946/20 "2019-09-20T17:55:39Z")

</div>

oh, I see. But don’t know how to fix that! I have been trying on it for months!

[Next page](https://forum.cmascenter.org/t/installing-disable-netcdf-4-disable-dap-never-works-and-instructions-in-cmaq-documentation-regarding-this-seem-misleading/946.md?page=2)
