-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing HDF5.jl on ARM M1 #870
Comments
Thanks for the report, the build script is actually https://github.com/JuliaPackaging/Yggdrasil/blob/master/H/HDF5/build_tarballs.jl let me know if you can't find the issue. Otherwise I can look into this as well. |
Yes I just found it out a few seconds ago thanks! As far as I can see, I only need to create a PR and update the list of platforms. I'll try! |
Is this in the pipeline yet? Only package I use that does not wanna install on M1. If I knew anything about PR's or build scripts I'd love to help... |
I am still struggling to get the compilation script working, help is appreciated |
HDF5 doesn't support cross-compilation (see JuliaPackaging/Yggdrasil#567), so at the moment the build script just pulls in prebuilt binaries from elsewhere. |
The quickest solution would be for someone on M1 platform to compile the HDF5 library and upload the binaries somewhere so we can add them to https://github.com/JuliaPackaging/Yggdrasil/blob/master/H/HDF5/build_tarballs.jl, until we can sort out the more complicated cross-compilation process. |
I built it on M1 with a standard http://www.tamasgal.com/downloads/hdf5/hdf5-1.12.1.tar.gz The MD5 checksum is Here is the configuration:
|
Great thanks @tamasgal, do we know if there's a way to test M1 on CI or at least an M1 VM I or someone else could use to test the precompiled binaries? |
I remember that Stefan Karpinski mentioned in a talk a few months ago that they are using set of Mac Minis for Julia for testing, which is kind of a shame for Apple, but at least a solution. I cannot provide such a farm but at least I can manually check the test suite until we have a solution for an M1-CI 😕 |
Is there a workaround for this? EDIT: I can install HDF5 via home-brew, then point HDF5.jl to that installation. But when
Unfortunately I did not figure out how to fix Blosc in a similar way. |
@tamasgal I have downloaded the binary you built. Thank you! How do I use it so that I can get it working with Julia? Where should I copy it? |
This updates c-blosc 1 to 1.21.1: https://github.com/Blosc/c-blosc/releases/tag/v1.21.1 Builds for experimental platforms to resolve macOS on M1. Fix JuliaPackaging#4051 Fix JuliaIO/Blosc.jl#85 Fix JuliaIO/HDF5.jl#870
I'm trying to address the Blosc dependency issues in JuliaPackaging/Yggdrasil#4052 #875 does not load Blosc by default. #880 drops Blosc as HDF5.jl dependency, deferring to H5Zblosc.jl (a subdirectory package). |
This issue is closed but it still does not work.
|
Let's open an issue at https://github.com/JuliaPackaging/Yggdrasil That is the best place to track this issue. |
After JuliaPackaging/Yggdrasil#4218
|
Thanks @giordano! |
It works like a charm now, thanks @giordano :) |
I just realised I accidentally closed this issue by pushing to my fork of Yggdrasil. Thanks GitHub 🙄 |
Thanks @giordano |
…aPackaging#4052) This updates c-blosc 1 to 1.21.1: https://github.com/Blosc/c-blosc/releases/tag/v1.21.1 Builds for experimental platforms to resolve macOS on M1. Fix JuliaPackaging#4051 Fix JuliaIO/Blosc.jl#85 Fix JuliaIO/HDF5.jl#870
Hi – I am still running into the same issue as above using Julia v1.8. "using HDF5" sends the error "UndefVarError: libhdf5 not defined". How can I get around this? On Mac M1 |
@ryan-a-anderson Please create a new issue. Provide the output of |
Using the latest 1.7.0-rc1,
HDF5.jl
cannot be installed due to a missing binary dependency:I am not so familiar with the underlying
BinaryBuilder.jl
infrastructure, so I wanted to ask around what to do: how can I contribute to https://github.com/JuliaBinaryWrappers/HDF5_jll.jl ?The text was updated successfully, but these errors were encountered: