# ICON not building

**URL:** <https://forum.cmascenter.org/t/icon-not-building/835>\
**Category:** CMAQ-PREP\
**Created:** [July 24, 2019, 2:38pm UTC](https://forum.cmascenter.org/t/icon-not-building/835 "2019-07-24T14:38:57Z")\
**Posts on this page:** 15\
**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 24, 2019, 2:38pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/1 "2019-07-24T14:38:58Z")

</div>

Hi All, When I try to build the ICON software I get the following error below; any and all help is appreciated! Thanks!

Compiler is set to gcc  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/gcc4.8.5/mpi’: File exists  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/gcc4.8.5/netcdf/lib’: File exists  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/gcc4.8.5/netcdf/include’: File exists  
0: Event not found.  
set ICON\_SRC = /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src  
setenv REPOROOT /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src  
set Mechs = /u/jrwelsh/CMAQ/CMAQ\_REPO/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 = mpif90  
set FP = mpif90  
setenv BLDER /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_gcc.exe  
set xLib\_Base = /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/gcc4.8.5  
set xLib\_1 = ioapi/modules  
set xLib\_2 = ioapi/include\_files  
set xLib\_4 = ioapi/lib  
set FSTD = -O3 -funroll-loops -finit-character=32 -Wtabs -Wsurprising  
set DBG = -Wall -O0 -g -fcheck=all -ffpe-trap=invalid,zero,overflow -fbacktrace  
set F\_FLAGS = -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32  
set F90\_FLAGS = -ffree-form -ffree-line-length-none -funroll-loops -finit-character=32  
set CPP\_FLAGS =  
set LINK\_FLAGS =  
set LIB1 = -lioapi  
set LIB2 = -lnetcdf -lnetcdff  
if ( ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO || ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/gcc4.8.5 ) then  
echo Model repository base path: /u/jrwelsh/CMAQ/CMAQ\_REPO  
Model repository base path: /u/jrwelsh/CMAQ/CMAQ\_REPO  
echo library path: /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/gcc4.8.5  
library path: /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/gcc4.8.5  
if ( 0 ) then  
set BLD\_OS = `uname -s`  
uname -s  
if ( Linux != Linux ) then  
set Bld = /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc  
if ( ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc ) then  
if ( ! -d /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc ) then  
endif  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc  
if ( 1 ) then  
/bin/cp -fp /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//AE\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//GC\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//NR\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc  
/bin/cp -fp /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/trac0/Species\_Table\_TR\_0.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc  
else  
set Cfile = ICON\_v52\_profile.cfg.bld  
set quote = "  
echo  
echo model ICON\_v52\_profile.exe;  
echo  
echo repo /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src;  
echo  
echo mechanism cb05e51\_ae6\_aq/;  
echo  
echo lib\_base /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/gcc4.8.5;  
echo  
echo lib\_1 ioapi/modules;  
echo  
echo lib\_2 ioapi/include\_files;  
echo  
echo lib\_4 ioapi/lib;  
echo  
set text = “”;  
echo cpp\_flags “”;  
echo  
echo f\_compiler mpif90;  
echo  
echo fstd “-O3 -funroll-loops -finit-character=32 -Wtabs -Wsurprising”;  
echo  
echo dbg “-Wall -O0 -g -fcheck=all -ffpe-trap=invalid,zero,overflow -fbacktrace”;  
echo  
echo f\_flags “-ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32”;  
echo  
echo f90\_flags “-ffree-form -ffree-line-length-none -funroll-loops -finit-character=32”;  
echo  
echo link\_flags “”;  
echo  
echo ioapi “-lioapi”;  
echo  
echo netcdf "-lnetcdf -lnetcdff ";  
echo

set text=// mechanism:  
echo // mechanism: cb05e51\_ae6\_aq/  
echo // project repository: /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_gcc.exe ) then  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/scripts  
./bldit\_bldmake.csh  
rm: No match.  
ifort: command line warning #10006: ignoring unknown option ‘-ffixed-form’  
ifort: command line warning #10006: ignoring unknown option ‘-ffixed-line-length-132’  
ifort: command line warning #10006: ignoring unknown option ‘-finit-character=32’  
cfg\_module.f(45): error #5120: Unterminated character constant  
& (/ '.F ', '.f ', '.c ', ‘.F90’, ‘.f90’ /)  
-------------------------------------------------------------------^  
cfg\_module.f(45): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , (/ : /)  
& (/ '.F ', ‘.f ‘, ‘.c ‘, ‘.F90’, ‘.f90’ /)  
----------------------------------------------------------------------------^  
cfg\_module.f(227): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( (Len\_Trim(record) + Len\_Trim(nextrecord)) .Ge. (Len(record)) ) Then  
----------------------------------------------------------------------------------^  
cfg\_module.f(228): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) ,  
Write(\*,’(//“ **ERROR** The maximum record length exceeded”)’)  
-------------------------------------------------------------------------^  
cfg\_module.f(275): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( \*, ‘("Repository set to ",a)’ ) Trim( repo )  
----------------------------------------------------------------------------^  
cfg\_module.f(282): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( \*, ‘("Mechanism set to ",a)’ ) Trim( mechanism )  
--------------------------------------------------------------------------------^  
cfg\_module.f(289): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( \*, ‘("LIB\_BASE set to ",a)’ ) Trim( lib\_base )  
------------------------------------------------------------------------------^  
cfg\_module.f(322): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( \*, ‘("F\_COMPILER set to ",a)’ ) Trim( f\_compiler )  
----------------------------------------------------------------------------------^  
cfg\_module.f(341): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( \*, ‘("f\_flags set to ",a)’ ) Trim( f\_flags )  
----------------------------------------------------------------------------^  
cfg\_module.f(347): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( \*, ‘("f90\_flags set to ",a)’ ) Trim( f90\_flags )  
--------------------------------------------------------------------------------^  
cfg\_module.f(354): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( _, ‘("C\_COMPILER set to ",a)’ ) Trim( c\_compiler )  
----------------------------------------------------------------------------------^  
cfg\_module.f(360): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( , ‘("C\_FLAGS set to ",a)’ ) Trim( c\_flags )  
----------------------------------------------------------------------------^  
cfg\_module.f(373): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( , ‘("CPP\_FLAGS set to ",a)’ ) Trim( cpp\_flags )  
--------------------------------------------------------------------------------^  
cfg\_module.f(380): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( , ‘("LINKER set to ",a)’ ) Trim( linker )  
--------------------------------------------------------------------------^  
cfg\_module.f(386): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( , ‘("LINK\_FLAGS set to ",a)’ ) Trim( link\_flags )  
----------------------------------------------------------------------------------^  
cfg\_module.f(398): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
If ( verbose ) Write( , ‘("NETCDF set to ",a)’ ) Trim( netcdf )  
--------------------------------------------------------------------------^  
cfg\_module.f(422): error #5082: Syntax error, found ‘(’ when expecting one of: PROCEDURE  
If ( fields(3) .Ne. ‘release’ ) module( n\_modules )%version = fields(3)  
---------------------------------------------------^  
cfg\_module.f(424): catastrophic error: Too many errors, exiting  
compilation aborted for cfg\_module.f (code 1)  
ifort: command line warning #10006: ignoring unknown option ‘-ffixed-form’  
ifort: command line warning #10006: ignoring unknown option ‘-ffixed-line-length-132’  
ifort: command line warning #10006: ignoring unknown option ‘-finit-character=32’  
bldmake.f(69): error #5120: Unterminated character constant  
If ( status .ne. 0 ) Call error\_msg( ‘Cannot create FILE [Makefile]’ )  
-------------------------------------------^  
bldmake.f(69): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) :: , :  
If ( status .ne. 0 ) Call error\_msg( ‘Cannot create FILE [Makefile]’ )  
----------------------------------------------------------------------------^  
bldmake.f(41): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCFG  
----------^  
bldmake.f(76): error #6404: This name does not have a type, and must have an explicit type. [MAKEFO]  
If ( .not. makefo ) Then  
-----------------^  
bldmake.f(45): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [EXT\_LEN]  
Character( EXT\_LEN ) :: cfgFile ! config file  
-----------------^  
bldmake.f(45): error #6591: An automatic object is invalid in a main program. [CFGFILE]  
Character( EXT\_LEN ) :: cfgFile ! config file  
------------------------------^  
bldmake.f(140): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
Call help\_msg(‘Invalid configuration file argument:’ // Trim( cfgFile ) )  
---------------------------------------------------------------------------------^  
bldmake.f(154): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \* ) :: , . % + - [ : . \*\* / // .LT. \< .LE. \<= .EQ. == …  
Call help\_msg(‘Invalid arguments on command line:’ // Trim( argv ) )  
------------------------------------------------------------------------------^  
bldmake.f(197): error #5120: Unterminated character constant  
Call help\_msg( ‘Invalid arguments [’ // Trim(argv) // ‘] on command line’ )  
--------------------------------------------------------------^  
bldmake.f(197): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) :: , :  
Call help\_msg( ‘Invalid arguments [’ // Trim(argv) // ‘] on command line’ )  
-----------------------------------------------------------------------------------^  
bldmake.f(214): error #5082: Syntax error, found IDENTIFIER ‘DATEVALUES’ when expecting one of: ( \* ) :: , ; . (/ + - : ] /) ’ \*\* / // \> .LT. …  
& dateValues( 2 ), dateValues( 3 ), dateValues( 1 ),  
---------^  
bldmake.f(215): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) ,  
& dateValues( 5 ), dateValues( 6 ), dateValues( 7 )  
----------------------------------------------------------^  
bldmake.f(88): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCfg  
----------^  
bldmake.f(111): error #6404: This name does not have a type, and must have an explicit type. [VERBOSE]  
verbose = .False.  
------^  
bldmake.f(111): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.  
verbose = .False.  
------------------^  
bldmake.f(112): error #6404: This name does not have a type, and must have an explicit type. [SERIAL]  
serial = .False.  
------^  
bldmake.f(112): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.  
serial = .False.  
------------------^  
bldmake.f(113): error #6404: This name does not have a type, and must have an explicit type. [DEBUG]  
debug = .False.  
------^  
bldmake.f(113): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.  
debug = .False.  
------------------^  
bldmake.f(114): error #6404: This name does not have a type, and must have an explicit type. [DEBUG\_CCTM]  
debug\_cctm= .False.  
------^  
bldmake.f(114): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.  
debug\_cctm= .False.  
------------------^  
bldmake.f(115): error #6404: This name does not have a type, and must have an explicit type. [CHECKOUT]  
checkout = .False.  
------^  
bldmake.f(115): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.  
checkout = .False.  
------------------^  
bldmake.f(116): error #6404: This name does not have a type, and must have an explicit type. [MAKEFO]  
makefo = .False.  
------^  
bldmake.f(116): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.  
makefo = .False.  
------------------^  
bldmake.f(117): error #6404: This name does not have a type, and must have an explicit type. [TWOWAY]  
twoway = .False.  
------^  
bldmake.f(117): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands.  
twoway = .False.  
------------------^  
bldmake.f(118): error #6404: This name does not have a type, and must have an explicit type. [GIT\_LOCAL]  
git\_local = .False.  
------^  
bldmake.f(226): catastrophic error: Too many errors, exiting  
compilation aborted for bldmake.f (code 1)  
ifort: command line warning #10006: ignoring unknown option ‘-ffixed-form’  
ifort: command line warning #10006: ignoring unknown option ‘-ffixed-line-length-132’  
ifort: command line warning #10006: ignoring unknown option ‘-finit-character=32’  
parser.f(107): error #6404: This name does not have a type, and must have an explicit type. [NFIELD]  
If ( Index( delimiter, record( i:i ) ) .Gt. 0 ) nfields = nfields+1  
------------------------------------------------------------------^  
parser.f(213): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ) ,  
Subroutine getParsedField( record, delimiter, nth, field, includeDel )  
----------------------------------------------------------------------------^  
parser.f(213): error #6404: This name does not have a type, and must have an explicit type. [INCLUDED]  
Subroutine getParsedField( record, delimiter, nth, field, includeDel )  
----------------------------------------------------------------^  
parser.f(313): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( % [ : . = =\>  
If ( string( 1:1 ) .Ne. ‘"’ .And. string( last:last ) .Ne. ‘"’ ) Return  
-----------------------------------------------------------------------------^  
parser.f(313): error #6343: The statement following the Logical IF statement is invalid.  
If ( string( 1:1 ) .Ne. ‘"’ .And. string( last:last ) .Ne. ‘"’ ) Return  
------^  
parser.f(355): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \<CHAR\_CON\_KIND\_PARAM\> \<CHAR\_NAM\_KIND\_PARAM\> \<CHARACTER\_CONSTANT\> \<INTEGER\_CONSTANT\> …  
If ( infield .And. string( i:i ) .Eq. inchar ) string( i:i ) = outchar  
-------------------------------------------------------------------------------^  
parser.f(376): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( \<CHAR\_CON\_KIND\_PARAM\> \<CHAR\_NAM\_KIND\_PARAM\> \<CHARACTER\_CONSTANT\> \<INTEGER\_CONSTANT\> …  
if ( ( k .Ge. 97 ) .And. ( k .Le. 122 ) ) str( i:i ) = Char( k - 32 )  
-----------------------------------------------------------------------------^  
compilation aborted for parser.f (code 1)  
ifort: command line warning #10006: ignoring unknown option ‘-ffixed-form’  
ifort: command line warning #10006: ignoring unknown option ‘-ffixed-line-length-132’  
ifort: command line warning #10006: ignoring unknown option ‘-finit-character=32’  
utils.f(31): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCFG  
----------^  
utils.f(44): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(44): error #6404: This name does not have a type, and must have an explicit type. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(63): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCFG  
----------^  
utils.f(75): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(75): error #6404: This name does not have a type, and must have an explicit type. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(92): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCFG  
----------^  
utils.f(104): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(104): error #6404: This name does not have a type, and must have an explicit type. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(121): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCFG  
----------^  
utils.f(134): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(134): error #6404: This name does not have a type, and must have an explicit type. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(183): error #5120: Unterminated character constant  
Write(,’(“ **ERROR** opening scratch file to capture which results”/)’)  
------------------^  
utils.f(183): error #5082: Syntax error, found ‘’’ when expecting one of: ( \* \<CHAR\_CON\_KIND\_PARAM\> \<CHAR\_NAM\_KIND\_PARAM\> \<CHARACTER\_CONSTANT\> …  
Write(,’(“ **ERROR** opening scratch file to capture which results”/)’)  
----------------^  
utils.f(151): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCFG  
----------^  
utils.f(176): error #6404: This name does not have a type, and must have an explicit type. [TRI]  
Write(,’(" **ERROR** writing “,a,” to ",a/)’) Trim(cmdline), Trim(scrfile)  
---------------------------------------------------------------------^  
utils.f(164): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [FLD\_LEN]  
Character( FLD\_LEN ) :: scrfile  
-----------------^  
utils.f(164): error #6404: This name does not have a type, and must have an explicit type. [FLD\_LEN]  
Character( FLD\_LEN ) :: scrfile  
-----------------^  
utils.f(232): error #5120: Unterminated character constant  
Write(,’(“ **ERROR** openning scratch file to capture pwd results”/)’)  
------------------^  
utils.f(232): error #5082: Syntax error, found ‘’’ when expecting one of: ( \* \<CHAR\_CON\_KIND\_PARAM\> \<CHAR\_NAM\_KIND\_PARAM\> \<CHARACTER\_CONSTANT\> …  
Write(,’(“ **ERROR** openning scratch file to capture pwd results”/)’)  
----------------^  
utils.f(201): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCFG  
----------^  
utils.f(225): error #6404: This name does not have a type, and must have an explicit type. [TRI]  
Write(_,’(" **ERROR** writing “,a,” to ",a/)’) Trim(cmdline), Trim(scrfile)  
---------------------------------------------------------------------^  
utils.f(213): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [FLD\_LEN]  
Character( FLD\_LEN ) :: scrfile  
-----------------^  
utils.f(213): error #6404: This name does not have a type, and must have an explicit type. [FLD\_LEN]  
Character( FLD\_LEN ) :: scrfile  
-----------------^  
utils.f(250): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MODELCFG]  
Use ModelCFG  
----------^  
utils.f(263): error #6404: This name does not have a type, and must have an explicit type. [DEBUG\_CCTM]  
if ( debug\_cctm ) then  
-----------^  
utils.f(263): error #6341: A logical data type is required in this context. [DEBUG\_CCTM]  
if ( debug\_cctm ) then  
-----------^  
utils.f(261): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association. [FLD\_LEN]  
Character( FLD\_LEN ) :: cmdline  
-----------------^  
utils.f(283): catastrophic error: Too many errors, exiting  
compilation aborted for utils.f (code 1)  
mpif90: No match.

_ **ERROR** _ BLDMAKE Compile failed

endif  
set Blder = /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_gcc.exe -serial -verbose  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_gcc  
if ( 0 ) then  
if ( 1 ) then  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_gcc.exe -serial -verbose ICON\_v52\_profile.cfg.bld  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_gcc.exe: Command not found.  
else  
endif  
mv Makefile Makefile.gcc  
mv: failed to access ‘Makefile.gcc’: Too many levels of symbolic links  
ln -s Makefile.gcc Makefile  
ln: failed to access ‘Makefile’: Too many levels of symbolic links  
if ( 1 != 0 ) then  
echo \*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_gcc.exe -serial -verbose \*\*\*  
\*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_gcc.exe -serial -verbose \*\*\*  
exit 1

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 24, 2019, 3:21pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/2 "2019-07-24T15:21:07Z")

</div>

> Compiler is set to gcc  
> …  
> ifort: command line warning #10006: ignoring unknown option ‘-ffixed-form’  
> ifort: command line warning #10006: ignoring unknown option ‘-ffixed-line-length-132’  
> ifort: command line warning #10006: ignoring unknown option ‘-finit-character=32’  
> cfg\_module.f(45): error #5120: Unterminated character constant  
> & (/ '.F ', '.f ', '.c ', ‘.F90’, ‘.f90’ /)

Your “bldmake” script is confused: It thinks it’s using GNU _gcc/gfortran_ when in fact it is using Intel _icc/ifort._

The problem is that this code is not written in either of the two standards-conforming Fortran-code formats (“fixed”, old-style with 72-column source lines, or “free”, with Fortran-90 style continuations and 132-column source lines) but instead a non-Standard “fixed-but-132-column” format, which requires compiler-specific command-line options to process. Your build is with Intel _ifort_, which requires the option “`-extend-source 132`” for that purpose; however, your “_bldmake_” seems to hard-code the gfortran-option “-ffixed-line-length-132” while actually using _ifort_. You need either to use the Intel option or to convince _bldmake_ to use _gfortran_ instead of _ifort_.

---

<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 24, 2019, 5:03pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/3 "2019-07-24T17:03:27Z")

</div>

Great, thank you for that thorough explanation! It’s much appreciated! It sounds like the author needed to put more work into the code.

I see, so I changed the compiler with the command:

./bldit\_icon.csh intel 15.0.0 |& tee bldit.icon.log and I got the following error attached

Compiler is set to intel  
0: Event not found.  
set ICON\_SRC = /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src  
setenv REPOROOT /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src  
set Mechs = /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe  
set xLib\_Base = /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel15.0.0  
set xLib\_1 = ioapi/modules  
set xLib\_2 = ioapi/include\_files  
set xLib\_4 = ioapi/lib  
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 -lnetcdff -lcurl  
if ( ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO || ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel15.0.0 ) then  
echo Model repository base path: /u/jrwelsh/CMAQ/CMAQ\_REPO  
Model repository base path: /u/jrwelsh/CMAQ/CMAQ\_REPO  
echo library path: /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel15.0.0  
library path: /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel15.0.0  
if ( 0 ) then  
set BLD\_OS = `uname -s`  
uname -s  
if ( Linux != Linux ) then  
set Bld = /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel ) then  
mkdir /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
else  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 1 ) then  
/bin/cp -fp /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//AE\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//GC\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//NR\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
/bin/cp -fp /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/trac0/Species\_Table\_TR\_0.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src;  
echo  
echo mechanism cb05e51\_ae6\_aq/;  
echo  
echo lib\_base /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel15.0.0;  
echo  
echo lib\_1 ioapi/modules;  
echo  
echo lib\_2 ioapi/include\_files;  
echo  
echo lib\_4 ioapi/lib;  
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 -lnetcdff -lcurl”;  
echo

set text=// mechanism:  
echo // mechanism: cb05e51\_ae6\_aq/  
echo // project repository: /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe ) then  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/scripts  
./bldit\_bldmake.csh  
rm: No match.  
mpiifort: Command not found.  
mpiifort: Command not found.  
mpiifort: Command not found.  
mpiifort: Command not found.  
mpiifort: No match.

_ **ERROR** _ BLDMAKE Compile failed

endif  
set Blder = /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 0 ) then  
if ( 1 ) then  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose ICON\_v52\_profile.cfg.bld  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe: Command not found.  
else  
endif  
mv Makefile Makefile.intel  
mv: cannot stat ‘Makefile’: No such file or directory  
ln -s Makefile.intel Makefile  
if ( 0 != 0 ) then  
if ( -e /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel/ICON\_v52\_profile.cfg ) then  
mv ICON\_v52\_profile.cfg.bld /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel/ICON\_v52\_profile.cfg  
exit

---

<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 24, 2019, 5:44pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/4 "2019-07-24T17:44:13Z")

</div>

Also, I just learned that I’m running mpif90 for MPI and for ifort it’s for a non MPI run. Would this entail a simple change to a script? Just wanted to include this in the comments here. 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 24, 2019, 7:07pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/5 "2019-07-24T19:07:08Z")

</div>

Hello All, So I just fixed the issue with setting the compiler but now I’m having difficulty with linking but the program does create the bld\_inte.exe file. The code is below:

Compiler is set to intel  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243/mpi’: File exists  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243/netcdf/lib’: File exists  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243/netcdf/include’: File exists  
0: Event not found.  
set ICON\_SRC = /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src  
setenv REPOROOT /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src  
set Mechs = /u/jrwelsh/CMAQ/CMAQ\_REPO/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 = mpif90  
set FP = mpif90  
setenv BLDER /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe  
set xLib\_Base = /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243  
set xLib\_1 = ioapi/modules  
set xLib\_2 = ioapi/include\_files  
set xLib\_4 = ioapi/lib  
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 -lnetcdff -lcurl  
if ( ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO || ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243 ) then  
echo Model repository base path: /u/jrwelsh/CMAQ/CMAQ\_REPO  
Model repository base path: /u/jrwelsh/CMAQ/CMAQ\_REPO  
echo library path: /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243  
library path: /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243  
if ( 0 ) then  
set BLD\_OS = `uname -s`  
uname -s  
if ( Linux != Linux ) then  
set Bld = /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel ) then  
if ( ! -d /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel ) then  
endif  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 1 ) then  
/bin/cp -fp /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//AE\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//GC\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//NR\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
/bin/cp -fp /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/trac0/Species\_Table\_TR\_0.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src;  
echo  
echo mechanism cb05e51\_ae6\_aq/;  
echo  
echo lib\_base /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243;  
echo  
echo lib\_1 ioapi/modules;  
echo  
echo lib\_2 ioapi/include\_files;  
echo  
echo lib\_4 ioapi/lib;  
echo  
set text = “”;  
echo cpp\_flags “”;  
echo  
echo f\_compiler mpif90;  
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 -lnetcdff -lcurl”;  
echo

set text=// mechanism:  
echo // mechanism: cb05e51\_ae6\_aq/  
echo // project repository: /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe ) then  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/scripts  
./bldit\_bldmake.csh

Finish building bldmake\_intel19.0.4.243.exe  
endif  
set Blder = /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 0 ) then  
if ( 1 ) then  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose ICON\_v52\_profile.cfg.bld  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe: Command not found.  
else  
endif  
mv Makefile Makefile.intel  
mv: ‘Makefile’ and ‘Makefile.intel’ are the same file  
ln -s Makefile.intel Makefile  
ln: failed to create symbolic link ‘Makefile’: File exists  
if ( 1 != 0 ) then  
echo \*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
\*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
exit 1  
jrwelsh@k-li2% ln -s /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe bldmake\_intel.exe  
jrwelsh@k-li2% ./bldit\_icon.csh intel 19.0.4.243 |& tee bldit.icon.log Compiler is set to intel  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243/mpi’: File exists  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243/netcdf/lib’: File exists  
ln: failed to create symbolic link ‘/u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243/netcdf/include’: File exists  
0: Event not found.  
set ICON\_SRC = /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src  
setenv REPOROOT /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src  
set Mechs = /u/jrwelsh/CMAQ/CMAQ\_REPO/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 = mpif90  
set FP = mpif90  
setenv BLDER /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe  
set xLib\_Base = /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243  
set xLib\_1 = ioapi/modules  
set xLib\_2 = ioapi/include\_files  
set xLib\_4 = ioapi/lib  
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 -lnetcdff -lcurl  
if ( ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO || ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243 ) then  
echo Model repository base path: /u/jrwelsh/CMAQ/CMAQ\_REPO  
Model repository base path: /u/jrwelsh/CMAQ/CMAQ\_REPO  
echo library path: /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243  
library path: /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243  
if ( 0 ) then  
set BLD\_OS = `uname -s`  
uname -s  
if ( Linux != Linux ) then  
set Bld = /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( ! -e /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel ) then  
if ( ! -d /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel ) then  
endif  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 1 ) then  
/bin/cp -fp /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//AE\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//GC\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/cb05e51\_ae6\_aq//NR\_cb05e51\_ae6\_aq.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
/bin/cp -fp /u/jrwelsh/CMAQ/CMAQ\_REPO/CCTM/src/MECHS/trac0/Species\_Table\_TR\_0.nml /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/src;  
echo  
echo mechanism cb05e51\_ae6\_aq/;  
echo  
echo lib\_base /u/jrwelsh/CMAQ/CMAQ\_REPO/lib/x86\_64/intel19.0.4.243;  
echo  
echo lib\_1 ioapi/modules;  
echo  
echo lib\_2 ioapi/include\_files;  
echo  
echo lib\_4 ioapi/lib;  
echo  
set text = “”;  
echo cpp\_flags “”;  
echo  
echo f\_compiler mpif90;  
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 -lnetcdff -lcurl”;  
echo

set text=// mechanism:  
echo // mechanism: cb05e51\_ae6\_aq/  
echo // project repository: /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe ) then  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/scripts  
./bldit\_bldmake.csh

Finish building bldmake\_intel19.0.4.243.exe  
endif  
set Blder = /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 0 ) then  
if ( 1 ) then  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose ICON\_v52\_profile.cfg.bld  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe: Command not found.  
else  
endif  
mv Makefile Makefile.intel  
mv: ‘Makefile’ and ‘Makefile.intel’ are the same file  
ln -s Makefile.intel Makefile  
ln: failed to create symbolic link ‘Makefile’: File exists  
if ( 1 != 0 ) then  
echo \*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
\*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
exit 1

I appreciate any and all help with this!

---

<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 24, 2019, 7:18pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/6 "2019-07-24T19:18:49Z")

</div>

Based on the previous message, this is the error message I’m getting! Thanks!

mv Makefile Makefile.intel  
mv: ‘Makefile’ and ‘Makefile.intel’ are the same file  
ln -s Makefile.intel Makefile  
ln: failed to create symbolic link ‘Makefile’: File exists  
if ( 1 != 0 ) then  
echo \*\*\* failure in  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial  
-verbose \*\*\*  
\*\*\* failure in  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial  
-verbose \*\*\*  
exit 1

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [July 25, 2019, 2:31pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/7 "2019-07-25T14:31:31Z")

</div>

Hi,

Please comment out the following statement, and see if that gets you past this error.

ln -s Makefile.intel Makefile

---

<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 25, 2019, 3:56pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/8 "2019-07-25T15:56:53Z")

</div>

Thank you for that suggestion! I hope this question isn’t too obvious but where is the file that I want to comment this out in?

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 25, 2019, 4:00pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/9 "2019-07-25T16:00:14Z")

</div>

Oh, I think I just found it! It’s within the bldit\_icon.csh file. 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 25, 2019, 4:13pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/10 "2019-07-25T16:13:28Z")

</div>

Thank you for all your help! I have noticed that it does finish building the bldmake\_intel19.0.4.243.exe file but ends with an error. What might be the next fix for this? The message I’m getting is below:

./bldit\_bldmake.csh

Finish building bldmake\_intel19.0.4.243.exe  
endif  
set Blder = /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 0 ) then  
if ( 1 ) then  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose ICON\_v52\_profile.cfg.bld  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe: Command not found.  
else  
endif  
ln -s Makefile.intel Makefile  
ln: failed to create symbolic link ‘Makefile’: File exists  
if ( 1 != 0 ) then  
echo \*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
\*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
exit 1

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [July 25, 2019, 7:20pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/11 "2019-07-25T19:20:18Z")

</div>

The error is just due to the step where the script tries to link the Makefile to Makefile.intel, but because you have run this multiple times, the link has already been done.  
Just comment out that statement, and the error won’t be created.

```auto
# ln -s Makefile.intel Makefile

```

---

<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 25, 2019, 8:08pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/12 "2019-07-25T20:08:39Z")

</div>

Great, I did that but I’m still getting an error. Will this error effect my program being able to run? Also, my error I’m getting with that line of code commented out is:

./bldit\_bldmake.csh

Finish building bldmake\_intel19.0.4.243.exe  
endif  
set Blder = /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 0 ) then  
if ( 1 ) then  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose ICON\_v52\_profile.cfg.bld  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe: Command not found.  
else  
endif  
mv Makefile Makefile.intel  
mv: ‘Makefile’ and ‘Makefile.intel’ are the same file  
if ( 1 != 0 ) then  
echo \*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
\*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
exit 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 25, 2019, 8:15pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/13 "2019-07-25T20:15:51Z")

</div>

Also, the “mv Makefile Makefile.$compiler” is the error that is indicated above but I don’t know how to change this. Would deleting or doing a refresh like make clean be good? I’m not sure of the command for this.

---

<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, 1:43pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/14 "2019-07-26T13:43:54Z")

</div>

I sent an email with this but I wanted to post as well:

I’ve actually tried commenting out both this line and the line following it:

ln -s Makefile.intel Makefile

mv Makefile Makefile.$compiler

I get this error message:

endif  
set Blder = /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 0 ) then  
if ( 1 ) then  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose ICON\_v52\_profile.cfg.bld  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe: Command not found.  
else  
endif  
if ( 0 != 0 ) then  
if ( -e /u/jrwelsh/CMAQ/CMAQ\_REPO/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 /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel/ICON\_v52\_profile.cfg /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel/ICON\_v52\_profile.cfg.old  
endif  
mv ICON\_v52\_profile.cfg.bld /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel/ICON\_v52\_profile.cfg  
exit

and when I comment out only the one line

ln -s Makefile.intel Makefile

I get this message:

Finish building bldmake\_intel19.0.4.243.exe  
endif  
set Blder = /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose  
cd /u/jrwelsh/CMAQ/CMAQ\_REPO/PREP/icon/scripts/BLD\_ICON\_v52\_profile\_intel  
if ( 0 ) then  
if ( 1 ) then  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose ICON\_v52\_profile.cfg.bld  
/u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe: Command not found.  
else  
endif  
mv Makefile Makefile.intel  
mv: ‘Makefile’ and ‘Makefile.intel’ are the same file  
if ( 1 != 0 ) then  
echo \*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
\*\*\* failure in /u/jrwelsh/CMAQ/CMAQ\_REPO/UTIL/bldmake/bldmake\_intel.exe -serial -verbose \*\*\*  
exit 1

Any help would be greatly appreciated! I’m trying to figure out whether I should ignore this issue or try to fix it.

Thanks!

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [July 29, 2019, 1:01pm UTC](https://forum.cmascenter.org/t/icon-not-building/835/15 "2019-07-29T13:01:48Z")

</div>

Hi,  
If you are getting an executable, then ignore the error messages.  
Thanks,  
Liz
