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

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

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.

dsahu_fsu

New member
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

  • compile1-15jan.log
    717.8 KB · Views: 55
  • configure.wrf
    20.3 KB · Views: 50
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/wrfv3.9/known-prob-3.9.html
 
View attachment configure.wrfView attachment compile-17Jan.logThanks 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
 
Hi Dipak,
Can you go into your WRF/phys/ directory and issue the following command:
Code:
ls -lsa *.F >& log.test
and please attach that log.test file? Thanks!
 
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 said:
Hi Dipak,
Can you go into your WRF/phys/ directory and issue the following command:
Code:
ls -lsa *.F >& log.test
and please attach that log.test file? Thanks!
 

Attachments

  • log_test.txt
    13.4 KB · Views: 47
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!
 
Top