Hadrian can't build stage-cabal with cabal 3.10
Summary
I'm unable to build stage-cabal on HEAD with hadrian, it fails with:
| Create directory /Users/romes/ghc-dev/ghc/_build/stage-cabal/bin
| Run Cabal Install Stage2: none => none
/Users/romes/.ghcup/bin/cabal --store-dir=/Users/romes/ghc-dev/ghc/_build/stage-cabal/cabal-store build binary --project-file /Users/romes/ghc-dev/ghc/cabal.project-reinstall --distdir _build/stage-cabal/dist-newstyle --with-compiler=/Users/romes/ghc-dev/ghc/_build/stage1/bin/ghc --enable-executable-dynamic --enable-library-vanilla
Command line: /Users/romes/.ghcup/bin/cabal --store-dir=/Users/romes/ghc-dev/ghc/_build/stage-cabal/cabal-store build binary --project-file /Users/romes/ghc-dev/ghc/cabal.project-reinstall --distdir _build/stage-cabal/dist-newstyle --with-compiler=/Users/romes/ghc-dev/ghc/_build/stage1/bin/ghc --enable-executable-dynamic --enable-library-vanilla
===> Command failed with error code: 1
Error: cabal: Could not resolve dependencies:
[__0] next goal: ghc (user goal)
[__0] rejecting: ghc-9.7 (only already installed instances can be used)
[__0] rejecting: ghc-9.4.4, ghc-9.4.3, ghc-9.4.2, ghc-9.4.1, ghc-9.2.7,
ghc-9.2.6, ghc-9.2.5, ghc-9.2.4, ghc-9.2.3, ghc-9.2.2, ghc-9.2.1, ghc-9.0.2,
ghc-8.10.7, ghc-8.10.2, ghc-8.10.1, ghc-8.8.3, ghc-8.8.1, ghc-8.6.5,
ghc-8.6.4, ghc-8.6.1, ghc-8.4.4, ghc-8.4.3, ghc-8.4.1, ghc-8.2.2, ghc-8.2.1,
ghc-9.2.3.20220620 (constraint from user target requires ==9.7)
[__0] fail (backjumping, conflict set: ghc)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: ghc
Resolving dependencies...
Command failed
Build failed.
Steps to reproduce
./hadrian/build -j --flavour=default+no_profiled_libs+omit_pragmas build-cabal
Expected behavior
I expected stage-cabal to build
Environment
- GHC version used: HEAD
- Operating System: MacOS Ventura
- System Architecture: Apple Silicon M2