Make file created but errors exist after created file is made

Hi All,

I just made an adjustment and my compilation of icon is working well. Although, I’m still getting an error (even though my makefile was created). Should I ignore this error? My output is below:

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 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
mpif90 -c -fixed -132 -O3 -fno-alias -mp1 -fp-model source -I /u/jrwelsh/CMAQ/CMAQ_REPO/lib/x86_64/intel19.0.4.243/ioapi/modules -I /u/jrwelsh/CMAQ/CMAQ_REPO/lib/x86_64/intel19.0.4.243/ioapi/include_files 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 /u/jrwelsh/CMAQ/CMAQ_REPO/PREP/icon/scripts/BLD_ICON_v521_profile_intel19.0.4.243/ICON_v521_profile.cfg ) then
echo >>> previous ICON_v521_profile.cfg exists, re-naming to ICON_v521_profile.cfg.old <<<

previous ICON_v521_profile.cfg exists, re-naming to ICON_v521_profile.cfg.old <<<
unalias mv
mv /u/jrwelsh/CMAQ/CMAQ_REPO/PREP/icon/scripts/BLD_ICON_v521_profile_intel19.0.4.243/ICON_v521_profile.cfg /u/jrwelsh/CMAQ/CMAQ_REPO/PREP/icon/scripts/BLD_ICON_v521_profile_intel19.0.4.243/ICON_v521_profile.cfg.old
endif
mv ICON_v521_profile.cfg.bld /u/jrwelsh/CMAQ/CMAQ_REPO/PREP/icon/scripts/BLD_ICON_v521_profile_intel19.0.4.243/ICON_v521_profile.cfg
exit

Any and all help is greatly appreciated!

Thanks!

The I/O API build should generate a m3utilio.mod in the ioapi-3.2/${BIN} directory. You need to include this directory in the module-search-path for your Makefile.

How to do this depends upon what underlying compiler mpif90 uses (recall that it is really a script that “knows about” the MPI include-files and libraries, calling an underlying “normal” compiler like ifort, gfortran, or pgif90 that is set up at MPI install-time). For Intel and GNU compilers, the module search path is set by a command-line option “-I<*directory*>”; for PGI, it is “-module <*directory*>” (and for other copilers it is something else again. See the MODI make-variable in the appropriate I/O API Makeinclude.${BIN}.

Thanks! I’ve been looking back at my Makefile and it seems as though the CMAQ_LIB and other ioapi files are not in the correct path. Should I change all these to be in the current directory?

Here are the libraries:

set xLib_Base = ${CMAQ_LIB}
set xLib_1 = ioapi/modules
set xLib_2 = ioapi/include_files
set xLib_4 = ioapi/lib

Thanks for all the suggestions you’ve given me so far! It’s been very helpful!

Also, here is the error message I’m getting below:

Makefile generated
mpif90 -c -fixed -132 -O3 -fno-alias -mp1 -fp-model source -I /u/jrwelsh/CMAQ/CMAQ_REPO/lib/x86_64/intel19.0.4.243/ioapi/modules -I /u/jrwelsh/CMAQ/CMAQ_REPO/lib/x86_64/intel19.0.4.243/ioapi/include_files 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 /u/jrwelsh/CMAQ/CMAQ_REPO/PREP/icon/scripts/BLD_ICON_v521_profile_intel19.0.4.243/ICON_v521_profile.cfg ) then
echo >>> previous ICON_v521_profile.cfg exists, re-naming to ICON_v521_profile.cfg.old <<<

previous ICON_v521_profile.cfg exists, re-naming to ICON_v521_profile.cfg.old <<<
unalias mv
mv /u/jrwelsh/CMAQ/CMAQ_REPO/PREP/icon/scripts/BLD_ICON_v521_profile_intel19.0.4.243/ICON_v521_profile.cfg /u/jrwelsh/CMAQ/CMAQ_REPO/PREP/icon/scripts/BLD_ICON_v521_profile_intel19.0.4.243/ICON_v521_profile.cfg.old
endif
mv ICON_v521_profile.cfg.bld /u/jrwelsh/CMAQ/CMAQ_REPO/PREP/icon/scripts/BLD_ICON_v521_profile_intel19.0.4.243/ICON_v521_profile.cfg
exit

Also, the compiler still isn’t generating the executable.

Thanks!

Also, when trying to go to the ioapi/modules file location; I’m unable to look inside the file location. Should those files “modules, include_files, lib” all be created? Each file is marked in red as well. It seems as though it’s unable to be opened. Thanks!