E3SM-Project / scorpio

A high-level Parallel I/O Library for structured grid applications
Other
21 stars 16 forks source link

E3SM csm_share failed to build shr_pio_mod.F90 with legacy Fortran interface #531

Open dqwu opened 1 year ago

dqwu commented 1 year ago

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