gfortran 10: Type mismatch between actual argument at
Closed this issue · 2 comments
marcindulak commented
@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(*)).
...
jeffhammond commented
See https://lists.mpich.org/pipermail/discuss/2020-January/005863.html. Until there’s consensus that GCC 10 is actually doing the right thing here and every other project is wrong, the solution should be to disable the error message.
marcindulak commented
This has been fixed in https://github.com/GlobalArrays/ga/releases/tag/v5.7.1