summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-04-16 07:48:19 -0700
committerGitHub <noreply@github.com>2020-04-16 09:48:19 -0500
commit125fc2e611130df7f52916bd41909abdbaed250c (patch)
treeaa9e76bc96ce55161eeb9c2d008f33aa45364af4
parent7c5fc6acea7149a0ff263a435d1a9eab49cace2a (diff)
downloadspack-125fc2e611130df7f52916bd41909abdbaed250c.tar.gz
spack-125fc2e611130df7f52916bd41909abdbaed250c.tar.bz2
spack-125fc2e611130df7f52916bd41909abdbaed250c.tar.xz
spack-125fc2e611130df7f52916bd41909abdbaed250c.zip
MPark.Variant: GCC 7.3.1 Conflict (#16081)
* MPark.Variant: GCC 7.3.1 Conflict Due to an ICE in this specific patch-release of GCC, compile errors in downstream packages should be avoided with a clean conflict. * Fix superfluous spaces Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com> * Fix typo Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-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.')