ICON not building

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!

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.

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

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!

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!

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

Hi,

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

ln -s Makefile.intel Makefile

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!

Oh, I think I just found it! It’s within the bldit_icon.csh file. Thanks!

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

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.

# ln -s Makefile.intel Makefile

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

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.

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!

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