Skip to content

Commit

Permalink
netcdf: disable HDF5 on macOS armv8
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jul 15, 2024
1 parent 96b3bb9 commit b30034e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions recipes/netcdf/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from conan import ConanFile
from conan.tools.apple import is_apple_os
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.files import apply_conandata_patches, export_conandata_patches, get, copy, rm, rmdir
from conan.tools.scm import Version
Expand Down Expand Up @@ -54,6 +55,17 @@ def export_sources(self):
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
if is_apple_os(self) and self.settings.arch == "armv8":
# FIXME: Fails with
# Undefined symbols for architecture arm64:
# "_H5allocate_memory", referenced from:
# _H5Z_filter_bzip2 in H5Zbzip2.c.o
# "_H5free_memory", referenced from:
# _H5Z_filter_bzip2 in H5Zbzip2.c.o
# "_H5resize_memory", referenced from:
# _H5Z_filter_bzip2 in H5Zbzip2.c.o
# ld: symbol(s) not found for architecture arm64
self.options.with_hdf5 = False

def configure(self):
if self.options.shared:
Expand Down

0 comments on commit b30034e

Please sign in to comment.