This issue is reproducible on ANL GCE nodes or Chrysalis with a simple X case.
git clone https://github.com/E3SM-Project/E3SM.git
cd E3SM
git submodule update --init --recursive
cd externals/scorpio
git checkout master
Edit CMakeLists.txt to set PIO_USE_FORTRAN_LEGACY_LIB to ON by default
cd ../../cime/scripts
./create_newcase --case X_f19_g16 --compset X --res f19_g16
cd X_f19_g16
./case.setup
./case.build
Build error on Chrysalis:
E3SM/share/util/shr_pio_mod.F90(2): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PIO]
use pio
------^
Build error on GCE nodes:
E3SM/share/util/shr_pio_mod.F90:2:7:
2 | use pio
| 1
Fatal Error: Cannot open module file 'pio.mod' for reading at (1): No such file or directory
This issue is reproducible on ANL GCE nodes or Chrysalis with a simple X case.
Build error on Chrysalis:
Build error on GCE nodes: