Error while compiling wrf.

All topics related to compiling WRF, including environment set-up, and library installation
Post Reply
Posts: 1
Joined: Thu Feb 04, 2021 5:55 pm

Error while compiling wrf.

Post by Jokovich » Sun Feb 07, 2021 5:55 pm

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.

Posts: 2287
Joined: Wed Feb 14, 2018 9:21 pm

Re: Error while compiling wrf.

Post by kwerner » Tue Feb 09, 2021 12:45 am

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:

Code: Select all

./clean -a
(then choose your configuration)

Code: Select all

setenv J "-j 1" 
(or if you are using bash, use the command: export J="-j 1")

Code: Select all

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

Post Reply

Return to “WRF Compiling/Installation”