# Make file created but errors exist after created file is made

**URL:** <https://forum.cmascenter.org/t/make-file-created-but-errors-exist-after-created-file-is-made/846>\
**Category:** CMAQ-PREP\
**Created:** [July 26, 2019, 4:33pm UTC](https://forum.cmascenter.org/t/make-file-created-but-errors-exist-after-created-file-is-made/846 "2019-07-26T16:33:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![science\_person](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@science\_person](https://forum.cmascenter.org/u/science_person)\
**Post date:** [July 26, 2019, 4:33pm UTC](https://forum.cmascenter.org/t/make-file-created-but-errors-exist-after-created-file-is-made/846/1 "2019-07-26T16:33:48Z")

</div>

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!

---

<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:** [July 26, 2019, 5:37pm UTC](https://forum.cmascenter.org/t/make-file-created-but-errors-exist-after-created-file-is-made/846/2 "2019-07-26T17:37:49Z")

</div>

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}_.

---

<div class="post-metadata">

**Author:** ![science\_person](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@science\_person](https://forum.cmascenter.org/u/science_person)\
**Post date:** [July 29, 2019, 2:21pm UTC](https://forum.cmascenter.org/t/make-file-created-but-errors-exist-after-created-file-is-made/846/3 "2019-07-29T14:21:50Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![science\_person](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@science\_person](https://forum.cmascenter.org/u/science_person)\
**Post date:** [July 29, 2019, 2:35pm UTC](https://forum.cmascenter.org/t/make-file-created-but-errors-exist-after-created-file-is-made/846/4 "2019-07-29T14:35:01Z")

</div>

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!
