WRFV3.9 compilation error on Ubuntu 18.04 LTS with gfortran-7.4

All topics related to compiling WRF, including environment set-up, and library installation
Post Reply
dsahu_fsu
Posts: 2
Joined: Wed Jan 15, 2020 11:43 am

WRFV3.9 compilation error on Ubuntu 18.04 LTS with gfortran-7.4

Post by dsahu_fsu » Wed Jan 15, 2020 6:02 pm

While compiling WRFV3.9 code on Ubuntu 18.04 LTS with GNU gfortran version 7.4.0, it was not successfully creating the wrf.exe, real.exe, ndown.exe and tc.exe files. The following error messages are appeared during the compilation.

Error: Size of ‘put’ argument of ‘random_seed’ intrinsic at (1) too small (12/33)
module_cu_g3.f90:3221:41:

call random_seed (PUT=seed)
1
Error: Size of ‘put’ argument of ‘random_seed’ intrinsic at (1) too small (12/33)
module_cu_g3.f90:3236:41:

call random_seed (PUT=seed)
1
Error: Size of ‘put’ argument of ‘random_seed’ intrinsic at (1) too small (12/33)
Command exited with non-zero status 1
0.08user 0.00system 0:00.09elapsed 100%CPU (0avgtext+0avgdata 24992maxresident)k
0inputs+8outputs (0major+6779minor)pagefaults 0swaps
../configure.wrf:341: recipe for target 'module_cu_g3.o' failed
make[3]: [module_cu_g3.o] Error 1 (ignored)
.........................................................
.........................................................
Fatal Error: Can't open module file ‘module_cu_g3.mod’ for reading at (1): No such file or directory
compilation terminated.
Command exited with non-zero status 1
0.54user 0.00system 0:00.55elapsed 100%CPU (0avgtext+0avgdata 50400maxresident)k
0inputs+8outputs (0major+15464minor)pagefaults 0swaps
../configure.wrf:533: recipe for target 'module_physics_init.o' failed
make[3]: [module_physics_init.o] Error 1 (ignored)

Appreciate any help and suggestions on these errors and solve it for successful compilation.

The compile.log and configure.wrf files are attached here for your reference and diagnosis.

Thanks
Dipak
Attachments
configure.wrf
(20.33 KiB) Downloaded 24 times
compile1-15jan.log
(717.77 KiB) Downloaded 29 times

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

Re: WRFV3.9 compilation error on Ubuntu 18.04 LTS with gfortran-7.4

Post by kwerner » Thu Jan 16, 2020 7:53 pm

Hi Dipak,
Take a look at this page of known problems. The error you are seeing is listed about halfway down the page, along with a file that should correct the problem:
https://www2.mmm.ucar.edu/wrf/users/wrf ... b-3.9.html
NCAR/MMM

dsahu_fsu
Posts: 2
Joined: Wed Jan 15, 2020 11:43 am

Re: WRFV3.9 compilation error on Ubuntu 18.04 LTS with gfortran-7.4

Post by dsahu_fsu » Fri Jan 17, 2020 4:09 pm

configure.wrf
configure file
(20.34 KiB) Downloaded 29 times
compile-17Jan.log
compile log file
(711.31 KiB) Downloaded 25 times
Thanks a lot for the helping hand.
I just tried your suggested steps and download and replace the fixed version of the file "" module_cu_g3.F" under /phys/ folder. But still having errors while compiling the WRFV3.9 code: The errors are something like below:
*************************************************
f951: Warning: Nonexistent include directory ‘/root/WRF/WRFV3.9/chem’ [-Wmissing-include-dirs]
module_cu_g3.f90:1:1:

./._module_cu_g3.F
1
Error: Invalid character in name at (1)
Command exited with non-zero status 1
0.08user 0.02system 0:00.11elapsed 97%CPU (0avgtext+0avgdata 25756maxresident)k
0inputs+32outputs (0major+7383minor)pagefaults 0swaps
../configure.wrf:341: recipe for target 'module_cu_g3.o' failed
make[3]: [module_cu_g3.o] Error 1 (ignored)
rm -f module_cu_kf.o
.........................
..........................
f951: Warning: Nonexistent include directory ‘/root/WRF/WRFV3.9/chem’ [-Wmissing-include-dirs]
f951: Warning: Nonexistent include directory ‘/root/WRF/WRFV3.9/chem’ [-Wmissing-include-dirs]
1.96user 0.09system 0:02.05elapsed 100%CPU (0avgtext+0avgdata 211464maxresident)k
0inputs+416outputs (0major+62353minor)pagefaults 0swaps
2.01user 0.04system 0:02.06elapsed 99%CPU (0avgtext+0avgdata 126608maxresident)k
0inputs+2960outputs (0major+39669minor)pagefaults 0swaps
make[3]: Leaving directory '/root/WRF/WRFV3.9/phys'
ar: `u' modifier ignored since `D' is the default (see `U')
ar: module_cu_g3.o: No such file or directory
Makefile:207: recipe for target 'physics' failed
make[2]: [physics] Error 1 (ignored)

*********************
Here I have attached the configure.wrf and compile.log files for your reference.

Appreciate your help to resolve the above errors.

Thanks
Dipak

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

Re: WRFV3.9 compilation error on Ubuntu 18.04 LTS with gfortran-7.4

Post by kwerner » Tue Jan 21, 2020 7:13 pm

Hi Dipak,
Can you go into your WRF/phys/ directory and issue the following command:

Code: Select all

ls -lsa *.F >& log.test
and please attach that log.test file? Thanks!
NCAR/MMM

Luyikeka
Posts: 1
Joined: Sun Jan 17, 2021 7:07 pm

Re: WRFV3.9 compilation error on Ubuntu 18.04 LTS with gfortran-7.4

Post by Luyikeka » Sun Jan 17, 2021 9:00 pm

Hi Kwerner,

I met same problem when I compiled WRF. I followed your steps, and I still can not solve the error.
Here I attached my log.test file which you can refer to.
Look forward for your reply and further help.

Yijuan

kwerner wrote:
Tue Jan 21, 2020 7:13 pm
Hi Dipak,
Can you go into your WRF/phys/ directory and issue the following command:

Code: Select all

ls -lsa *.F >& log.test
and please attach that log.test file? Thanks!
Attachments
log_test.txt
(13.35 KiB) Downloaded 12 times

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

Re: WRFV3.9 compilation error on Ubuntu 18.04 LTS with gfortran-7.4

Post by kwerner » Wed Jan 20, 2021 12:50 pm

Yijuan,
Are you also using version 3.9 of WRF, along with Ubuntu 18.04 and gfortran 7.4? Can you please attach your compile log, along with your configure.wrf file? Please also tell me the steps you've taken so far. Thanks!
NCAR/MMM

Post Reply

Return to “WRF Compiling/Installation”