From b75b0297068339614fbecaef6fe94a40e970d5c0 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Tue, 16 Mar 2021 16:54:40 -0700 Subject: [PATCH] amrex: add gcc 8 conflicts (#22339) --- var/spack/repos/builtin/packages/amrex/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/amrex/package.py b/var/spack/repos/builtin/packages/amrex/package.py index 5d469f64fa..ef846d5483 100644 --- a/var/spack/repos/builtin/packages/amrex/package.py +++ b/var/spack/repos/builtin/packages/amrex/package.py @@ -91,6 +91,11 @@ class Amrex(CMakePackage, CudaPackage, ROCmPackage): conflicts('%apple-clang') conflicts('%clang') + # these versions of gcc have lambda function issues + # see https://github.com/spack/spack/issues/22310 + conflicts('%gcc@8.1.0:8.3.0', when='@21.03') + conflicts('%gcc@8.1.0:8.2.0', when='@21.01:21.02') + # Check options compatibility conflicts('+sundials', when='~fortran', msg='AMReX SUNDIALS support needs AMReX Fortran API (+fortran)')