gcc/11 Compilation Issue #1584
Replies: 1 comment 1 reply
-
thanks for bringing this up! yes, from newer GCC 10 compilers onward, they introduced this stricter argument checking in single files which leads to an issue with the MPI calls. until GCC and MPI folks figure out how to fix this in upcoming versions, one obvious workaround is to use a GCC compiler version < 10. if you have such an older module still available on your Cray system, like
and re-configure/compile as usual without special flags. for newer GCC versions, there is either the
or with the
give it a try and let me know if this solves your issue. i hope that GCC and MPI will work this out in future releases, otherwise, we have to put every MPI wrapper call into its own file, which would be a bit annoying... |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am attempting to recompile specfem on a machine that recently updated to gcc/11 from gcc/8. I've been getting inundated in the following errors before the compilation exits out:
Looking around online, I've seen suggestions to append FCFLAGS="-w -fallow-argument-mismatch -O2" or removing -Werror when configuring, but this has not resolved the error for me. Has anyone else encountered this issue? For reference, my configuration command is:
It is a cray machine, but I am using a gnu programming environment.
Thank you,
Ian
Beta Was this translation helpful? Give feedback.
All reactions