From a8c58551ae0c41ba1f7d200f09b7384f9250aa46 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 28 Mar 2017 16:14:12 +0300 Subject: [PATCH] openblas: raise an error when using unsupported Apple clang (#3577) --- var/spack/repos/builtin/packages/openblas/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index b6a81c2055..bfa5a16b42 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -76,6 +76,12 @@ def check_compilers(self): 'OpenBLAS does not support OpenMP with clang!' ) + spec = self.spec + if spec.satisfies('%clang@8.1.0:') and spec.satisfies('@:0.2.19'): + raise InstallError( + 'OpenBLAS @:0.2.19 does not build with Apple clang@8.1.0:' + ) + @property def make_defs(self): # Configure fails to pick up fortran from FC=/abs/path/to/f77, but