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

Troble Compiling WRF4 Cannot open module file ‘nanmod.mod’ for reading at (1)

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

fernan

New member
Hello everyone,
I'm trying to compile WRF and I'm having some troubles.
First of all I had a problem with mpich and Fortran with the types and searching in Google I found this solution to pass the errors:
export FFLAGS="-w -fallow-argument-mismatch -O2"
And then following the instruction from https://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php and with the configuration 34 and 1 in ./configure. and created View attachment 1
I have tried this changes to configure.wrf " FC = time $(DM_FC) " to " FC = $(DM_FC) " , CPP = /lib/cpp -P -nostdinc " to "CPP = /usr/bin/cpp -P -nostdinc and CFLAGS = ... ", add " -DLANDREAD_STUB " at the end of the CFLAGS option from this post https://forum.mmm.ucar.edu/phpBB3/viewtopic.php?t=370
Then I compile ./compile em_real >& log.compile
I obtained this log View attachment 1 but I had some errors, with the command "cat log.compile | grep -i fatal " I get the fatal errors and I saw this:
Code:
Error Fatal: Cannot open module file ‘nanmod.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_ra_cam_support.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_ra_cam.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_radiation_driver.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_mixactivate.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_mixactivate.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_cu_kfcup.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_ra_cam.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_optional_input.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_ra_cam.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_cu_kfcup.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_mixactivate.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_ra_cam.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_physics_init.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_trajectory.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_radiation_driver.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_em.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_em.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_check_a_mundo.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_wrf_top.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_optional_input.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_initialize_real.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_initialize_real.mod’ for reading at (1): No existe el fichero o el directorio
Error Fatal: Cannot open module file ‘module_initialize_real.mod’ for reading at (1): No existe el fichero o el directorio

I suppose that the first error is the main one. Thus I searched in google for this trouble and I didn't find anything that can help me. I suppose that nanmod.mod does not create in the compilation.

Also I have tried this script https://github.com/SettRaziel/wrf_archlinux and I get the same result.

Then I beg your help to solve this problem.
Thanks

PD: I used Manjaro with 15,5GiB and a processor Intel® Core™ i7-9750H CPU @ 2.60GHz × 12 and gfortran version:
GNU Fortran (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
 
Top