Compile errors for MPAS-A 8.4.1 init_atmosphere on Derecho

jaredlee

New member
I'm trying to walk through the Virtual 2026 MPAS Tutorial slides. After loading the specified modules and cloning MPAS-A (8.4.1), I'm running into compilation errors for the init_atmosphere component. Here's my environment:

Code:
Currently Loaded Modules:
  1) ncarenv/24.12 (S)   3) gcc/12.4.0            5) libfabric/1.15.2.0   7) parallel-netcdf/1.14.0   9) netcdf/4.9.2
  2) craype/2.7.31       4) ncarcompilers/1.0.0   6) cray-mpich/8.1.29    8) hdf5/1.12.3             10) ncview/2.1.9

This is the command I run to attempt to compile init_atmosphere:

Code:
(mpas_env) jaredlee@derecho4:/glade/work/jaredlee/programs/MPAS-Model> qcmd -A ${PBS_ACCOUNT} -- make -j8 gnu CORE=init_atmosphere > compile.log.init_atmosphere

I get illegal character errors, and here's the relevant portion leading into the errors I'm getting (I've also attached the full log file):

Code:
mpif90 -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -std=f2008 -fimplicit-none -O3 -ffree-line-length-none -fconvert=big-endian -ffree-form -c mpas_kind_types.F -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I/glade/work/jaredlee/programs/MPAS-Model/src/external/SMIOL -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I/glade/work/jaredlee/programs/MPAS-Model/src/external/esmf_time_f90
rm -f mpas_c_interfacing.o mpas_c_interfacing.mod
make[6]: Entering directory '/glade/work/jaredlee/programs/MPAS-Model/src/external/ezxml'
gcc -O3 -DSINGLE_PRECISION  -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -c ezxml.c -o ezxml_tools.o
rm -f mpas_string_utils.o mpas_string_utils.mod
mpif90 -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -std=f2008 -fimplicit-none -O3 -ffree-line-length-none -fconvert=big-endian -ffree-form -c mpas_c_interfacing.F -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I/glade/work/jaredlee/programs/MPAS-Model/src/external/SMIOL -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I/glade/work/jaredlee/programs/MPAS-Model/src/external/esmf_time_f90
mpif90 -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -std=f2008 -fimplicit-none -O3 -ffree-line-length-none -fconvert=big-endian -ffree-form -c mpas_string_utils.F -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I/glade/work/jaredlee/programs/MPAS-Model/src/external/SMIOL -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I/glade/work/jaredlee/programs/MPAS-Model/src/external/esmf_time_f90
mpicc -O3 -DSINGLE_PRECISION -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I../external/ezxml -c regex_matching.c
mpicc -O3 -DSINGLE_PRECISION -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I../external/ezxml -c random_id.c
mpicc -O3 -DSINGLE_PRECISION -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I../external/ezxml -c pool_hash.c
mpicc -O3 -DSINGLE_PRECISION -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I../external/ezxml -c xml_stream_parser.c
ifx: command line warning #10006: ignoring unknown option '-std=f2008'
ifx: command line warning #10006: ignoring unknown option '-fimplicit-none'
ifx: command line warning #10006: ignoring unknown option '-ffree-line-length-none'
ifx: command line warning #10006: ignoring unknown option '-fconvert=big-endian'
ifx: command line warning #10006: ignoring unknown option '-ffree-form'
ifx: command line warning #10006: ignoring unknown option '-std=f2008'
ifx: command line warning #10006: ignoring unknown option '-fimplicit-none'
ifx: command line warning #10006: ignoring unknown option '-ffree-line-length-none'
ifx: command line warning #10006: ignoring unknown option '-fconvert=big-endian'
ifx: command line warning #10006: ignoring unknown option '-ffree-form'
mpicc -O3 -DSINGLE_PRECISION -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I../external/ezxml -c ptscotch_interface.c
mpicc -O3 -DSINGLE_PRECISION -D_MPI -DCORE_INIT_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=init_atmosphere -DMPAS_EXE_NAME=init_atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.4.1 -DMPAS_BUILD_TARGET=gnu -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -I/glade/u/apps/derecho/25.10/spack/opt/spack/netcdf/4.9.3/intel-oneapi-compilers/2025.2.1/2t5o/include -I/glade/u/apps/derecho/25.10/spack/opt/spack/parallel-netcdf/1.14.1/openmpi/5.0.9/intel-oneapi-compilers/2025.2.1/vdna/include -I../external/ezxml -c stream_inquiry.c
mpas_kind_types.F(20): error #5149: Illegal character in statement label field  [m]
module mpas_kind_typeseger
^
mpas_kind_types.F(20): error #5149: Illegal character in statement label field  [o]
module mpas_kind_typeseger
-^
mpas_kind_types.F(20): error #5149: Illegal character in statement label field  [d]
module mpas_kind_typeseger
--^
mpas_kind_types.F(20): error #5149: Illegal character in statement label field  [u]
module mpas_kind_typeseger
---^
mpas_kind_types.F(20): error #5149: Illegal character in statement label field  [l]
module mpas_kind_typeseger
----^
mpas_kind_types.F(20): error #5118: First statement in file must not be continued
module mpas_kind_typeseger
-----^

Can anyone provide some guidance why this is failing, despite following the Tutorial instructions exactly on Derecho?

Jared
 

Attachments

The error message suggests that the Intel oneAPI Fortran compiler (ifx) is being used, despite the fact that you've loaded the gcc/12.4.0 module and are building MPAS using the gnu build target. Could you try cleaning and compiling again directly on the login node, without qcmd? Perhaps it's the case that there's something in your .bash_profile that's switching to the Intel compilers when the batch session starts up to run your qcmd arguments?
 
Thanks, Michael—compiling directly on the head node worked to build CORE=init_atmosphere. (And I was also just able to build CORE=atmosphere on the head node, too.) I did notice when I tried to compile with qcmd that it was trying to use ifx despite my trying to use a gnu build, so I knew something screwy was happening.

For future reference, is there a way to use qcmd where it inherits the environment of the terminal session from which I executed the qcmd command? A Google search result suggested adding the -V option (i.e., qcmd -V -A ${PBS_ACCOUNT} -- make -j8 gnu CORE=init_atmosphere), but that didn't have any tangible effect. Right now my ./bash_profile loads intel compilers for my default environment (and I realize it's probably not best-practice to load a bunch of modules in my ./bash_profile, but that's what I've always done...).

Jared
 
Last edited:
Back
Top