GlobalArrays/ga

gfortran 10: Type mismatch between actual argument at

Closed this issue · 2 comments

@edoapra build fails on fedora 32 https://koji.fedoraproject.org/koji/taskinfo?taskID=41314561, using the https://github.com/edoapra/fedpkg/blob/210d2d7fa8c5be67a02ee4d8eebe9e5f038a508a/ga/ga.spec spec file

...
libtool: compile:  mpif90 -DHAVE_CONFIG_H -I. -Ima -I./ma -I./LinAlg/lapack+blas -Iglobal/src -I./global/src -I./global/testing -I./pario/dra -I./pario/eaf -I./pario/elio -I./pario/sf -I./ga++/src -Igaf2c -I./gaf2c -I./tcgmsg -I./tcgmsg/tcgmsg-mpi -I./armci/src/include -I./armci/tcgmsg -fdefault-integer-8 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules -c ma/maf.F  -fPIC -o ma/.libs/maf.o
f951: Warning: '-Werror=' argument '-Werror=format-security' is not valid for Fortran
f951: Warning: '-Werror=' argument '-Werror=format-security' is not valid for Fortran
ma/maf.F:31:34:
   29 |       if (f2c_inform_base(MT_BYTE, byte_mb(1), byte_mb(2)) .eq.
      |                                   2
   30 |      $    MA_FALSE) return
   31 |       if (f2c_inform_base(MT_INT, int_mb(1), int_mb(2)) .eq.
      |                                  1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/CHARACTER(*)).
...

See Unidata/netcdf-fortran#212