haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.62k stars 697 forks source link

Cannot build master with cabal 3.10.3.0, ghc 9.6.5 #10532

Closed noiioiu closed 5 hours ago

noiioiu commented 5 hours ago

Describe the bug Attempting to build cabal-install on master fails with the following output:

Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: cabal-testsuite-3 (user goal)
[__1] next goal: cabal-testsuite:setup.Cabal (dependency of cabal-testsuite)
[__1] rejecting: cabal-testsuite:setup.Cabal-3.15.0.0,
cabal-testsuite:setup.Cabal-3.14.0.0, cabal-testsuite:setup.Cabal-3.12.1.0,
cabal-testsuite:setup.Cabal-3.12.0.0 (constraint from maximum version of Cabal
used by Setup.hs requires <3.12)
[__1] rejecting: cabal-testsuite:setup.Cabal-3.10.3.0/installed-3.10.3.0
(conflict: cabal-testsuite => cabal-testsuite:setup.Cabal^>=3.12.1)
[__1] skipping: cabal-testsuite:setup.Cabal-3.10.3.0,
cabal-testsuite:setup.Cabal-3.10.2.1, cabal-testsuite:setup.Cabal-3.10.2.0,
cabal-testsuite:setup.Cabal-3.10.1.0, cabal-testsuite:setup.Cabal-3.8.1.0,
cabal-testsuite:setup.Cabal-3.6.3.0, cabal-testsuite:setup.Cabal-3.6.2.0,
cabal-testsuite:setup.Cabal-3.6.1.0, cabal-testsuite:setup.Cabal-3.6.0.0,
cabal-testsuite:setup.Cabal-3.4.1.0, cabal-testsuite:setup.Cabal-3.4.0.0,
cabal-testsuite:setup.Cabal-3.2.1.0, cabal-testsuite:setup.Cabal-3.2.0.0,
cabal-testsuite:setup.Cabal-3.0.2.0, cabal-testsuite:setup.Cabal-3.0.1.0,
cabal-testsuite:setup.Cabal-3.0.0.0, cabal-testsuite:setup.Cabal-2.4.1.0,
cabal-testsuite:setup.Cabal-2.4.0.1, cabal-testsuite:setup.Cabal-2.4.0.0,
cabal-testsuite:setup.Cabal-2.2.0.1, cabal-testsuite:setup.Cabal-2.2.0.0,
cabal-testsuite:setup.Cabal-2.0.1.1, cabal-testsuite:setup.Cabal-2.0.1.0,
cabal-testsuite:setup.Cabal-2.0.0.2, cabal-testsuite:setup.Cabal-1.24.2.0,
cabal-testsuite:setup.Cabal-1.24.0.0, cabal-testsuite:setup.Cabal-1.22.8.0,
cabal-testsuite:setup.Cabal-1.22.7.0, cabal-testsuite:setup.Cabal-1.22.6.0,
cabal-testsuite:setup.Cabal-1.22.5.0, cabal-testsuite:setup.Cabal-1.22.4.0,
cabal-testsuite:setup.Cabal-1.22.3.0, cabal-testsuite:setup.Cabal-1.22.2.0,
cabal-testsuite:setup.Cabal-1.22.1.1, cabal-testsuite:setup.Cabal-1.22.1.0,
cabal-testsuite:setup.Cabal-1.22.0.0, cabal-testsuite:setup.Cabal-1.20.0.4,
cabal-testsuite:setup.Cabal-1.20.0.3, cabal-testsuite:setup.Cabal-1.20.0.2,
cabal-testsuite:setup.Cabal-1.20.0.1, cabal-testsuite:setup.Cabal-1.20.0.0,
cabal-testsuite:setup.Cabal-1.18.1.7, cabal-testsuite:setup.Cabal-1.18.1.6,
cabal-testsuite:setup.Cabal-1.18.1.5, cabal-testsuite:setup.Cabal-1.18.1.4,
cabal-testsuite:setup.Cabal-1.18.1.3, cabal-testsuite:setup.Cabal-1.18.1.2,
cabal-testsuite:setup.Cabal-1.18.1.1, cabal-testsuite:setup.Cabal-1.18.1,
cabal-testsuite:setup.Cabal-1.18.0, cabal-testsuite:setup.Cabal-1.16.0.3,
cabal-testsuite:setup.Cabal-1.16.0.2, cabal-testsuite:setup.Cabal-1.16.0.1,
cabal-testsuite:setup.Cabal-1.16.0, cabal-testsuite:setup.Cabal-1.14.0,
cabal-testsuite:setup.Cabal-1.12.0, cabal-testsuite:setup.Cabal-1.10.2.0,
cabal-testsuite:setup.Cabal-1.10.1.0, cabal-testsuite:setup.Cabal-1.10.0.0,
cabal-testsuite:setup.Cabal-1.8.0.6, cabal-testsuite:setup.Cabal-1.8.0.4,
cabal-testsuite:setup.Cabal-1.8.0.2, cabal-testsuite:setup.Cabal-1.6.0.3,
cabal-testsuite:setup.Cabal-1.6.0.2, cabal-testsuite:setup.Cabal-1.6.0.1,
cabal-testsuite:setup.Cabal-1.4.0.2, cabal-testsuite:setup.Cabal-1.4.0.1,
cabal-testsuite:setup.Cabal-1.4.0.0, cabal-testsuite:setup.Cabal-1.2.4.0,
cabal-testsuite:setup.Cabal-1.2.3.0, cabal-testsuite:setup.Cabal-1.2.2.0,
cabal-testsuite:setup.Cabal-1.2.1, cabal-testsuite:setup.Cabal-1.1.6,
cabal-testsuite:setup.Cabal-1.24.1.0 (has the same characteristics that caused
the previous version to fail: excluded by constraint '^>=3.12.1' from
'cabal-testsuite')
[__1] fail (backjumping, conflict set: cabal-testsuite,
cabal-testsuite:setup.Cabal)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: cabal-testsuite:setup.Cabal,
cabal-testsuite

To Reproduce Steps to reproduce the behavior:

$ cabal build cabal-install:cabal

Expected behavior The cabal executable is compiled.

System information

Additional context Branch 3.10 compiles, but 3.12 fails with a similar error.

ulysses4ever commented 5 hours ago

This is expected. The default project file builds with testsuite, which is very particular about the cabal version you're using. E.g. master and 3.12 are requiring cabal-3.12.

This is documented (less precisely) in https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md#building-cabal-for-hacking