From 0e1e705e1550c8f90d68d943c3ef37255cfcd256 Mon Sep 17 00:00:00 2001 From: Nils Leif Fischer Date: Wed, 12 Jan 2022 15:53:49 +0100 Subject: 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 `` 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. --- var/spack/repos/builtin/packages/charmpp/package.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 `` 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 -- cgit v1.2.3-60-g2f50