ERROR in running icon

Hi all,
I am a graduate student. Just started to learn CMAQ. The dependency libraries required by CMAQ have been installed by other students in our server. At present, the dependency libraries required by CMAQ are linked to those installed by them. When installing CMAQ5.2, I encountered the following error while compiling icon. What is the reason for the error? I would appreciate it if you could reply me! Thanks!
Compiler is set to intel
set ICON_SRC = /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src
setenv REPOROOT /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src
set Mechs = /disk1/scl/CMAQ/CMAQ-5.2/CCTM/src/MECHS
set VRSN = v52
set INPT = profile
set EXEC = ICON_v52_profile.exe
set CFG = ICON_v52_profile.cfg
set CompileBLDMAKE
set CopySrc
set ModCommon = common
set ModType = profile
set ModMech = prof_data/cb05_ae6_aq
set Mechanism = cb05e51_ae6_aq/
set Tracer = trac0
set FC = mpiifort
set FP = mpiifort
setenv BLDER /disk1/scl/CMAQ/CMAQ-5.2/UTIL/bldmake/bldmake_intel.exe
set xLib_Base = /disk1/scl/CMAQ/CMAQ-5.2/lib
set xLib_1 = /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/Linux2_x86_64ifort
set xLib_2 = /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/ioapi/fixed_src
set xLib_4 = /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/Linux2_x86_64ifort
set FSTD = -O3 -fno-alias -mp1 -fp-model source
set DBG = -O0 -g -check bounds -check uninit -fpe0 -fno-alias -ftrapuv -traceback
set F_FLAGS = -fixed -132
set F90_FLAGS = -free
set CPP_FLAGS =
set LINK_FLAGS =
set LIB1 = -lioapi
set LIB2 = -lnetcdf
if ( ! -e /disk1/scl/CMAQ/CMAQ-5.2 || ! -e /disk1/scl/CMAQ/CMAQ-5.2/lib ) then
echo Model repository base path: /disk1/scl/CMAQ/CMAQ-5.2
Model repository base path: /disk1/scl/CMAQ/CMAQ-5.2
echo library path: /disk1/scl/CMAQ/CMAQ-5.2/lib
library path: /disk1/scl/CMAQ/CMAQ-5.2/lib
if ( 0 ) then
set BLD_OS = uname -s
uname -s
if ( Linux != Linux ) then
set Bld = /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel
if ( ! -e /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel ) then
if ( ! -d /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel ) then
endif
cd /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel
if ( 1 ) then
/bin/cp -fp /disk1/scl/CMAQ/CMAQ-5.2/CCTM/src/MECHS/cb05e51_ae6_aq//AE_cb05e51_ae6_aq.nml /disk1/scl/CMAQ/CMAQ-5.2/CCTM/src/MECHS/cb05e51_ae6_aq//GC_cb05e51_ae6_aq.nml /disk1/scl/CMAQ/CMAQ-5.2/CCTM/src/MECHS/cb05e51_ae6_aq//NR_cb05e51_ae6_aq.nml /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel
/bin/cp -fp /disk1/scl/CMAQ/CMAQ-5.2/CCTM/src/MECHS/trac0/Species_Table_TR_0.nml /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel
else
set Cfile = ICON_v52_profile.cfg.bld
set quote = "
echo
echo model ICON_v52_profile.exe;
echo
echo repo /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src;
echo
echo mechanism cb05e51_ae6_aq/;
echo
echo lib_base /disk1/scl/CMAQ/CMAQ-5.2/lib;
echo
echo lib_1 /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/Linux2_x86_64ifort;
echo
echo lib_2 /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/ioapi/fixed_src;
echo
echo lib_4 /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/Linux2_x86_64ifort;
echo
set text = “”;
echo cpp_flags “”;
echo
echo f_compiler mpiifort;
echo
echo fstd “-O3 -fno-alias -mp1 -fp-model source”;
echo
echo dbg “-O0 -g -check bounds -check uninit -fpe0 -fno-alias -ftrapuv -traceback”;
echo
echo f_flags “-fixed -132”;
echo
echo f90_flags “-free”;
echo
echo link_flags “”;
echo
echo ioapi “-lioapi”;
echo
echo netcdf "-lnetcdf ";
echo

set text=// mechanism:
echo // mechanism: cb05e51_ae6_aq/
echo // project repository: /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src
echo
set text = common
echo // required common
echo Module common;
echo
set text = profile, m3conc, tracer
echo // options are profile, m3conc, tracer
echo Module profile;
echo
set text = cb05, saprc99, saprc07t
echo // options are cb05, saprc99, saprc07t
echo Module prof_data/cb05_ae6_aq;
echo
if ( 0 ) then
unalias mv rm
if ( 1 || ! -f /disk1/scl/CMAQ/CMAQ-5.2/UTIL/bldmake/bldmake_intel.exe ) then
cd /disk1/scl/CMAQ/CMAQ-5.2/UTIL/bldmake/scripts
./bldit_bldmake.csh
endif
set Blder = /disk1/scl/CMAQ/CMAQ-5.2/UTIL/bldmake/bldmake_intel.exe -serial -verbose
cd /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel
if ( 0 ) then
if ( 1 ) then
/disk1/scl/CMAQ/CMAQ-5.2/UTIL/bldmake/bldmake_intel.exe -serial -verbose ICON_v52_profile.cfg.bld
REPOROOT set to:/disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src

Model set to ICON_v52_profile.exe
Repository set to /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src
Mechanism set to cb05e51_ae6_aq/
LIB_BASE set to /disk1/scl/CMAQ/CMAQ-5.2/lib
LIB_1 set to /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/Linux2_x86_64ifort
LIB_2 set to /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/ioapi/fixed_src
LIB_4 set to /disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/Linux2_x86_64ifort
CPP_FLAGS set to
F_COMPILER set to mpiifort
FSTD set to -O3 -fno-alias -mp1 -fp-model source
DBG set to -O0 -g -check bounds -check uninit -fpe0 -fno-alias -ftrapuv -traceback
f_flags set to -fixed -132
f90_flags set to -free
LINK_FLAGS set to
IOAPI set to -lioapi
NETCDF set to -lnetcdf

Building file list for module common
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/CGRID_SPCS.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/findex.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/gc_spc_map.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/get_envlist.f added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/HGRD_DEFN.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/icon.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/IC_PARMS.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/lat_lon.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/lr_interp.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/lst_spc_map.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/ngc_spc_map.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/opn_ic_file.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/setup_logdev.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/subhdomain.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/UTILIO_DEFN.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/common/VGRD_DEFN.F added to make list

Building file list for module profile
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/profile/prof_driver.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/profile/prof_icout.F added to make list
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/profile/prof_vinterp.F added to make list

Building file list for module prof_data/cb05_ae6_aq
file /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/src/prof_data/cb05_ae6_aq/ic_profile_CB05.dat added to make list

Determining global module files
file CGRID_SPCS.F determined to be global
file HGRD_DEFN.F determined to be global
file IC_PARMS.F determined to be global
file UTILIO_DEFN.F determined to be global
file VGRD_DEFN.F determined to be global

Generating Makefile

Compilers defined
CPP Flags defined
Libraries defined
Includes defined
Objects defined
Make rules defined

file,nfields-1 CGRID_SPCS.F 2
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F

file,nfields-1 gc_spc_map.F 3
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F
modName,modFile 3 CGRID_SPCS CGRID_SPCS.F

file,nfields-1 HGRD_DEFN.F 2
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F

file,nfields-1 icon.F 6
modName,modFile 2 HGRD_DEFN HGRD_DEFN.F
modName,modFile 3 VGRD_DEFN VGRD_DEFN.F
modName,modFile 4 UTILIO_DEFN UTILIO_DEFN.F
modName,modFile 5 CGRID_SPCS CGRID_SPCS.F
modName,modFile 6 IC_PARMS IC_PARMS.F

file,nfields-1 lat_lon.F 2
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F

file,nfields-1 lr_interp.F 2
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F

file,nfields-1 lst_spc_map.F 4
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F
modName,modFile 3 CGRID_SPCS CGRID_SPCS.F
modName,modFile 4 IC_PARMS IC_PARMS.F

file,nfields-1 ngc_spc_map.F 4
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F
modName,modFile 3 CGRID_SPCS CGRID_SPCS.F
modName,modFile 4 IC_PARMS IC_PARMS.F

file,nfields-1 opn_ic_file.F 6
modName,modFile 2 HGRD_DEFN HGRD_DEFN.F
modName,modFile 3 VGRD_DEFN VGRD_DEFN.F
modName,modFile 4 UTILIO_DEFN UTILIO_DEFN.F
modName,modFile 5 CGRID_SPCS CGRID_SPCS.F
modName,modFile 6 IC_PARMS IC_PARMS.F

file,nfields-1 setup_logdev.F 2
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F

file,nfields-1 subhdomain.F 2
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F

file,nfields-1 UTILIO_DEFN.F 3
modName 2 M3UTILIO -------------
modName 3 PARUTILIO -------------

file,nfields-1 VGRD_DEFN.F 2
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F

file,nfields-1 prof_driver.F 4
modName,modFile 2 UTILIO_DEFN UTILIO_DEFN.F
modName,modFile 3 CGRID_SPCS CGRID_SPCS.F
modName,modFile 4 IC_PARMS IC_PARMS.F

file,nfields-1 prof_icout.F 5
modName,modFile 2 HGRD_DEFN HGRD_DEFN.F
modName,modFile 3 VGRD_DEFN VGRD_DEFN.F
modName,modFile 4 UTILIO_DEFN UTILIO_DEFN.F
modName,modFile 5 IC_PARMS IC_PARMS.F

file,nfields-1 prof_vinterp.F 5
modName,modFile 2 HGRD_DEFN HGRD_DEFN.F
modName,modFile 3 VGRD_DEFN VGRD_DEFN.F
modName,modFile 4 UTILIO_DEFN UTILIO_DEFN.F
modName,modFile 5 IC_PARMS IC_PARMS.F

USE/MODULE dependencies defined

Makefile generated
mpiifort -c -fixed -132 -O3 -fno-alias -mp1 -fp-model source -I /disk1/scl/CMAQ/CMAQ-5.2/lib//disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/Linux2_x86_64ifort -I /disk1/scl/CMAQ/CMAQ-5.2/lib//disk1/scl/CMAQ/CMAQ-5.2/lib/ioapi/ioapi/fixed_src UTILIO_DEFN.F
UTILIO_DEFN.F(71): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [M3UTILIO]
USE M3UTILIO, INTERPB => INTERP3
-------------^
UTILIO_DEFN.F(71): error #6581: Unresolved rename. [INTERPB]
USE M3UTILIO, INTERPB => INTERP3
-----------------------^
compilation aborted for UTILIO_DEFN.F (code 1)
make: *** [UTILIO_DEFN.o] Error 1
ERROR while running make command

else
endif
if ( 0 != 0 ) then
if ( -e /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel/ICON_v52_profile.cfg ) then
echo >>> previous ICON_v52_profile.cfg exists, re-naming to ICON_v52_profile.cfg.old <<<

previous ICON_v52_profile.cfg exists, re-naming to ICON_v52_profile.cfg.old <<<
unalias mv
mv /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel/ICON_v52_profile.cfg /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel/ICON_v52_profile.cfg.old
endif
mv ICON_v52_profile.cfg.bld /disk1/scl/CMAQ/CMAQ-5.2/PREP/icon/scripts/BLD_ICON_v52_profile_intel/ICON_v52_profile.cfg
exit

Here’s your problem. Something is wrong with how you’ve told the build-system to access the I/O API.

1 Like

Thank you for your reply. I changed the ioapi path. After running it again, the following problem occurred. Is it a compiler problem? I don’t really understand. I am currently installing cmaq with an intel compiler. How can I fix this?

Makefile generated
mpiifort -c -fixed -132 -O3 -fno-alias -mp1 -fp-model source -I /disk1/scl/CMAQ/CMAQ-5.2/lib//ioapi/Linux2_x86_64ifort -I /disk1/scl/CMAQ/CMAQ-5.2/lib//ioapi/ioapi/fixed_src UTILIO_DEFN.F
UTILIO_DEFN.F(71): error #7012: The module file cannot be read. Its format requires a more recent F90 compiler. [M3UTILIO]
USE M3UTILIO, INTERPB => INTERP3
-------------^
UTILIO_DEFN.F(71): error #6581: Unresolved rename. [INTERPB]
USE M3UTILIO, INTERPB => INTERP3
-----------------------^
compilation aborted for UTILIO_DEFN.F (code 1)
make: *** [UTILIO_DEFN.o] Error 1
ERROR while running make command

This says that the I/O API was compiled with a different (newer!) compiler than you’re using for the CCTM