ornladios / ADIOS

The old ADIOS 1.x code repository. Look for ADIOS2 for new repo
https://csmd.ornl.gov/adios
Other
54 stars 41 forks source link

GFortran 10 Argument Mismatch #206

Open ax3l opened 4 years ago

ax3l commented 4 years ago

Just as in ADIOS2: https://github.com/ornladios/ADIOS2/issues/2228

@michaelkuhn reported an issue in Spack, which indicated that ADIOS needs the Fortran compiler flag -fallow-argument-mismatch flag in order to build with GCC/GFortran 10.

Note:

Using this option is strongly discouraged. It is possible to provide standard-conforming code which allows different types of arguments by using an explicit interface and TYPE(*). 

https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html

Describe the bug Please see https://github.com/spack/spack/pull/16569

To Reproduce s. above

Desktop (please complete the following information):

Additional context See: https://github.com/spack/spack/pull/16569

NAThompson commented 4 years ago

Yeah, I just hit this as well; I couldn't figure out a robust fix. My workaround was just

FCFLAGS="-g -O2 -fallow-argument-mismatch" ./configure

which I suppose is fairly obvious to anyone who works with configure scripts with any regularity. (Not me!)

ax3l commented 4 years ago

Yes, We were wondering if there is an actual change that we can implement in the code to address the raised diagnostics instead of muting it.