Skip to content
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

NetCDF: Build against HDF5 1.14 #6795

Merged
merged 2 commits into from
May 25, 2023

Conversation

eschnett
Copy link
Contributor

  • update version_offset
  • correct tarball checksum
  • correct Windows build instruction
  • remove outdated Apple work-around
  • build on more platforms
  • add new dependencies bzip2 (necessary) and zstd (because we can)

- update version_offset
- correct tarball checksum
- correct Windows build instruction
- remove outdated Apple work-around
- build on more platforms
- add new dependencies bzip2 (necessary) and zstd (because we can)
@giordano
Copy link
Member

CC @Alexander-Barth


export CPPFLAGS="-I${includedir}"
export LDFLAGS="-L${libdir}"
export LDFLAGS_MAKE="${LDFLAGS}"
CONFIGURE_OPTIONS=""

if [[ ${target} == *-mingw* ]]; then
export LIBS="-lhdf5-0 -lhdf5_hl-0 -lcurl-4 -lz"
# we should determine the dll version (?) automatically
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, to be honest I'm a bit worried about those random numbers like 310. Where they come from? Will they change in hdf5 1.15? If so, it'd be ABI-incompatible with v1.14

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's essentially the soversion of the library, produced by HDF5's build system. We can probably, if we want to, modify the Windows build script for HDF5 to change these numbers to 0.

On the other hand, if these numbers indicate binary (ABI) compatibility, then we should probably heed them, and be quite strict about the compat declaration when using HDF5_jll.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the other hand, if these numbers indicate binary (ABI) compatibility

Yes, the SONAME is part of the ABI, whenever it changes the ABI changes. If they change the soname for every minor version (sigh) we really must be strict about compat bounds.

@Alexander-Barth
Copy link
Contributor

Interesting I was working on the same here:
Alexander-Barth@57fc542

But I did not jet made a PR, so please feel free to go ahead to make the update.

(To be honest, I do know where the XY in -lhdf5-XY come from in mingw.)

N/NetCDF/build_tarballs.jl Outdated Show resolved Hide resolved
Co-authored-by: Mark Kittisopikul <mkitti@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants