summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAMD Toolchain Support <73240730+amd-toolchain-support@users.noreply.github.com>2024-09-27 14:07:22 +0100
committerGitHub <noreply@github.com>2024-09-27 15:07:22 +0200
commit00fae6dd79f40dc322b3c1149f7460f527f83d44 (patch)
treed109ef6ee49ea679d05616d09790cbb0ce891cc6
parent2613a14c43b11ab92181bdd7ba57cd5b99f128a8 (diff)
downloadspack-00fae6dd79f40dc322b3c1149f7460f527f83d44.tar.gz
spack-00fae6dd79f40dc322b3c1149f7460f527f83d44.tar.bz2
spack-00fae6dd79f40dc322b3c1149f7460f527f83d44.tar.xz
spack-00fae6dd79f40dc322b3c1149f7460f527f83d44.zip
charmpp: build fix for aocc (#45826)
-rw-r--r--var/spack/repos/builtin/packages/charmpp/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/charmpp/package.py b/var/spack/repos/builtin/packages/charmpp/package.py
index abed322050..02ce131961 100644
--- a/var/spack/repos/builtin/packages/charmpp/package.py
+++ b/var/spack/repos/builtin/packages/charmpp/package.py
@@ -374,6 +374,13 @@ class Charmpp(Package):
if spec.satisfies("+tracing"):
options.append("--enable-tracing")
+ # charmpp build was failing with clang based compilers for -DNETWORK=mpi as discussed in
+ # https://github.com/charmplusplus/charm/issues/3645
+ # Fix was suggested in https://github.com/charmplusplus/charm/pull/3646 and the same has
+ # been implemented in v8.0.0
+ if self.spec.satisfies("@8.0.0: %aocc"):
+ options.append("--disable-fortran")
+
# Call "make" via the build script
# Note: This builds Charm++ in the "tmp" subdirectory of the
# install directory. Maybe we could set up a symbolic link