summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/mpark-variant/package.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/mpark-variant/package.py b/var/spack/repos/builtin/packages/mpark-variant/package.py
index 85b9bfb82d..67fd8249de 100644
--- a/var/spack/repos/builtin/packages/mpark-variant/package.py
+++ b/var/spack/repos/builtin/packages/mpark-variant/package.py
@@ -19,5 +19,14 @@ class MparkVariant(CMakePackage):
# Ref.: https://github.com/mpark/variant/pull/73
patch('nvcc.patch', when='@:1.4.0')
- conflicts('%gcc@:4.7')
- conflicts('%clang@:3.5')
+ cxx11_msg = 'MPark.Variant needs a C++11-capable compiler. ' \
+ 'See https://github.com/mpark/variant#requirements'
+ conflicts('%gcc@:4.7', msg=cxx11_msg)
+ conflicts('%clang@:3.5', msg=cxx11_msg)
+
+ conflicts('%gcc@7.3.1',
+ msg='GCC 7.3.1 has a bug that prevents using MPark.Variant. '
+ 'See https://github.com/mpark/variant/issues/43 and '
+ 'https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84785 '
+ 'Please use a different compiler version or another '
+ 'compiler.')