summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Leif Fischer <nils.fischer@aei.mpg.de>2022-01-12 15:53:49 +0100
committerGitHub <noreply@github.com>2022-01-12 15:53:49 +0100
commit0e1e705e1550c8f90d68d943c3ef37255cfcd256 (patch)
tree61fa57cc2404ec469a27e260462df00b6db6ee38
parentfaaf38ca7d2df2b7468e387d74ddf6b37fbd63d5 (diff)
downloadspack-0e1e705e1550c8f90d68d943c3ef37255cfcd256.tar.gz
spack-0e1e705e1550c8f90d68d943c3ef37255cfcd256.tar.bz2
spack-0e1e705e1550c8f90d68d943c3ef37255cfcd256.tar.xz
spack-0e1e705e1550c8f90d68d943c3ef37255cfcd256.zip
charmpp: disable pre-7.0.0 macOS builds with clang@7: (#28221)
Charm++ versions below 7.0.0 have build issues on macOS, mainly due to the pre-7.0.0 `VERSION` file conflicting with other version files on the system: https://github.com/UIUC-PPL/charm/issues/2844. Specifically, it conflicts with LLVM's `<version>` header that was added in llvm@7.0.0 to comply with the C++20 standard: https://en.cppreference.com/w/cpp/header/version. The conflict only occurs on case-insensitive file systems, as typically used on macOS machines.
-rw-r--r--var/spack/repos/builtin/packages/charmpp/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/charmpp/package.py b/var/spack/repos/builtin/packages/charmpp/package.py
index 923780256a..3239e215b2 100644
--- a/var/spack/repos/builtin/packages/charmpp/package.py
+++ b/var/spack/repos/builtin/packages/charmpp/package.py
@@ -131,6 +131,16 @@ class Charmpp(Package):
# https://github.com/UIUC-PPL/charm/issues/3181
conflicts("+shared", when="platform=darwin %gcc")
+ # Charm++ versions below 7.0.0 have build issues on macOS, mainly due to the
+ # pre-7.0.0 `VERSION` file conflicting with other version files on the
+ # system: https://github.com/UIUC-PPL/charm/issues/2844. Specifically, it
+ # conflicts with LLVM's `<version>` header that was added in llvm@7.0.0 to
+ # comply with the C++20 standard:
+ # https://en.cppreference.com/w/cpp/header/version. The conflict only occurs
+ # on case-insensitive file systems, as typically used on macOS machines.
+ conflicts("@:6", when="platform=darwin %apple-clang@7:")
+ conflicts("@:6", when="platform=darwin %clang@7:")
+
@property
def charmarch(self):
plat = sys.platform