diff options
author | Denis Davydov <davydden@gmail.com> | 2016-06-19 11:59:29 +0200 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-06-19 11:59:29 +0200 |
commit | cf4a34c657b05bfbb71ec69d1521f265a156de57 (patch) | |
tree | 810e17bb82ab4cdd977ec9161dda793775325a65 | |
parent | 1cc04cff27273bdad8962f2edd854f1d18481545 (diff) | |
download | spack-cf4a34c657b05bfbb71ec69d1521f265a156de57.tar.gz spack-cf4a34c657b05bfbb71ec69d1521f265a156de57.tar.bz2 spack-cf4a34c657b05bfbb71ec69d1521f265a156de57.tar.xz spack-cf4a34c657b05bfbb71ec69d1521f265a156de57.zip |
openmpi: raise an error without Fortran compiler
-rw-r--r-- | var/spack/repos/builtin/packages/openmpi/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 0638628a6c..be3d1342fc 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -121,6 +121,13 @@ class Openmpi(Package): return 'verbs' def install(self, spec, prefix): + # As of 06/2016 there is no mechanism to specify that packages which + # depends on MPI need C or/and Fortran implementation. For now + # require both. + if (self.compiler.f77 is None) or (self.compiler.fc is None): + raise InstallError('OpenMPI requires both C and Fortran ', + 'compilers!') + config_args = ["--prefix=%s" % prefix, "--with-hwloc=%s" % spec['hwloc'].prefix, "--enable-shared", |