zoltan: Fix buliding with gcc@14 and ifx. (#48358)

* zoltan: Ignore errors about incompatible pointer type with gcc@14

In gcc 14 -Werror=incompatible-pointer-types is now the default.
Silence it until it gets fixed in zoltan upstream.

* zoltan: Fix linking error when built with ifx
This commit is contained in:
Kacper Kornet 2025-01-02 16:54:06 +00:00 committed by GitHub
parent f635337af8
commit fb1d4f8907
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,6 +87,11 @@ def autoreconf(self, spec, prefix):
with working_dir(self.configure_directory):
autoreconf("-ivf")
def flag_handler(self, name, flags):
if self.spec.satisfies("%gcc@14:") and name == "cflags":
flags.append("-Wno-error=incompatible-pointer-types")
return self.build_system_flags(name, flags)
def configure_args(self):
spec = self.spec
@ -112,7 +117,7 @@ def configure_args(self):
# Although adding to config_libs _should_ suffice, it does not
# Add to ldflags as well
config_ldflags.append("-lgfortran")
if spec.satisfies("%intel"):
if spec.satisfies("%intel") or spec.satisfies("%oneapi"):
config_libs.append("-lifcore")
if "+int64" in spec: