https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119995
--- Comment #3 from edison <edison_chan_gz at hotmail dot com> --- (In reply to Andrew Pinski from comment #2) > erf is not part of the Fortran 2003 standard, so -std=f2003 won't work. > Either use -std=f2008 or remove it or use -fall-intrinsics . > > See https://gcc.gnu.org/onlinedocs/gfortran/ERF.html > > see > https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html#index- > fall-intrinsics Thanks for you reply, the building of 521.wrf_r works after add -fall-intrinsics.