Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

MPAS v8.2 fails to compile GNU 13.2 Linux64

LouisWicker

New member
Hello,

tonight I am trying to compile the latet release of MPAS v8.2 on my linux64 workstation. The compiler, netCDF, pnetCDF, etc. are all versions I have used before to compile earlier versions of MPAS, as well as WRF and CM1. All from the same compiler configuration.

running: make -f Makefile gnu2 CORE=atmosphere AUTOCLEAN=true

I clearly can see this is a compiler complaining to me about an internal segmentation fault, but I was wondering if you had any suggestions:

make lookup_tables core_physics_init core_physics_mmm core_physics_wrf core_physics_noahmp core_physics
make[5]: Entering directory '/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics'
./checkout_data_files.sh
*** Compatible versions of WRF physics tables appear to already exist; no need to obtain them again ***
make[5]: Nothing to be done for 'core_physics_init'.
(cd physics_mmm; make -f Makefile.mpas all)
make[6]: Entering directory '/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_mmm'
echo "****** compiling physics_mmm ******"
****** compiling physics_mmm ******
make[6]: Leaving directory '/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_mmm'
(cd physics_wrf; make all COREDEF="-Dmpas")
make[6]: Entering directory '/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_wrf'
echo "****** compiling physics_wrf ******"
****** compiling physics_wrf ******
make[6]: Leaving directory '/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_wrf'
(cd physics_noahmp/utility; make all COREDEF="-Dmpas")
make[6]: Entering directory '/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_noahmp/utility'
echo "****** compiling physics_noahmp/utility ******"
****** compiling physics_noahmp/utility ******
make[6]: Leaving directory '/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_noahmp/utility'
(cd physics_noahmp/src; make all COREDEF="-Dmpas")
make[6]: Entering directory '/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_noahmp/src'
echo "****** compiling physics_noahmp/utility ******"
****** compiling physics_noahmp/utility ******
mpif90 -D_MPI -DCORE_ATMOSPHERE -DMPAS_NAMELIST_SUFFIX=atmosphere -DMPAS_EXE_NAME=atmosphere_model -DSINGLE_PRECISION -DMPAS_NATIVE_TIMERS -DMPAS_GIT_VERSION=v8.2.0-dirty -DMPAS_BUILD_TARGET=gnu2 -DMPAS_SMIOL_SUPPORT -DMPAS_USE_MPI_F08 -Dmpas -O3 -ffree-line-length-none -fconvert=big-endian -ffree-form -c SoilMoistureSolverMod.F90 -I/home/louis.wicker/miniconda3/envs/hpc/include -I/home/louis.wicker/miniconda3/envs/hpc/include -I/work/wicker/climate_runs/MPAS-Model/src/external/SMIOL -I/home/louis.wicker/miniconda3/envs/hpc/include -I/home/louis.wicker/miniconda3/envs/hpc/include -I/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_noahmp/drivers/mpas -I/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_noahmp/utility -I/work/wicker/climate_runs/MPAS-Model/src/core_atmosphere/physics/physics_noahmp/src -I../utility -I../../../../framework
f951: internal compiler error: Segmentation fault

Thanks.

(gnu2 == gnu) in the releases Makefile - I changed its name to try another version as a check.

Lou Wicker
 
It looks like the Noah-MP code that is included in MPAS v8.2.0 breaks the GNU 13.2.0 compiler. Specifically, it seems that Fortran ASSOCIATE statements (which as far as I can tell are completely fine) in Noah-MP code cause the gfortran compiler to segfault.

I've been able to successfully compile with the GNU 12.2.0 compilers, so if stepping back to an older version of the GNU compilers would be an option for you, that might be the simplest workaround for now.
 
Top