Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dqwu opened this issue Jul 28, 2023 · 0 comments
Open
Assignees
Labels

Comments

@dqwu
Copy link
Contributor

dqwu commented Jul 28, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants