# Building ACCESS-OM2 on Archer2 (UK HPC)

**URL:** <https://forum.access-hive.org.au/t/building-access-om2-on-archer2-uk-hpc/5872>\
**Category:** spack\
**Tags:** spack, access-om2\
**Created:** [5 February 2026 12:44 UTC](https://forum.access-hive.org.au/t/building-access-om2-on-archer2-uk-hpc/5872 "2026-02-05T12:44:55Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![davemunday](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/davemunday/32/3688_2.png) [@davemunday](https://forum.access-hive.org.au/u/davemunday)\
**Post date:** [5 February 2026 17:19 UTC](https://forum.access-hive.org.au/t/building-access-om2-on-archer2-uk-hpc/5872/4 "2026-02-05T17:19:13Z")

</div>

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:

```auto
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

```auto
[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 🙂 Alas, it still failed with the following error:

```auto
[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](https://forum.access-hive.org.au/t/random-spack-errors-tips-fixes/162/39). 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.

---

_[View the full topic](https://forum.access-hive.org.au/t/building-access-om2-on-archer2-uk-hpc/5872)._
