diff options
-rw-r--r-- | var/spack/repos/builtin/packages/extrae/package.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/extrae/package.py b/var/spack/repos/builtin/packages/extrae/package.py index ea7fc38bbb..86714923e6 100644 --- a/var/spack/repos/builtin/packages/extrae/package.py +++ b/var/spack/repos/builtin/packages/extrae/package.py @@ -169,6 +169,18 @@ class Extrae(AutotoolsPackage): flags.append("-lintl") elif name == "ldflags": flags.append("-pthread") + + # This is to work around + # <https://github.com/bsc-performance-tools/extrae/issues/115>. + if self.spec.satisfies("%gcc@14:") and name == "cflags": + flags.extend( + [ + "-Wno-error=incompatible-pointer-types", + "-Wno-error=implicit-function-declaration", + "-Wno-error=int-conversion", + ] + ) + return self.build_system_flags(name, flags) def install(self, spec, prefix): |