You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added support for gcc/gfortran 10. The -fallow_argument_mismatch flag is passed to the underlying compiler when the flag is found to be supported. This change has been added to the autotools and cmake based builds. See #212 for more information.
[NOTE: In the above, the option is incorrectly using underscore instead of hyphen.)
The configure and build steps seem to work fine, but running make check without explicitly adding -fallow-argument-mismatch to both FFLAGS and FCFLAGS prior to running ./configure still seems to generate the error. That is, this error occurs
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(1)).
ftest.F:599:72:
559 | call ncapt (ncid, bid, 'validrange', NCBYTE, 2,
| 2
......
599 | call ncapt (ncid, did, 'validrange', NCDOUBLE, 2,
| 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(1)).
make[3]: *** [Makefile:852: ftest.o] Error 1
make[3]: Leaving directory '/tmp/bennetsw/build/netcdf-fortran-4.5.3/nf_test'
make[2]: *** [Makefile:1206: check-am] Error 2
make[2]: Leaving directory '/tmp/bennetsw/build/netcdf-fortran-4.5.3/nf_test'
make[1]: *** [Makefile:1209: check] Error 2
make[1]: Leaving directory '/tmp/bennetsw/build/netcdf-fortran-4.5.3/nf_test'
make: *** [Makefile:581: check-recursive] Error 1
It looks like the Makefile in the nf_test directory is exporting only FCFLAGS = -w -fallow-argument-mismatch but FFLAGS is still being set to only -w. Both need to have -fallow-argument-mismatch.
Hello, this should be addressed in the recent v4.5.4 release, found here. That said, while I am certain this issue was found and addressed, I'll need to confirm that it was in v4.5.4 and isn't currently in the main branch waiting for the upcoming v4.6.0 release. I am on limited connectivity at the moment but I will confirm this has been fixed. Thanks!
To report a non-security related issue, please provide:
netcdf-fortran/4.5.3
Red Hat Enterprise Linux release 8.5 (Ootpa)
Running make check without explicitly setting both FFLAGS and FCFLAGS to include
-fallow-argument-mismatch
still fails.The release notes for netCDF-Fortran 4.5.3 (https://github.com/Unidata/netcdf-fortran/releases/tag/v4.5.3) say that
The configure and build steps seem to work fine, but running
make check
without explicitly adding-fallow-argument-mismatch
to bothFFLAGS
andFCFLAGS
prior to running./configure
still seems to generate the error. That is, this error occursIt appears that @Fan142857 tried to say this in the closed Issue: #212 (comment) perhaps?
It looks like the
Makefile
in thenf_test
directory is exporting onlyFCFLAGS = -w -fallow-argument-mismatch
butFFLAGS
is still being set to only-w
. Both need to have-fallow-argument-mismatch
.Adding
-fallow-argument-mismatch
toFFLAGS
enablesmake check
to complete properly.I am not literate in Autoconf or CMake, so I don't know what to change to have that change generated by
./configure
orcmake
.The text was updated successfully, but these errors were encountered: