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

Fatal Error: Cannot read module file ‘mpas_stack.mod’

Hello,

When trying to compile MPAS I got the following error:

Code:
---- GENERATING IMMUTABLE STREAMS ----
mpas_geotile_manager.F:12:8:

     use mpas_stack
        1
Fatal Error: Cannot read module file ‘mpas_stack.mod’ opened at (1), because it was created by a different version of GNU Fortran
compilation terminated.
make[3]: *** [mpas_geotile_manager.o] Error 1
make[2]: *** [dycore] Error 2
make[1]: *** [mpas_main] Error 2
make: *** [gfortran] Error 2

gcc version (as well as gfortran and mpicc) is 8.5.0:

Code:
(base) [danilo.souza@sdumont14 MPAS-BR]$ gcc --version
gcc (GCC) 8.5.0

I attached the log file.

Any help is appreciated!
 

Attachments

  • log_build.txt
    18 KB · Views: 1
Many things could be the culprit here. The simplest first step would be to run the make clean CORE=${YOUR_CORE} command and re-run your make ${YOUR_TARGET} CORE=${YOUR_CORE} ... command. Ensure that you are using the same compiler(s) and software libraries between builds and when you attempt to run this core.

Based on the file you attached, this seems to be a "continue build" and not a build in a clean or fresh copy of the MPAS-Model repository. Something may have changed in your software environment since the last time you attempted a build.
 
Firstly, I want to thank you for the quick response. It worked perfectly, thank you! Although I'm a bit embarrassed for making such a basic mistake (forgetting to use make clean), I'm glad this will be on record in case someone else faces this issue in the future.
 
Top