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

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) 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

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 (127.4 KB) when I followed the steps in the tutorial.

Here is a copy of my make.install.log.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.

config.log.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

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

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)

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!

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?

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?

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.

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 ofnf_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 ofnf_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 ofnf_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 ofnf_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

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

1 Like

Thanks! No errors encountered with that.

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.

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

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 Makefiles. You may as well expect that to be somewhat messy ;-(

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!

That then suggests that your libnetcdf.a and libnetcdff.a builds are inconsistent.

What does the nf-config say?

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

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}

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

That is the problem.

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