Ungrib v3.9 fails to build with certain gfortran versions
With some versions of the gfortran compiler, users have reported build failures of WPS v3.9:
gfortran -c -ffree-form -O -fconvert=big-endian -frecord-marker=4 read_namelist.f90
read_namelist.f90:72.25:
add_lvls, new_plvl, interp_type
1
Error: NAMELIST attribute conflicts with ALLOCATABLE attribute in 'new_plvl' at (1)
read_namelist.f90:238.20:
read(10,NML=ungrib,END=100)
1
Error: Symbol 'ungrib' at (1) must be a NAMELIST group name
make[1]: [read_namelist.o] Error 1 (ignored)
It's apparently fuzzy as to whether the use of allocatable arrays in namelist is valid in F2003, but it should be valid in F2008, if I'm reading this discussion correctly: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43062 .
Hello,
Did anyone solved this issue?
@rpedruzzi Updating to a newer version of the GNU compilers should help. Which version are you using?
@mgduda I am using gcc 4.4.7, the version which comes with CentOS. I am compiling a newer version of gcc right now. It is taking a while to finish. As soon as it finishes to compile, I will try to compile WRF/WPS again and I will write the result here.
Thank you for your reply. Regards