Skip to content

netcdf: fix build with clang 16 and tests on aarch64-darwin#253762

Merged
Mindavi merged 4 commits intoNixOS:masterfrom
reckenrode:netcdf-fix
Sep 7, 2023
Merged

netcdf: fix build with clang 16 and tests on aarch64-darwin#253762
Mindavi merged 4 commits intoNixOS:masterfrom
reckenrode:netcdf-fix

Conversation

@reckenrode
Copy link
Copy Markdown
Contributor

Description of changes

Updating netcdf allows it to work without needing the compatibility API, which fixes the build with clang 16.

This PR also enables tests on aarch64-darwin (since they now work) and fixes them on Linux after the update.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Clang 16 fails to build netcdf when using the HDF5 compatibility API due
to incompatible function pointer conversion errors. Fortunately, 4.9.2
supports HDF15, so using the compatibility API can be disabled.
`nczarr_test/Makefile.am` prepends new shebang lines to the start of
some tests when they are built, which breaks tests on Linux because
`/bin/bash` does not exist.
@ofborg ofborg bot added 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. labels Sep 7, 2023
@Mindavi Mindavi merged commit 9c28500 into NixOS:master Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants