[Solved]Problem with compiling WRF_Chem V3.8.1

Posts related to the installation of WRF Chemistry

[Solved]Problem with compiling WRF_Chem V3.8.1

Postby Stella@88 » Sun Sep 29, 2019 2:57 am

Hi everyone,

I am trying to compile WRF3.8.1 with WRF-Chem3.8.1, but I got some errors. I think I build my Libraries property and set the environment variables. Also, I can compile WRF-Chem v3.5, however, I cannot compile v3.8. Here is the error message.

module_ra_rrtmg_lwf.f90:8141:0:
use rrlw_ref_f, only : chi_mls
internal compiler error: in gfc_trans_use_stmts, at fortran/trans-decl.c:5111
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
0.44user 0.03system 0:01.08elapsed 44%CPU (0avgtext+0avgdata 50084maxresident)k
5112inputs+400outputs (3major+28149minor)pagefaults 0swaps
make[3]: [module_ra_rrtmg_lwf.o] Error 1 (ignored)

ar: module_ra_rrtmg_lwf.o: No such file or directory
make[2]: [physics] Error 1 (ignored)

libwrflib.a(chemics_init.o):chemics_init.f90:(.text+0x1c366): more undefined references to `__module_cam_support_MOD_numgas_mam' follow
collect2: error: ld returned 1 exit status
0.33user 0.29system 0:00.83elapsed 75%CPU (0avgtext+0avgdata 102716maxresident)k
2360inputs+94920outputs (3major+45475minor)pagefaults 0swaps
make[1]: [em_wrf] Error 1 (ignored)

module_cam_mam_calcsize.f90:(.text+0x8130): undefined reference to `__module_cam_support_MOD_endrun'
collect2: error: ld returned 1 exit status
0.34user 0.26system 0:00.96elapsed 62%CPU (0avgtext+0avgdata 94476maxresident)k
8inputs+85272outputs (0major+43249minor)pagefaults 0swaps
make[1]: [em_real] Error 1 (ignored)

module_cam_mam_calcsize.f90:(.text+0x8130): undefined reference to `__module_cam_support_MOD_endrun'
collect2: error: ld returned 1 exit status
0.37user 0.23system 0:01.38elapsed 44%CPU (0avgtext+0avgdata 93212maxresident)k
0inputs+83768outputs (0major+42920minor)pagefaults 0swaps
make[1]: [em_real] Error 1 (ignored)

module_cam_mam_wetscav.f90:(.text+0x3a3a): undefined reference to `__module_data_cam_mam_asect_MOD_lptr_chem_to_qqcw'
am_asect_MOD_lptr_chem_to_qqcw'
collect2: error: ld returned 1 exit status
0.42user 0.28system 0:01.27elapsed 55%CPU (0avgtext+0avgdata 94312maxresident)k
0inputs+85040outputs (0major+43208minor)pagefaults 0swaps
make[1]: [em_real] Error 1 (ignored)
make[1]: Leaving directory `/students/QZheng/WRF3.8.1/WRFV3/main'


Are there any suggestions or any solutions about that?
Thank you very much in advance
Stella
Last edited by Stella@88 on Thu Oct 03, 2019 12:15 am, edited 1 time in total.
Stella@88
 
Posts: 10
Joined: Wed Feb 27, 2019 12:36 pm

Re: Problem with compiling WRF_Chem V3.8.1

Postby Stella@88 » Thu Oct 03, 2019 12:15 am

I have solved this issue. This is likely the same sort of problem as is mentioned here (3rd problem on the page): http://www2.mmm.ucar.edu/wrf/users/wrfv ... 9.1.1.html

The problem is that I am using a new GNU compiler (GCC 8.2.0) with an old WRF code. The fix is also similar. I attempted to correct the module_ra_rrtmg_lwf.F file for V3.8.1, and changed "use rrlw_ref_f, only : chi_mls" to "use rrlw_ref_f". Place the correct one in WRFV3/phys/ directory and then ./clean -a, reconfigure, and recompile.

I hope this information will be helpful.

Stella
Stella@88
 
Posts: 10
Joined: Wed Feb 27, 2019 12:36 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests