spedas / bleeding_edge

IDL-based Space Physics Environment Data Analysis Software (bleeding edge)
http://www.spedas.org
Other
7 stars 0 forks source link

Failed compilations in CDF library under RHEL 9 #104

Closed jameswilburlewis closed 11 months ago

jameswilburlewis commented 11 months ago

When testing compilation of the tmtools package on themis_vm9, there were failures compiling some FORTRAN code (compilation stopped after qstif.f, the first file with errors):

gfortran -w -fsecond-underscore -c qst2if.f
qst2if.f:127:44:

  127 |         STATUS = CDF_LIB    (CREATE_, CDF_, CDFNAME, NUM_DIMS,
      |                                            1
......
  799 |           STATUS2 = CDF_LIB (SELECT_, CDF_STATUS_, STATUS,
      |                                                        2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(512)/INTEGER(4)).
qst2if.f:134:45:

  134 |             STATUS = CDF_LIB   (OPEN_, CDF_, CDFNAME, ID,
      |                                             1
......
  799 |           STATUS2 = CDF_LIB (SELECT_, CDF_STATUS_, STATUS,
      |                                                        2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(512)/INTEGER(4)).

etc.

This was on RHEL 9, gfortran version 11.3.1.

Compilation was successful under RHEL 8, gfortran 8.5.0

Hopefully the CDF developers will have a quick fix. If not resolved, this will block us from using RHEL 9 in the THEMIS SOC.

jameswilburlewis commented 11 months ago

This seems to be fixed in the CDF version 3.9.0 library code.