From b497581ce792ca6152e9d787ba55ffa488246d77 Mon Sep 17 00:00:00 2001 From: Satish Balay Date: Wed, 26 Oct 2022 12:33:52 -0500 Subject: pflotran: fix build errors with gfortran@10: (#33527) >> 38 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1) --- var/spack/repos/builtin/packages/pflotran/package.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/pflotran/package.py b/var/spack/repos/builtin/packages/pflotran/package.py index 8807ad5e71..6a042497b9 100644 --- a/var/spack/repos/builtin/packages/pflotran/package.py +++ b/var/spack/repos/builtin/packages/pflotran/package.py @@ -38,3 +38,8 @@ class Pflotran(AutotoolsPackage): @property def parallel(self): return self.spec.satisfies("@xsdk-0.4.0:") + + def flag_handler(self, name, flags): + if "%gcc@10:" in self.spec and name == "fflags": + flags.append("-fallow-argument-mismatch") + return flags, None, None -- cgit v1.2.3-70-g09d2