netcdf-fortran icon indicating copy to clipboard operation
netcdf-fortran copied to clipboard

Still unable to build correctly with GNU10

Open afernandezody opened this issue 3 years ago • 4 comments

Hello, Unfortunately I'm still facing issues when compiling with GNU10. I was following the thread #212 and have tried the master branch, but make check is still outputting:

...
make[3]: Entering directory '/opt/praetorium/netcdf-fortran/nf_test'
make[4]: Entering directory '/opt/praetorium/netcdf-fortran/nf_test'
FAIL: nf_test
FAIL: tst_int64
FAIL: tst_f77_v2
FAIL: ftest
FAIL: nf03_test
FAIL: f03test
FAIL: tst03_f77_v2
============================================================================
Testsuite summary for netCDF-Fortran 4.5.4-development
============================================================================
# TOTAL: 7
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  7
# XPASS: 0
# ERROR: 0
============================================================================
See nf_test/test-suite.log
Please report to [email protected]
============================================================================
make[4]: *** [Makefile:982: test-suite.log] Error 1
make[4]: Leaving directory '/opt/praetorium/netcdf-fortran/nf_test'
make[3]: *** [Makefile:1090: check-TESTS] Error 2
make[3]: Leaving directory '/opt/praetorium/netcdf-fortran/nf_test'
make[2]: *** [Makefile:1206: check-am] Error 2
make[2]: Leaving directory '/opt/praetorium/netcdf-fortran/nf_test'
make[1]: *** [Makefile:1208: check] Error 2
make[1]: Leaving directory '/opt/praetorium/netcdf-fortran/nf_test'
make: *** [Makefile:580: check-recursive] Error 1

Thanks.

afernandezody avatar Apr 07 '21 00:04 afernandezody

There is a merge coming shortly that we hope and believe will address many or all of the GNU10 issues. This will be an extension of the work presented in #294 which was discussed today. Can you wait a few weeks until this is complete, and try again?

edwardhartnett avatar Apr 07 '21 01:04 edwardhartnett

Closing until merge is available. Will retest then. Thanks.

afernandezody avatar Apr 07 '21 12:04 afernandezody

OK, you should leave this open until it is fixed.

This will be fixed by #294 (I believe).

However, in the meantime, simply use flag: -fallow-argument-mismatch

Many fortran codes are having to use this flag since the gfortran team introduced this warning.

edwardhartnett avatar May 24 '21 12:05 edwardhartnett

Hi @edwardhartnett, I use the flag "-fallow-argument-mismatch" while compiling a couple of apps and it does its job (of a workaround). However, one app that has netcdf-fortran as a dependency was still complaining about the netcdf-fortran internals (cannot recall the exact error message) and refusing to compile even with the said flag. That's why we hope that the PR will fix the issue. Thanks.

afernandezody avatar May 24 '21 12:05 afernandezody