Failed to build cardano-ledger-byron-test-1.5.2.0

I have been locally compiling cardano-node and cardano-cli for years, but Im running into a dependency issue on cardano-node 10.1.4.

GHC is “The Glorious Glasgow Haskell Compilation System, version 8.10.7”
Cabal is “cabal-install version 3.8.1.0 compiled using version 3.8.1.0 of the Cabal library”

The build fails on “Error: cabal: Failed to build cardano-ledger-byron-test-1.5.2.0 (which is required by lib:cardano-cli-test-lib from cardano-cli-10.1.1.0 and exe:cardano-cli from cardano-cli-10.1.1.0). See the build log above for details.”
The build log says “Failed to build cardano-ledger-byron-test-1.5.2.0. The failure occurred during
the configure step.
Build log (
/home/cardano/.cabal/logs/ghc-8.10.7/cardano-ledger-byron-test-1.5.2.0-15081b7733ae0f292862b982fbbacbd5114096f438ab87084d790fa6c6502d69.log
):
Configuring library for cardano-ledger-byron-test-1.5.2.0…
Error: cabal-3.8.1.0: The following package dependencies were requested
–dependency=‘byron-spec-chain=byron-spec-chain-1.0.1.0-8494caa0c282e1f5a0c689ebbc2d9b66fc00a5489586eb46466b24cdac66ba0a’
–dependency=‘byron-spec-ledger=byron-spec-ledger-1.0.1.0-359cccc304b8f50a376dbc6ca9b5ab3ed23941af81ee1ce58d793084e4b616dd’
however the given installed package instance does not exist.”

To my understanding Cabal handles dependencies like this so as long as im on the right versions it should be working OK?

The system is ona PROXMOX hypervisor and running in an LXC with Ubuntu 22.04.5 LTS.

Are you using a guide?

Did you do the “cabal update” step?

Thanks for the reply, yes I had done a cabal update. Family memeber has been ill so I couldnt get back sooner.

Ive just trashed the container and restored from an earlier snapshot, and it seems to have compiled that element fine this time, obviously something had got FUBAR on the environment.