WPS icon indicating copy to clipboard operation
WPS copied to clipboard

Ungrib v3.9 fails to build with certain gfortran versions

Open mgduda opened this issue 8 years ago • 4 comments

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)

mgduda avatar May 31 '17 19:05 mgduda

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 .

mgduda avatar May 31 '17 20:05 mgduda

Hello,

Did anyone solved this issue?

rpedruzzi avatar Oct 06 '20 01:10 rpedruzzi

@rpedruzzi Updating to a newer version of the GNU compilers should help. Which version are you using?

mgduda avatar Oct 06 '20 15:10 mgduda

@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

rpedruzzi avatar Oct 06 '20 15:10 rpedruzzi