From 3cfc1dbc14ee5d11e830ace8be3c9c2c4747afb1 Mon Sep 17 00:00:00 2001 From: Kai Germaschewski Date: Mon, 28 Jun 2021 05:33:23 -0400 Subject: pfunit: fix gcc10 +mpi (#23878) Instead of refusing to build +mpi with gcc10, add what I guess is now the standard workaround, ie., `-fallow-argument-mismatch`. Getting this into pfunit's cmake-based but kinda non-standard build isi a bit ugly, but you gotta do what you gotta do... --- var/spack/repos/builtin/packages/pfunit/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/pfunit/package.py b/var/spack/repos/builtin/packages/pfunit/package.py index 7aea55a1eb..2ffbfced64 100644 --- a/var/spack/repos/builtin/packages/pfunit/package.py +++ b/var/spack/repos/builtin/packages/pfunit/package.py @@ -49,7 +49,6 @@ class Pfunit(CMakePackage): # See https://github.com/Goddard-Fortran-Ecosystem/pFUnit/pull/179 conflicts("+shared", when="@4.0.0:") conflicts("+use_comm_world", when="~mpi") - conflicts('+mpi', when='@:3.99.99 %gcc@10.0.0:') patch("mpi-test.patch", when="@:3.99.99 +use_comm_world") def patch(self): @@ -78,6 +77,9 @@ class Pfunit(CMakePackage): self.define_from_variant('OPENMP', 'openmp'), '-DMAX_RANK=%s' % spec.variants['max_array_rank'].value] + if self.spec.satisfies('%gcc@10:'): + args.append('-DCMAKE_Fortran_FLAGS_DEBUG=-g -O2 -fallow-argument-mismatch') + if spec.satisfies('@4.0.0:'): args.append('-DSKIP_MPI=%s' % ('YES' if '~mpi' in spec else 'NO')) else: -- cgit v1.2.3-60-g2f50