From 5ed5c55ebdc5188d4578169475059b4482580e66 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Mon, 11 May 2020 19:55:36 +0200 Subject: mpich: Fix build with gcc@10: (#16568) --- var/spack/repos/builtin/packages/mpich/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py index 878abc6b5c..7b8c807cce 100644 --- a/var/spack/repos/builtin/packages/mpich/package.py +++ b/var/spack/repos/builtin/packages/mpich/package.py @@ -156,6 +156,10 @@ spack package at this time.''', env.unset('F90') env.unset('F90FLAGS') + # https://bugzilla.redhat.com/show_bug.cgi?id=1795817 + if self.spec.satisfies('%gcc@10:'): + env.set('FFLAGS', '-fallow-argument-mismatch') + def setup_dependent_build_environment(self, env, dependent_spec): # On Cray, the regular compiler wrappers *are* the MPI wrappers. if 'platform=cray' in self.spec: -- cgit v1.2.3-70-g09d2