Error in MPI compliation with GNU compilers >= 10 and debug options
I'm opening this at @jme52 's request, being related to previous issue #103 (closed).
When attempting a SIESTA compilation with GNU compilers >= 10.0, I get type mismatch errors during the MPI interface compilation. However, adding -fallow-argument-mismatch
does not fix the issue if the -pedantic
option is also present.
Take this output for example:
mpif90 -c -fPIC -g -O1 -DMPI_TIMING -fbacktrace -fcheck=all -pedantic -Wunused -Wuninitialized -fallow-argument-mismatch -I. Interfaces.f90
Interfaces.f90:1541:12:
769 | & SENDBUF, RECVBUF, COUNT, DATATYPE, OP, COMM, IERROR)
| 2
......
1541 | & SENDBUF, RECVBUF, COUNT, DATATYPE, OP, COMM, IERROR)
| 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(4)/REAL(4)).
GCC version is 10.3.0, and I'm also uploading my arch.make file for further reference. These issues are not present when using GCC 9 or 8 and the exact same libraries and arch.make .
Cheers!