Openblas needs FC, not F77 (#6435)

fixes #5591
This commit is contained in:
Massimiliano Culpo 2017-11-24 07:15:01 +01:00 committed by GitHub
parent ff4a4fcd9e
commit cde5fdde20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,10 +98,11 @@ def check_compilers(self):
# As of 06/2016 there is no mechanism to specify that packages which # 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 # depends on Blas/Lapack need C or/and Fortran symbols. For now
# require both. # require both.
if self.compiler.f77 is None: if self.compiler.fc is None:
raise InstallError( raise InstallError(
'OpenBLAS requires both C and Fortran compilers!' 'OpenBLAS requires both C and Fortran compilers!'
) )
# Add support for OpenMP # Add support for OpenMP
if (self.spec.satisfies('threads=openmp') and if (self.spec.satisfies('threads=openmp') and
self.spec.satisfies('%clang')): self.spec.satisfies('%clang')):
@ -116,7 +117,7 @@ def check_compilers(self):
@property @property
def make_defs(self): def make_defs(self):
# Configure fails to pick up fortran from FC=/abs/path/to/f77, but # Configure fails to pick up fortran from FC=/abs/path/to/fc, but
# works fine with FC=/abs/path/to/gfortran. # works fine with FC=/abs/path/to/gfortran.
# When mixing compilers make sure that # When mixing compilers make sure that
# $SPACK_ROOT/lib/spack/env/<compiler> have symlinks with reasonable # $SPACK_ROOT/lib/spack/env/<compiler> have symlinks with reasonable
@ -124,7 +125,7 @@ def make_defs(self):
make_defs = [ make_defs = [
'CC={0}'.format(spack_cc), 'CC={0}'.format(spack_cc),
'FC={0}'.format(spack_f77), 'FC={0}'.format(spack_fc),
'MAKE_NO_J=1' 'MAKE_NO_J=1'
] ]