Skip to content

WRF V4.1 Known Problems

Kelly Werner edited this page Apr 12, 2019 · 2 revisions

Newer GNU Internal Compiler Error with Bounds Checking (Posted June 8, 2018)

Problem: Starting with GNU/6.4.1 and continuing through (at least) GNU/7.3.0, the fast RRTMG scheme is not able to compile when using the "-d" or "-D" options on the configure command. Starting with GNU/8.1.0, the code is able to build with the debug options.

./configure -D

Below is the message users will see after the build:

module_ra_rrtmg_swf.f90:5612:0:

use rrsw_kg21_f, only : kao, kbo, selfrefo, forrefo, sfluxrefo, &

internal compiler error: in gfc_trans_use_stmts, at fortran/trans-decl.c:4920

module_ra_rrtmg_swf.f90:5612:0: internal compiler error: Abort trap: 6 gfortran: internal compiler error: Abort trap: 6 (program f951)

Solution: Currently, the solution is to remove the offending code (RRTMG fast for longwave and shortwave). After the user constructs the configure.wrf file (after the configure step, and before the compile step), the configure.wrf file is edited. Remove this line:

-DBUILD_RRTMG_FAST=1 \

Then the code may be built as usual. Note that in this condition, the WRF code may not be used to run either of the fast RRTMG schemes.