MCIP Compilation

Dear all

I am trying to compile MCIP but I got the following error:

mpiifort -free -I/media/maria/Backup/CMAQ_Project/PREP/mcip/scripts/lib/x86_64/intel/netcdf/include -I/media/maria/Backup/CMAQ_Project/PREP/mcip/scripts/lib/x86_64/intel/ioapi/include -c mcipparm_mod.f90
mcipparm_mod.f90(126): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [M3UTILIO]
USE m3utilio, ONLY: mxdesc3
------^
mcipparm_mod.f90(243): error #6406: Conflicting attributes or multiple declaration of name. [MXDESC3]
CHARACTER(LEN=80) :: fdesc ( mxdesc3 )
----------------------------------------------------^
mcipparm_mod.f90(243): error #6223: A specification expression is invalid. [MXDESC3]
CHARACTER(LEN=80) :: fdesc ( mxdesc3 )
----------------------------------------------------^
mcipparm_mod.f90(126): error #6580: Name in only-list does not exist or is not accessible. [MXDESC3]
USE m3utilio, ONLY: mxdesc3
----------------------^
compilation aborted for mcipparm_mod.f90 (code 1)
Makefile:136: fallo en las instrucciones para el objetivo ‘mcipparm_mod.o’
make[1]: *** [mcipparm_mod.o] Error 1
make[1]: se sale del directorio ‘/media/maria/Backup/CMAQ_Project/PREP/mcip/src’
Makefile:127: fallo en las instrucciones para el objetivo ‘all’
make: *** [all] Error 2

Searching on internet, they suggest to remove the corresponding INCLUDE -statements, function-declarations, and EXTERNAL statements. I remove on the Makefile the next instruction -I$(IOAPI_DIR)/include, however the error persist.

Do you have any suggestion?
Appreciate your help.

You need to tell the compiler where to find m3utilio.mod.
You need to have compiled IOAPI first. Then make sure there is a flag -I/path/to/the/directory in your Makefile. Note that you do not point specifically to the file m3utilio.mod, only to the directory containing it.

Thank you. I fixed the error.

Hi Maria,

I am getting the same error. Could you please demonstrate me, how you fixed the error? Any help will be appreciated.

Thanks,
Sadia

Hi Sadia

I am not totally sure what I did (bad memory), but I remember that: first I installed IOAPI with the compiler ifort, the same that I used to install CMAQ. Then, in the Makefile that is located in the next path: $CMAQ_HOME/PREP/mcip/src I changed in the variable FFLAGS -fopenmp for -qopenmp. This is my script:

 FC = ${myFC}

FFLAGS = $(myFRFLAGS) -I$(NETCDF_DIR)/include -I$(IOAPI_DIR)/include_files -qopenmp

  LIBS = -L$(IOAPI_DIR)/lib $(ioapi_lib) \

        -L$(NETCDF_DIR)/lib $(netcdf_lib) $(extra_lib)

Hope, it can be useful for you.

Maria

Hi Maria,

Thank you so much for your quick response. It helped. But still, I am getting a different error. Thanks again.

Sadia

@Sadia – What is your new error?

Thanks for your concern. I am actually came out from that Makefile. But now I am stuck in the CCTM compilation. I getting the following error:

make list
file /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/CCTM/src/util/util/subhfile.F added to make list
file /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/CCTM/src/util/util/UTILIO_DEFN.F added to make list
ERROR Cannot Open source file:alloc_data_mod.f
endif
else if ( 0 ) then
endif
mv Makefile Makefile.intel2017.1.132
mv: cannot stat ‘Makefile’: No such file or directory
if ( -e Makefile.intel2017.1.132 && -e Makefile ) rm Makefile
ln -s Makefile.intel2017.1.132 Makefile
if ( 0 != 0 ) then
if ( -e /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/CCTM/scripts/BLD_CCTM_v521_intel2017.1.132/CCTM_v521.cfg ) then
mv CCTM_v521.cfg.bld /usr/local/usrapps/fgarcia4/CMAQ5.2.1-Sadia/CCTM/scripts/BLD_CCTM_v521_intel2017.1.132/CCTM_v521.cfg
exit

It would be great if you could help me out.
Thanks,
Sadia

@Sadia – If you have not already done so, please post this issue in the CMAQ topic area. It will be addressed there.

Thanks for your advice.

Hi
I have a problem when I compile make file. my log file is:

make[1]: Entering directory ‘/home/ensiyeh/WRF-CMAQ/CMAQ_REPO/PREP/mcip/src’
make[1]: ‘const_mod.o’ is up to date.
make[1]: ‘const_pbl_mod.o’ is up to date.
make[1]: ‘coord_mod.o’ is up to date.
make[1]: ‘date_time_mod.o’ is up to date.
make[1]: ‘date_pack_mod.o’ is up to date.
make[1]: ‘files_mod.o’ is up to date.
make[1]: ‘groutcom_mod.o’ is up to date.
make[1]: ‘luvars_mod.o’ is up to date.
make[1]: ‘mcipparm_mod.o’ is up to date.
make[1]: ‘mcoutcom_mod.o’ is up to date.
make[1]: ‘mdoutcom_mod.o’ is up to date.
make[1]: ‘metinfo_mod.o’ is up to date.
make[1]: ‘metvars_mod.o’ is up to date.
make[1]: ‘vgrd_mod.o’ is up to date.
make[1]: ‘wrf_netcdf_mod.o’ is up to date.
make[1]: ‘xvars_mod.o’ is up to date.
make[1]: ‘sat2mcip_mod.o’ is up to date.
make[1]: Leaving directory ‘/home/ensiyeh/WRF-CMAQ/CMAQ_REPO/PREP/mcip/src’
make[1]: Entering directory ‘/home/ensiyeh/WRF-CMAQ/CMAQ_REPO/PREP/mcip/src’
ifort -o mcip.exe “-free” -I/home/ensiyeh/WRF-CMAQ/CMAQ_REPO/lib/x86_64/intel/netcdf/include -I/home/ensiyeh/WRF-CMAQ/CMAQ_REPO/lib/x86_64/intel/ioapi/include_files -qopenmp mcip.o alloc_ctm.o alloc_met.o alloc_x.o bcldprc_ak.o blddesc.o chkwpshdr.o chkwrfhdr.o close_files.o collapx.o comheader.o cori.o dealloc_ctm.o dealloc_met.o dealloc_x.o detangle_soil_px.o e_aerk.o dynflds.o getgist.o getluse.o getmet.o getpblht.o getsdt.o getversion.o graceful_stop.o gridout.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 metcro.o metdot.o metgrid2ctm.o metvars2ctm.o mm5v3opts.o pblsup.o ptemp.o pvs.o qsat.o rdmm5v3.o rdwrfem.o readnml.o readter.o refstate.o resistcalc.o setgriddefs.o setup.o setup_mm5v3.o setup_wrfem.o sfclayer.o statflds.o vertarys.o vertnhy.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 date_time_mod.o date_pack_mod.o files_mod.o groutcom_mod.o luvars_mod.o mcipparm_mod.o mcoutcom_mod.o mdoutcom_mod.o metinfo_mod.o metvars_mod.o vgrd_mod.o wrf_netcdf_mod.o xvars_mod.o sat2mcip_mod.o -L/home/ensiyeh/WRF-CMAQ/CMAQ_REPO/lib/x86_64/intel/ioapi/lib -L/home/ensiyeh/WRF-CMAQ/CMAQ_REPO/lib/x86_64/intel/netcdf/lib
chkwpshdr.o: In function chkwpshdr_': chkwpshdr.f90:(.text+0x44): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwpshdr.f90:(.text+0x22d): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' chkwpshdr.f90:(.text+0x416): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwpshdr.f90:(.text+0x611): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwpshdr.f90:(.text+0x80c): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwpshdr.f90:(.text+0x9f5): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwpshdr.f90:(.text+0xbf0): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwpshdr.f90:(.text+0xdeb): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwpshdr.f90:(.text+0xfe6): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwpshdr.f90:(.text+0x11e1): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwpshdr.o:chkwpshdr.f90:(.text+0x13dc): more undefined references tonetcdf_mp_nf90_get_att_one_fourbytereal_’ follow
chkwpshdr.o: In function chkwpshdr_': chkwpshdr.f90:(.text+0x15dd): undefined reference tonetcdf_mp_nf90_get_att_text_’
chkwpshdr.f90:(.text+0x1856): undefined reference to netcdf_mp_nf90_get_att_text_' chkwpshdr.f90:(.text+0x18fd): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwpshdr.f90:(.text+0x1b76): undefined reference to netcdf_mp_nf90_strerror_' chkwpshdr.f90:(.text+0x1c41): undefined reference tonetcdf_mp_nf90_strerror_’
chkwpshdr.f90:(.text+0x1d4e): undefined reference to netcdf_mp_nf90_strerror_' chkwpshdr.f90:(.text+0x1e47): undefined reference tonetcdf_mp_nf90_strerror_’
chkwpshdr.f90:(.text+0x1f4c): undefined reference to netcdf_mp_nf90_strerror_' chkwpshdr.o:chkwpshdr.f90:(.text+0x2051): more undefined references tonetcdf_mp_nf90_strerror_’ follow
chkwrfhdr.o: In function chkwrfhdr_': chkwrfhdr.f90:(.text+0x42): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.f90:(.text+0x22b): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' chkwrfhdr.f90:(.text+0x414): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.f90:(.text+0x607): undefined reference to netcdf_mp_nf90_get_att_text_' chkwrfhdr.f90:(.text+0x96d): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwrfhdr.f90:(.text+0xb68): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0xd63): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.f90:(.text+0xf4c): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0x1147): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwrfhdr.f90:(.text+0x1342): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0x153d): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwrfhdr.f90:(.text+0x1738): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.o:chkwrfhdr.f90:(.text+0x1933): more undefined references tonetcdf_mp_nf90_get_att_one_fourbytereal_’ follow
chkwrfhdr.o: In function chkwrfhdr_': chkwrfhdr.f90:(.text+0x1b34): undefined reference tonetcdf_mp_nf90_get_att_text_’
chkwrfhdr.f90:(.text+0x1d95): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' chkwrfhdr.f90:(.text+0x1f78): undefined reference tonetcdf_mp_nf90_inq_dimid_’
chkwrfhdr.f90:(.text+0x1fa4): undefined reference to netcdf_mp_nf90_inquire_dimension_' chkwrfhdr.f90:(.text+0x218d): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.f90:(.text+0x2376): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' chkwrfhdr.f90:(.text+0x255f): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.f90:(.text+0x2748): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' chkwrfhdr.f90:(.text+0x2931): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.o:chkwrfhdr.f90:(.text+0x2b1a): more undefined references to netcdf_mp_nf90_get_att_one_fourbyteint_' follow chkwrfhdr.o: In functionchkwrfhdr_’:
chkwrfhdr.f90:(.text+0x311d): undefined reference to netcdf_mp_nf90_get_att_text_' chkwrfhdr.f90:(.text+0x333f): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.f90:(.text+0x356c): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0x3802): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwrfhdr.f90:(.text+0x3a98): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0x3ce0): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.f90:(.text+0x3f0d): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0x4155): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwrfhdr.f90:(.text+0x439d): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0x45e5): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
chkwrfhdr.f90:(.text+0x4812): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0x4a5a): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
chkwrfhdr.f90:(.text+0x4ca2): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' chkwrfhdr.f90:(.text+0x4f8b): undefined reference tonetcdf_mp_nf90_strerror_’
chkwrfhdr.f90:(.text+0x50a1): undefined reference to netcdf_mp_nf90_strerror_' chkwrfhdr.f90:(.text+0x51b2): undefined reference tonetcdf_mp_nf90_strerror_’
chkwrfhdr.f90:(.text+0x52c8): undefined reference to netcdf_mp_nf90_strerror_' chkwrfhdr.f90:(.text+0x53de): undefined reference tonetcdf_mp_nf90_strerror_’
chkwrfhdr.o:chkwrfhdr.f90:(.text+0x54f4): more undefined references to netcdf_mp_nf90_strerror_' follow close_files.o: In functionclose_files_’:
close_files.f90:(.text+0x5): undefined reference to shut3_' graceful_stop.o: In functiongraceful_stop_’:
graceful_stop.f90:(.text+0x88): undefined reference to m3exit_' gridout.o: In functiongridout_’:
gridout.f90:(.text+0x240): undefined reference to open3_' gridout.f90:(.text+0xab6): undefined reference toopen3_’
gridout.f90:(.text+0xbe7): undefined reference to open3_' gridout.f90:(.text+0xe9b): undefined reference toopen3_’
gridout.f90:(.text+0x486b): undefined reference to desc3_' gridout.f90:(.text+0x48ab): undefined reference towrite3_’
gridout.f90:(.text+0x497c): undefined reference to desc3_' gridout.f90:(.text+0x4a0b): undefined reference towrite3_’
gridout.f90:(.text+0x4b07): undefined reference to desc3_' gridout.f90:(.text+0x4b7e): undefined reference towrite3_’
gridout.f90:(.text+0x4c92): undefined reference to desc3_' gridout.f90:(.text+0x4cd2): undefined reference towrite3_’
gridout.f90:(.text+0x7e79): undefined reference to m3err_' gridout.f90:(.text+0x7eeb): undefined reference towrite3_’
gridout.f90:(.text+0x8015): undefined reference to write3_' gridout.f90:(.text+0x8159): undefined reference towrite3_’
gridout.f90:(.text+0x82cd): undefined reference to m3err_' gridout.f90:(.text+0x8357): undefined reference towrite3_’
gridout.f90:(.text+0x8499): undefined reference to write3_' gridout.f90:(.text+0x85f5): undefined reference towrite3_’
gridout.f90:(.text+0x8763): undefined reference to m3err_' gridout.f90:(.text+0x8804): undefined reference tom3err_’
init_io.o: In function init_io_': init_io.f90:(.text+0x2): undefined reference toinit3_’
metcro.o: In function metcro_': metcro.f90:(.text+0x1a4a8): undefined reference todesc3_’
metcro.f90:(.text+0x1a551): undefined reference to write3_' metcro.f90:(.text+0x1a6a3): undefined reference towrite3_’
metcro.f90:(.text+0x1a7db): undefined reference to write3_' metcro.f90:(.text+0x1a906): undefined reference towrite3_’
metcro.f90:(.text+0x1aa31): undefined reference to write3_' metcro.o:metcro.f90:(.text+0x1ab5c): more undefined references towrite3_’ follow
metcro.o: In function metcro_': metcro.f90:(.text+0x1ad8f): undefined reference todesc3_’
metcro.f90:(.text+0x1b5ea): undefined reference to write3_' metcro.f90:(.text+0x1b819): undefined reference towrite3_’
metcro.f90:(.text+0x1b976): undefined reference to write3_' metcro.f90:(.text+0x1bab3): undefined reference towrite3_’
metcro.f90:(.text+0x1bbf9): undefined reference to write3_' metcro.o:metcro.f90:(.text+0x1bd45): more undefined references towrite3_’ follow
metcro.o: In function metcro_': metcro.f90:(.text+0x1be37): undefined reference todesc3_’
metcro.f90:(.text+0x1c4c8): undefined reference to write3_' metcro.f90:(.text+0x1c6c2): undefined reference towrite3_’
metcro.f90:(.text+0x1c81f): undefined reference to write3_' metcro.f90:(.text+0x1c95c): undefined reference towrite3_’
metcro.f90:(.text+0x1caa2): undefined reference to write3_' metcro.o:metcro.f90:(.text+0x1cbee): more undefined references towrite3_’ follow
metcro.o: In function metcro_': metcro.f90:(.text+0x233b0): undefined reference tom3err_’
metcro.f90:(.text+0x234bd): undefined reference to m3err_' metcro.f90:(.text+0x2351d): undefined reference towrite3_’
metcro.f90:(.text+0x2369d): undefined reference to m3err_' metcro.f90:(.text+0x271f9): undefined reference toopen3_’
metcro.f90:(.text+0x27c60): undefined reference to open3_' metcro.f90:(.text+0x27d9c): undefined reference toopen3_’
metdot.o: In function metdot_': metdot.f90:(.text+0x3395): undefined reference todesc3_’
metdot.f90:(.text+0x343c): undefined reference to write3_' metdot.f90:(.text+0x3542): undefined reference towrite3_’
metdot.f90:(.text+0x363c): undefined reference to write3_' metdot.f90:(.text+0x4c91): undefined reference tom3err_’
metdot.f90:(.text+0x53a5): undefined reference to open3_' rdwrfem.o: In functionrdwrfem_’:
rdwrfem.f90:(.text+0x1050): undefined reference to netcdf_mp_nf90_open_' rdwrfem.f90:(.text+0x117a): undefined reference tonetcdf_mp_nf90_open_’
rdwrfem.f90:(.text+0x9192): undefined reference to netcdf_mp_nf90_inq_varid_' rdwrfem.f90:(.text+0x9947): undefined reference tonetcdf_mp_nf90_inq_varid_’
rdwrfem.f90:(.text+0xa0f7): undefined reference to netcdf_mp_nf90_inq_varid_' rdwrfem.f90:(.text+0x17957): undefined reference tonetcdf_mp_nf90_close_’
rdwrfem.f90:(.text+0x19c71): undefined reference to netcdf_mp_nf90_open_' rdwrfem.f90:(.text+0x1d481): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.f90:(.text+0x1d5f5): undefined reference to netcdf_mp_nf90_strerror_' rdwrfem.f90:(.text+0x1d79d): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.f90:(.text+0x1d8ec): undefined reference to netcdf_mp_nf90_strerror_' rdwrfem.f90:(.text+0x1de6a): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.o:rdwrfem.f90:(.text+0x1df65): more undefined references to netcdf_mp_nf90_strerror_' follow rdwrfem.o: In functionrdwrfem_’:
rdwrfem.f90:(.text+0x1f773): undefined reference to netcdf_mp_nf90_close_' rdwrfem.f90:(.text+0x1f8f7): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.f90:(.text+0x1fa99): undefined reference to netcdf_mp_nf90_strerror_' rdwrfem.f90:(.text+0x1fbad): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.f90:(.text+0x2204f): undefined reference to netcdf_mp_nf90_strerror_' rdwrfem.f90:(.text+0x221a5): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.o:rdwrfem.f90:(.text+0x222cc): more undefined references to netcdf_mp_nf90_strerror_' follow rdwrfem.o: In functionrdwrfem_’:
rdwrfem.f90:(.text+0x2e117): undefined reference to netcdf_mp_nf90_close_' rdwrfem.f90:(.text+0x2e13c): undefined reference tonetcdf_mp_nf90_open_’
rdwrfem.f90:(.text+0x2e173): undefined reference to netcdf_mp_nf90_inq_varid_' rdwrfem.f90:(.text+0x2e1f0): undefined reference tonetcdf_mp_nf90_inquire_variable_’
rdwrfem.f90:(.text+0x2e219): undefined reference to netcdf_mp_nf90_inquire_dimension_' rdwrfem.f90:(.text+0x2e23f): undefined reference tonetcdf_mp_nf90_inquire_dimension_’
rdwrfem.f90:(.text+0x2e3fa): undefined reference to netcdf_mp_nf90_get_var_1d_text_' rdwrfem.f90:(.text+0x2e4c3): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.f90:(.text+0x2e5c2): undefined reference to netcdf_mp_nf90_strerror_' rdwrfem.f90:(.text+0x2e6c5): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.f90:(.text+0x2e7c8): undefined reference to netcdf_mp_nf90_strerror_' rdwrfem.f90:(.text+0x2e8c7): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.o:rdwrfem.f90:(.text+0x2fb63): more undefined references to netcdf_mp_nf90_strerror_' follow rdwrfem.o: In functionrdwrfem_’:
rdwrfem.f90:(.text+0x2ff98): undefined reference to netcdf_mp_nf90_close_' rdwrfem.f90:(.text+0x2ffbd): undefined reference tonetcdf_mp_nf90_open_’
rdwrfem.f90:(.text+0x2fff4): undefined reference to netcdf_mp_nf90_inq_varid_' rdwrfem.f90:(.text+0x3006b): undefined reference tonetcdf_mp_nf90_inquire_variable_’
rdwrfem.f90:(.text+0x30094): undefined reference to netcdf_mp_nf90_inquire_dimension_' rdwrfem.f90:(.text+0x300ba): undefined reference tonetcdf_mp_nf90_inquire_dimension_’
rdwrfem.f90:(.text+0x30299): undefined reference to netcdf_mp_nf90_get_var_1d_text_' rdwrfem.f90:(.text+0x30358): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.f90:(.text+0x30457): undefined reference to netcdf_mp_nf90_strerror_' rdwrfem.f90:(.text+0x3055a): undefined reference tonetcdf_mp_nf90_strerror_’
rdwrfem.f90:(.text+0x3065d): undefined reference to netcdf_mp_nf90_strerror_' rdwrfem.f90:(.text+0x3075c): undefined reference tonetcdf_mp_nf90_strerror_’
setup.o: In function setup_': setup.f90:(.text+0x27): undefined reference tonetcdf_mp_nf90_open_’
setup.f90:(.text+0x62): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup.f90:(.text+0x9c): undefined reference tonetcdf_mp_nf90_get_att_text_’
setup.f90:(.text+0x1c1): undefined reference to netcdf_mp_nf90_get_att_text_' setup.f90:(.text+0x36d): undefined reference tonetcdf_mp_nf90_close_’
setup.f90:(.text+0x66d): undefined reference to netcdf_mp_nf90_strerror_' setup.f90:(.text+0x78e): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.o: In function setup_wrfem_': setup_wrfem.f90:(.text+0x1b1): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0x1dd): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup_wrfem.f90:(.text+0x20c): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0x3ab): undefined reference to netcdf_mp_nf90_get_att_text_' setup_wrfem.f90:(.text+0x3da): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x409): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x554): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0x580): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x5ac): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x5d8): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x610): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x648): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.o:setup_wrfem.f90:(.text+0x674): more undefined references tonetcdf_mp_nf90_get_att_one_fourbytereal_’ follow
setup_wrfem.o: In function setup_wrfem_': setup_wrfem.f90:(.text+0x9dc): undefined reference tonetcdf_mp_nf90_get_att_text_’
setup_wrfem.f90:(.text+0xa08): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup_wrfem.f90:(.text+0xa31): undefined reference tonetcdf_mp_nf90_inq_dimid_’
setup_wrfem.f90:(.text+0xa5a): undefined reference to netcdf_mp_nf90_inquire_dimension_' setup_wrfem.f90:(.text+0xaad): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0xad9): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup_wrfem.f90:(.text+0xb05): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0xb31): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup_wrfem.f90:(.text+0xb5f): undefined reference tonetcdf_mp_nf90_inq_dimid_’
setup_wrfem.f90:(.text+0xe27): undefined reference to netcdf_mp_nf90_inquire_dimension_' setup_wrfem.f90:(.text+0xe53): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0xe7f): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup_wrfem.f90:(.text+0xeab): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0xed7): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup_wrfem.f90:(.text+0xf03): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.o:setup_wrfem.f90:(.text+0xf2f): more undefined references to netcdf_mp_nf90_get_att_one_fourbyteint_' follow setup_wrfem.o: In functionsetup_wrfem_’:
setup_wrfem.f90:(.text+0x10d7): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x1133): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x12f0): undefined reference to netcdf_mp_nf90_get_att_text_' setup_wrfem.f90:(.text+0x1368): undefined reference tonetcdf_mp_nf90_get_att_text_’
setup_wrfem.f90:(.text+0x13c9): undefined reference to netcdf_mp_nf90_inq_varid_' setup_wrfem.f90:(.text+0x1445): undefined reference tonetcdf_mp_nf90_inquire_variable_’
setup_wrfem.f90:(.text+0x1475): undefined reference to netcdf_mp_nf90_inquire_dimension_' setup_wrfem.f90:(.text+0x14a1): undefined reference tonetcdf_mp_nf90_inquire_dimension_’
setup_wrfem.f90:(.text+0x1694): undefined reference to netcdf_mp_nf90_get_var_1d_text_' setup_wrfem.f90:(.text+0x1862): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0x18d9): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x1959): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x19d9): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x1a59): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x1b3a): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup_wrfem.f90:(.text+0x1b8a): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0x1c01): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x1c81): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x1d01): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x1d7e): undefined reference tonetcdf_mp_nf90_inq_varid_’
setup_wrfem.f90:(.text+0x1ee8): undefined reference to netcdf_mp_nf90_open_' setup_wrfem.f90:(.text+0x1ff1): undefined reference tonetcdf_mp_nf90_inq_varid_’
setup_wrfem.f90:(.text+0x201f): undefined reference to netcdf_mp_nf90_close_' setup_wrfem.f90:(.text+0x2107): undefined reference tonetcdf_mp_nf90_inq_varid_’
setup_wrfem.f90:(.text+0x2142): undefined reference to netcdf_mp_nf90_inq_varid_' setup_wrfem.f90:(.text+0x2186): undefined reference tonetcdf_mp_nf90_inq_varid_’
setup_wrfem.f90:(.text+0x21a5): undefined reference to netcdf_mp_nf90_inq_varid_' setup_wrfem.f90:(.text+0x21e4): undefined reference tonetcdf_mp_nf90_inq_varid_’
setup_wrfem.o:setup_wrfem.f90:(.text+0x2224): more undefined references to netcdf_mp_nf90_inq_varid_' follow setup_wrfem.o: In functionsetup_wrfem_’:
setup_wrfem.f90:(.text+0x265b): undefined reference to netcdf_mp_nf90_get_att_one_fourbyteint_' setup_wrfem.f90:(.text+0x26d1): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0x2880): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.f90:(.text+0x298c): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.f90:(.text+0x2a98): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.f90:(.text+0x2ba4): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.f90:(.text+0x2d5e): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.o:setup_wrfem.f90:(.text+0x3188): more undefined references tonetcdf_mp_nf90_strerror_’ follow
setup_wrfem.o: In function setup_wrfem_': setup_wrfem.f90:(.text+0x3ac8): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x3af4): undefined reference to netcdf_mp_nf90_get_att_one_fourbytereal_' setup_wrfem.f90:(.text+0x3b20): undefined reference tonetcdf_mp_nf90_get_att_one_fourbytereal_’
setup_wrfem.f90:(.text+0x3be1): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.f90:(.text+0x3ced): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.f90:(.text+0x3df9): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.f90:(.text+0x3f05): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.f90:(.text+0x4011): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.o:setup_wrfem.f90:(.text+0x411d): more undefined references tonetcdf_mp_nf90_strerror_’ follow
setup_wrfem.o: In function setup_wrfem_': setup_wrfem.f90:(.text+0x4741): undefined reference tonetcdf_mp_nf90_open_’
setup_wrfem.f90:(.text+0x476f): undefined reference to netcdf_mp_nf90_inq_varid_' setup_wrfem.f90:(.text+0x47f0): undefined reference tonetcdf_mp_nf90_inquire_variable_’
setup_wrfem.f90:(.text+0x4825): undefined reference to netcdf_mp_nf90_inquire_dimension_' setup_wrfem.f90:(.text+0x4856): undefined reference tonetcdf_mp_nf90_inquire_dimension_’
setup_wrfem.f90:(.text+0x4a82): undefined reference to netcdf_mp_nf90_get_var_1d_text_' setup_wrfem.f90:(.text+0x4ba7): undefined reference tonetcdf_mp_nf90_close_’
setup_wrfem.f90:(.text+0x4d2c): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.f90:(.text+0x4e3d): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.f90:(.text+0x4f53): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.f90:(.text+0x5069): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.f90:(.text+0x517f): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.o:setup_wrfem.f90:(.text+0x5295): more undefined references tonetcdf_mp_nf90_strerror_’ follow
setup_wrfem.o: In function setup_wrfem_': setup_wrfem.f90:(.text+0x5a65): undefined reference tonetcdf_mp_nf90_get_att_one_fourbyteint_’
setup_wrfem.f90:(.text+0x5b22): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.f90:(.text+0x5c27): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.f90:(.text+0x5d33): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.f90:(.text+0x5e3f): undefined reference tonetcdf_mp_nf90_strerror_’
setup_wrfem.f90:(.text+0x5f4b): undefined reference to netcdf_mp_nf90_strerror_' setup_wrfem.o:setup_wrfem.f90:(.text+0x6057): more undefined references tonetcdf_mp_nf90_strerror_’ follow
wrf_netcdf_mod.o: In function wrf_netcdf_mp_get_var_3d_real_cdf_': wrf_netcdf_mod.f90:(.text+0x46): undefined reference tonetcdf_mp_nf90_inq_varid_’
wrf_netcdf_mod.f90:(.text+0x120): undefined reference to netcdf_mp_nf90_get_var_3d_fourbytereal_' wrf_netcdf_mod.o: In functionwrf_netcdf_mp_get_var_2d_real_cdf_’:
wrf_netcdf_mod.f90:(.text+0x171): undefined reference to netcdf_mp_nf90_inq_varid_' wrf_netcdf_mod.f90:(.text+0x23d): undefined reference tonetcdf_mp_nf90_get_var_2d_fourbytereal_’
wrf_netcdf_mod.o: In function wrf_netcdf_mp_get_var_2d_int_cdf_': wrf_netcdf_mod.f90:(.text+0x291): undefined reference tonetcdf_mp_nf90_inq_varid_’
wrf_netcdf_mod.f90:(.text+0x35d): undefined reference to netcdf_mp_nf90_get_var_2d_fourbyteint_' wrf_netcdf_mod.o: In functionwrf_netcdf_mp_get_var_1d_real_cdf_’:
wrf_netcdf_mod.f90:(.text+0x3ac): undefined reference to netcdf_mp_nf90_inq_varid_' wrf_netcdf_mod.f90:(.text+0x468): undefined reference tonetcdf_mp_nf90_get_var_1d_fourbytereal_’
wrf_netcdf_mod.o: In function wrf_netcdf_mp_get_var_real_cdf_': wrf_netcdf_mod.f90:(.text+0x4ab): undefined reference tonetcdf_mp_nf90_inq_varid_’
wrf_netcdf_mod.f90:(.text+0x4c3): undefined reference to netcdf_mp_nf90_get_var_fourbytereal_' sat2mcip_mod.o: In functionsat2mcip_mp_readsat_’:
sat2mcip_mod.f90:(.text+0xa7d): undefined reference to netcdf_mp_nf90_get_var_2d_fourbytereal_' sat2mcip_mod.f90:(.text+0xbb1): undefined reference tonetcdf_mp_nf90_get_var_2d_fourbytereal_’
sat2mcip_mod.f90:(.text+0xce5): undefined reference to netcdf_mp_nf90_get_var_2d_fourbytereal_' sat2mcip_mod.f90:(.text+0xe19): undefined reference tonetcdf_mp_nf90_get_var_2d_fourbytereal_’
sat2mcip_mod.f90:(.text+0xf4d): undefined reference to netcdf_mp_nf90_get_var_2d_fourbytereal_' sat2mcip_mod.o:sat2mcip_mod.f90:(.text+0x1081): more undefined references tonetcdf_mp_nf90_get_var_2d_fourbytereal_’ follow
sat2mcip_mod.o: In function sat2mcip_mp_init_sat_': sat2mcip_mod.f90:(.text+0x77b9): undefined reference tonetcdf_mp_nf90_close_’
sat2mcip_mod.f90:(.text+0x7827): undefined reference to upcase_' sat2mcip_mod.f90:(.text+0x7967): undefined reference tonetcdf_mp_nf90_open_’
sat2mcip_mod.f90:(.text+0x79a2): undefined reference to netcdf_mp_nf90_inq_varid_' sat2mcip_mod.f90:(.text+0x7a18): undefined reference tonetcdf_mp_nf90_inquire_variable_’
sat2mcip_mod.f90:(.text+0x7a4e): undefined reference to netcdf_mp_nf90_inq_varid_' sat2mcip_mod.f90:(.text+0x7abc): undefined reference tonetcdf_mp_nf90_inquire_variable_’
sat2mcip_mod.f90:(.text+0x7b18): undefined reference to netcdf_mp_nf90_inquire_dimension_' sat2mcip_mod.f90:(.text+0x7c5c): undefined reference tonetcdf_mp_nf90_inquire_dimension_’
sat2mcip_mod.f90:(.text+0x7da0): undefined reference to netcdf_mp_nf90_inquire_dimension_' sat2mcip_mod.f90:(.text+0x7edf): undefined reference tonetcdf_mp_nf90_inquire_dimension_’
sat2mcip_mod.f90:(.text+0x8a61): undefined reference to netcdf_mp_nf90_inq_varid_' sat2mcip_mod.f90:(.text+0x8a7f): undefined reference tonetcdf_mp_nf90_inq_varid_’
sat2mcip_mod.f90:(.text+0x8a9d): undefined reference to netcdf_mp_nf90_inq_varid_' sat2mcip_mod.f90:(.text+0x8abb): undefined reference tonetcdf_mp_nf90_inq_varid_’
sat2mcip_mod.f90:(.text+0x8ad9): undefined reference to netcdf_mp_nf90_inq_varid_' sat2mcip_mod.o:sat2mcip_mod.f90:(.text+0x8af7): more undefined references tonetcdf_mp_nf90_inq_varid_’ follow
sat2mcip_mod.o: In function sat2mcip_mp_init_sat_': sat2mcip_mod.f90:(.text+0x8d17): undefined reference tonetcdf_mp_nf90_get_var_1d_fourbytereal_’
sat2mcip_mod.f90:(.text+0x8e4d): undefined reference to netcdf_mp_nf90_get_var_1d_text_' sat2mcip_mod.f90:(.text+0x8f7a): undefined reference tonetcdf_mp_nf90_get_var_1d_fourbytereal_’
sat2mcip_mod.f90:(.text+0x90ae): undefined reference to netcdf_mp_nf90_get_var_1d_fourbytereal_' sat2mcip_mod.f90:(.text+0x91e2): undefined reference tonetcdf_mp_nf90_get_var_2d_fourbytereal_’
sat2mcip_mod.f90:(.text+0x9316): undefined reference to `netcdf_mp_nf90_get_var_2d_fourbytereal_’
Makefile:134: recipe for target ‘mcip.exe’ failed
make[1]: *** [mcip.exe] Error 1
make[1]: Leaving directory ‘/home/ensiyeh/WRF-CMAQ/CMAQ_REPO/PREP/mcip/src’
Makefile:130: recipe for target ‘all’ failed
make: *** [all] Error 2

Could you help me please?

Hello
I changed Makefile of mcip and add -lnetcdff -lnetcdff and -lioapi and some flags and directory and it was installed.
My changes are:

IOAPI_DIR = /home/ensiyeh/WRF-CMAQ/CMAQ_REPO/lib/x86_64/intel/ioapi
NETCDF_DIR = /home/ensiyeh/WRF-CMAQ/CMAQ_REPO/lib/x86_64/intel/netcdf
myFC =ifort
myFRFLAGS ="-free"
FC = {myFC} FFLAGS = (myFRFLAGS) -I$(NETCDF_DIR)/include -I$(IOAPI_DIR)/include_files -qopenmp
LIBS = -L$(IOAPI_DIR)/lib -lioapi (ioapi_lib) \ -L(NETCDF_DIR)/lib -lnetcdff -lnetcdf $(extra_lib)