Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gfortran 10: Type mismatch between actual argument at #157

Closed
marcindulak opened this issue Feb 1, 2020 · 2 comments
Closed

gfortran 10: Type mismatch between actual argument at #157

marcindulak opened this issue Feb 1, 2020 · 2 comments

Comments

@marcindulak
Copy link

@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

@jeffhammond
Copy link
Member

jeffhammond commented Feb 1, 2020 via email

@marcindulak
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants