diff options
author | Denis Davydov <davydden@gmail.com> | 2016-06-19 11:59:10 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-06-19 11:59:10 +0200 |
commit | 1cc04cff27273bdad8962f2edd854f1d18481545 (patch) | |
tree | 9489fbd88d375fbfd7a10c8491e03f936ba91ba2 | |
parent | f9efb746d7f547d972fbe3d268b3aa67df478e55 (diff) | |
download | spack-1cc04cff27273bdad8962f2edd854f1d18481545.tar.gz spack-1cc04cff27273bdad8962f2edd854f1d18481545.tar.bz2 spack-1cc04cff27273bdad8962f2edd854f1d18481545.tar.xz spack-1cc04cff27273bdad8962f2edd854f1d18481545.zip |
openblas: raise an error without Fortran compiler
-rw-r--r-- | var/spack/repos/builtin/packages/openblas/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index 22e49daaa7..d09ebd6739 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -48,6 +48,13 @@ class Openblas(Package): patch('make.patch') def install(self, spec, prefix): + # As of 06/2016 there is no mechanism to specify that packages which + # depends on Blas/Lapack need C or/and Fortran symbols. For now + # require both. + if self.compiler.f77 is None: + raise InstallError('OpenBLAS requires both C and Fortran ', + 'compilers!') + # Configure fails to pick up fortran from FC=/abs/path/to/f77, but # works fine with FC=/abs/path/to/gfortran. # When mixing compilers make sure that |