diff options
author | Mosè Giordano <765740+giordano@users.noreply.github.com> | 2024-11-05 08:42:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 09:42:06 +0100 |
commit | 6b5a479d1e235aca420e746c697037b83f33cb16 (patch) | |
tree | c3ec76b0b13aab267e6cd4d6960d84cf49c4f16e | |
parent | 1297dd7fbc2860f2722a59251c0118a4034f1f20 (diff) | |
download | spack-6b5a479d1e235aca420e746c697037b83f33cb16.tar.gz spack-6b5a479d1e235aca420e746c697037b83f33cb16.tar.bz2 spack-6b5a479d1e235aca420e746c697037b83f33cb16.tar.xz spack-6b5a479d1e235aca420e746c697037b83f33cb16.zip |
extrae: fix build with gcc@14 (#47407)
-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): |