ACCESS-NRI / spack-config

Shared spack configuration
Apache License 2.0
1 stars 0 forks source link

Avoid using HDF5 version 1.14.3 #34

Closed penguian closed 5 months ago

penguian commented 5 months ago

Closes #33 . Tested by appending

        depends_on("hdf5@1.14.3")

to

     with when("@access-esm1.5"):
         depends_on("oasis3-mct@access-esm1.5")

in https://github.com/ACCESS-NRI/spack-packages/blob/main/packages/mom5/package.py . Running

$ spack install mom5@access-esm1.5%intel@19.0.5.281 arch=linux-rocky8-x86_64

then results in

==> Error: concretization failed for the following reasons:

   1. FPE bug in hdf5@1.14.3 is not patched in Spack versions earlier than v0.22
harshula commented 5 months ago

Hi @penguian , For v0.20 and v0.22, keep the symlink to the unmodified packages.yaml from common. For v0.21, replace the symlink with the modified packages.yaml.

penguian commented 5 months ago

The one_of syntax is obsolete as of Spack v0.22, but it is described here: https://spack.readthedocs.io/en/v0.22.0/packages_yaml.html#conflicts-and-strong-preferences Note that the prefer: and conflict: sections are new as of Spack v0.22. See https://github.com/spack/spack/pull/41832 for the relevant pull request.