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

Error while compiling wrf.

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.


New member
Hello everyone. This is my first post here.
When compiling wrf (V4.2.1) with gnu-9.3.0, the following error appears:

/bin/rm -f ESMF_Clock.b
gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -o ESMF_Clock.o -c ESMF_Clock.f
f951: Fatal Error: Reading module ‘esmf_timemod’ at line 1672 column 5: Unexpected EOF
compilation terminated.
make[3]: [Makefile:61: ESMF_Clock.o] Error 1 (ignored)

What am I doing wrong? Thanks.
First, if you haven't already, I would recommend following this compiling tutorial to ensure that your environment is built correctly. Make sure to run all the tests and install everything exactly as is stated to ensure a better chance of success in your compile.

After that, before compiling again, make sure to issue the following commands:

./clean -a
(then choose your configuration)
setenv J "-j 1"
(or if you are using bash, use the command: export J="-j 1")
./compile em_real >& compile.log

If it still fails, please attach your configure.wrf file, along with the compile.log file.