From 06f65afdd5e1b2be8274ebfb76821b790b3897e0 Mon Sep 17 00:00:00 2001 From: Kurt Sansom Date: Thu, 21 Jan 2021 17:07:28 -0600 Subject: [PATCH] hdf: build with gcc10 (#20773) --- var/spack/repos/builtin/packages/hdf/package.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/var/spack/repos/builtin/packages/hdf/package.py b/var/spack/repos/builtin/packages/hdf/package.py index 5af6e1fefa..d12aa812fd 100644 --- a/var/spack/repos/builtin/packages/hdf/package.py +++ b/var/spack/repos/builtin/packages/hdf/package.py @@ -144,6 +144,14 @@ def configure_args(self): # We should not specify '--disable-hdf4-xdr' due to a bug in the # configure script. config_args.append('LIBS=%s' % self.spec['rpc'].libs.link_flags) + + # https://github.com/Parallel-NetCDF/PnetCDF/issues/61 + if self.spec.satisfies('%gcc@10:'): + config_args.extend([ + 'FFLAGS=-fallow-argument-mismatch', + 'FCFLAGS=-fallow-argument-mismatch'] + ) + return config_args # Otherwise, we randomly get: