summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Marsh <chrismarsh.c2@gmail.com>2024-06-03 12:27:53 -0600
committerGitHub <noreply@github.com>2024-06-03 12:27:53 -0600
commitce3aae15012e2fbf09da50e1db788c03d9c982a8 (patch)
treece748f915e82f7b6d21b5bae0b10c0cd8f974287
parent90c4f9d463b1a4acb83404a7fe887253f7531d96 (diff)
downloadspack-ce3aae15012e2fbf09da50e1db788c03d9c982a8.tar.gz
spack-ce3aae15012e2fbf09da50e1db788c03d9c982a8.tar.bz2
spack-ce3aae15012e2fbf09da50e1db788c03d9c982a8.tar.xz
spack-ce3aae15012e2fbf09da50e1db788c03d9c982a8.zip
`seacas`: protect against known mixed-toolchain problem (#44378)
* Protected against a known problem with mixed gcc/apple-clang toolchains. Fixes #44330 --------- Co-authored-by: Chrismarsh <Chrismarsh@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/seacas/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/seacas/package.py b/var/spack/repos/builtin/packages/seacas/package.py
index 7607142f07..d5fa922a6a 100644
--- a/var/spack/repos/builtin/packages/seacas/package.py
+++ b/var/spack/repos/builtin/packages/seacas/package.py
@@ -231,6 +231,17 @@ class Seacas(CMakePackage):
depends_on("fmt@9.1.0", when="@2022-10-14:2023-05-30")
depends_on("fmt@8.1.0:9", when="@2022-03-04:2022-05-16")
+ # if fmt@9.1.0%gcc is mixed with an %apple-clang seacas build
+ # it triggers a bug in apple-clang w.r.t how symbols are mangled
+ # https://github.com/spack/spack/issues/44330
+ conflicts(
+ "^fmt@9%gcc",
+ msg="""Cannot mix gcc/apple-clang toolchains
+ for this library combination.
+ See https://github.com/spack/spack/issues/44330""",
+ when="%apple-clang",
+ )
+
depends_on("catch2@3:", when="@2024-03-11:+tests")
depends_on("matio", when="+matio")