summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>2021-10-08 02:25:51 +0200
committerGitHub <noreply@github.com>2021-10-08 00:25:51 +0000
commit449a5832c8d6561f1bc75defd3fcfe527d887b5c (patch)
tree63b7a5370c1840180f51750f21c4063827966c42
parent28529f9eaf59a0ad98eeecd07d3572fcb96057c4 (diff)
downloadspack-449a5832c8d6561f1bc75defd3fcfe527d887b5c.tar.gz
spack-449a5832c8d6561f1bc75defd3fcfe527d887b5c.tar.bz2
spack-449a5832c8d6561f1bc75defd3fcfe527d887b5c.tar.xz
spack-449a5832c8d6561f1bc75defd3fcfe527d887b5c.zip
llvm: llvm@13+libcxx needs a very recent C++ compiler (#26584)
libc++-13 does not support %gcc@:10, see: https://bugs.llvm.org/show_bug.cgi?id=51359#c1 https://libcxx.llvm.org/#platform-and-compiler-support says: - GCC 11 - latest stable release per GCC’s release page - Clang: 11, 12 - latest two stable releases per LLVM’s release page - AppleClang 12 - latest stable release per Xcode’s release page
-rw-r--r--var/spack/repos/builtin/packages/llvm/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py
index cca0922dcd..f945248230 100644
--- a/var/spack/repos/builtin/packages/llvm/package.py
+++ b/var/spack/repos/builtin/packages/llvm/package.py
@@ -197,6 +197,15 @@ class Llvm(CMakePackage, CudaPackage):
conflicts("%gcc@8:", when="@:5")
conflicts("%gcc@:5.0", when="@8:")
+ # libc++ of LLVM13, see https://libcxx.llvm.org/#platform-and-compiler-support
+ # @13 does not support %gcc@:10 https://bugs.llvm.org/show_bug.cgi?id=51359#c1
+ # GCC 11 - latest stable release per GCC release page
+ # Clang: 11, 12 - latest two stable releases per LLVM release page
+ # AppleClang 12 - latest stable release per Xcode release page
+ conflicts("%gcc@:10", when="@13:+libcxx")
+ conflicts("%clang@:10", when="@13:+libcxx")
+ conflicts("%apple_clang@:11", when="@13:+libcxx")
+
# OMP TSAN exists in > 5.x
conflicts("+omp_tsan", when="@:5")