summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@informatik.uni-hamburg.de>2020-06-25 05:49:30 +0200
committerGitHub <noreply@github.com>2020-06-24 22:49:30 -0500
commitcee24fbc9871095e9d817f2c16a3d74401f7b641 (patch)
tree4fb11033fa466ff5108f3ee0e9225ebf7affbbd0
parent8d67279181f81f6053659a79f013b1f6266e3f70 (diff)
downloadspack-cee24fbc9871095e9d817f2c16a3d74401f7b641.tar.gz
spack-cee24fbc9871095e9d817f2c16a3d74401f7b641.tar.bz2
spack-cee24fbc9871095e9d817f2c16a3d74401f7b641.tar.xz
spack-cee24fbc9871095e9d817f2c16a3d74401f7b641.zip
mvapich2: Fix build with gcc@10: (#17114)
-rw-r--r--var/spack/repos/builtin/packages/mvapich2/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mvapich2/package.py b/var/spack/repos/builtin/packages/mvapich2/package.py
index dac9b69c49..0e0ab26a22 100644
--- a/var/spack/repos/builtin/packages/mvapich2/package.py
+++ b/var/spack/repos/builtin/packages/mvapich2/package.py
@@ -199,6 +199,16 @@ class Mvapich2(AutotoolsPackage):
return opts
+ def flag_handler(self, name, flags):
+ if name == 'fflags':
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1795817
+ if self.spec.satisfies('%gcc@10:'):
+ if flags is None:
+ flags = []
+ flags.append('-fallow-argument-mismatch')
+
+ return (flags, None, None)
+
def setup_build_environment(self, env):
# mvapich2 configure fails when F90 and F90FLAGS are set
env.unset('F90')