Building ACCESS-OM2 on Archer2 (UK HPC)

Using the api-v2 branch for access-spack-packages did allow progress! After cleaning up a bit, I was able to clone the branch and add the access.nri repo to the spack list:

munday@archer2 >> git clone https://github.com/ACCESS-NRI/access-spack-packages --branch api-v2
Cloning into 'access-spack-packages'...
remote: Enumerating objects: 2957, done.
remote: Counting objects: 100% (590/590), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 2957 (delta 503), reused 469 (delta 434), pack-reused 2367 (from 2)
Receiving objects: 100% (2957/2957), 629.88 KiB | 7.78 MiB/s, done.
Resolving deltas: 100% (1588/1588), done.

[access-om2] munday@archer2 >> cd access-spack-packages/spack_repo/access/nri

[access-om2] munday@archer2 >> spack repo add .
==> Added repo to config with name 'access.nri'.
[access-om2] munday@archer2 >> spack repo list
[+] access.nri    v2.0    /mnt/lustre/a2fs-work1/work/n01/n01/munday/SO-SIMMER/ACCESS-OM2/access-spack-packages/spack_repo/access/nri
[+] archer2       v2.2    /mnt/lustre/a2fs-nvme/work/y07/shared/apps/dev/spack/1.0.2/repos/archer2/spack_repo/archer2
[+] builtin       v2.2    /work/n01/n01/munday/.spack-1.0.2/package_repos/fncqgg4/repos/spack_repo/builtin

To get spack repo add to succeed, you can see I had to cd to the location of the repo.yaml. Otherwise it failed with

[access-om2] munday@archer2 >> spack repo list
[-] access.nri            /mnt/lustre/a2fs-work1/work/n01/n01/munday/SO-SIMMER/ACCESS-OM2/access-spack-packages:
No repo.yaml found in '/mnt/lustre/a2fs-work1/work/n01/n01/munday/SO-SIMMER/ACCESS-OM2/access-spack-packages'

The concretize command also progressed. It took much longer to do anything, which I took as a good sign :slight_smile: Alas, it still failed with the following error:

[access-om2] munday@archer2 >> spack concretize -f --fresh
==> Error: failed to concretize `access-om2@git.2025.12.000=latest` for the following reasons:
     1. cannot satisfy a requirement for package 'access-om2'.
     2. No valid value for variant 'deterministic' of package 'access-om2'

Google pointed me to the list of random spack errors: Random spack errors/tips/fixes - #39 by harshula. I’d used the --fresh flag, so I’ll have to dig around a bit tomorrow to figure things out and try gcc.

This is progress! Thanks very much.