ACCESS-NRI / ACCESS-OM2

ACCESS-OM2: ACCESS Ocean-Sea Ice Model
Apache License 2.0
5 stars 0 forks source link

Failing to install dependencies of access-om2 when tags are the same #15

Closed CodeGat closed 9 months ago

CodeGat commented 9 months ago

Background When installing (or at least doing a spack spec) for access-om2 on Gadi: when you specify the git.version of libaccessom2 and either mom5 or cice5 , the build fails with:

   SPEC is unsatisfiable, errors are:
    internal_error("Build version weight used for reused package")
    internal_error("Reuse version weight used for built package")

This fails for spack spec access-om2 ^libaccessom2@git.2023.10.26 ^mom5@git.2023.11.09 and spack spec access-om2 ^libaccessom2@git.2023.10.26 ^cice5@git.2023.10.19 , but not spack spec access-om2 ^mom5@git.2023.11.09 ^cice5@git.2023.10.19. So it must be something to do with libaccessom2. Specifying the version for only libaccessom2 (aka spack spec access-om2 ^libaccessom2@git.2023.10.26 works fine.

When doing this in a clean spack environment (i.e., in the spack-dev image) it doesn't fail.

Potential Solutions

CodeGat commented 9 months ago

See https://github.com/spack/spack/issues/38484