-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cipher-aes128:setup.Cabal-3.8.0.20220526/installed-3.8.0.20220526 (conflict: cipher-aes128 => cipher-aes128:setup.Cabal>=1.10 && <3.7) #9294
Comments
Ping @mpickering @sheaf @dcoutts: that's the ticket I was talking about. @exarkun: let us know if the solution @fgaz found (the one related to cabal/cabal-install/src/Distribution/Client/ProjectPlanning.hs Lines 1393 to 1425 in d363088
Let me cite a part of the discussion from #7088 |
It seems unlikely this will work in any case as custom Setup.hs don't work with cross-compilers? |
The solution would be to downgrade GHC. Quoting the comment:
So cabal-install imposes a Cabal bound depending on the GHC version. You could also attempt to relax the upper bound on Cabal with If downgrading GHC is not possible and you confirmed that relaxing the upper bound breaks the package, in theory downgrading cabal can also work since older cabal-installs don't know about newer GHCs, but the result can be unpredictable. The error message can definitely be improved, by explaining what "minimum version of Cabal used by Setup.hs" is and why it's there |
Note that this can be reproduced without ghc-wasm-meta:
Unfortunately relaxing the bound in cipher-aes128's custom-setup does not help:
but this error has nothing to do with Cabal's API. It is a breaking change in GHC-9.2:
(taken from https://downloads.haskell.org/ghc/9.2.8/docs/html/users_guide/9.2.1-notes.html?highlight=nondecreasingindentation) Indeed But this side-steps the upper bound on Cabal because ghc-9.0 comes with
|
Is there a bug here? This issue can be turned into a UX issue if anyone is keen. |
I am going to close this as I don't think there is a bug anywhere. Feel free to reopen in case I am mistaken. |
Describe the bug
When attempting to build https://whetstone.private.storage/privatestorage/tahoe-chk (be0695ac38d8c1c623907f60b883a547c9d743e4) using ghc 9.2 or 9.4 and ghc-wasm-meta I encountered the following build error:
To Reproduce
Steps to reproduce the behavior:
haskell.compiler.ghc941
)nix shell https://gitlab.haskell.org/ghc/ghc-wasm-meta/-/archive/master/ghc-wasm-meta-master.tar.gz
, rev bd1b3778e8100a5e8c89962903a8c2ae3ff5c611)cabal build
(orcabal build --allow-newer=base --allow-newer=text --disable-tests
if trying with tahoe-chk)Expected behavior
A successful build!
System information
The text was updated successfully, but these errors were encountered: