-
Notifications
You must be signed in to change notification settings - Fork 841
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
Fail to build with cabal-install #5298
Comments
That is because |
Thanks, @kirelagin, it does work with the constraint, indeed. I'm not sure if the issue should be closed or not, so I leave it to decide for those more knowledgeable. |
Sometimes this helps: if there is a successful build report on hackage (in this case, https://hackage.haskell.org/package/stack-2.3.1/reports/1), do
(use the date of the report) then |
pantry-0.5 is incompatible with stack-2.3.1, but no such upper bound is present in the .cabal file. See commercialhaskell/stack#5298. Tighten the upper bound on pantry to < 0.5. Also disable tests, which require network access. Bug: https://bugs.gentoo.org/730672 Reported-By: [email protected] Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Jack Todaro <[email protected]>
currently, this seems to work for stack-2.3.3 and -2.5.0.1, with ghc-8.10.2 and -8.8.4:
(that's the versions given in the stackage resolver) |
I was able to compile Stack with simple |
Yes. Can confirm. Then it should also work on hackage? https://hackage.haskell.org/package/stack-2.5.1/reports/ has "no reports available". |
Truly, a never-ending story. Today's (Tue Nov 10 21:05:29 CET 2020) magic spell seems to be
|
while today it's [EDIT] or something along those lines. Anyway the algorithm is: copy exact versions for the failing packages from the official resolver, e.g., https://www.stackage.org/lts-17.9/package/stack-2.5.1.1/deps. |
seems to work for stack-2.7.1 as well:
with hackage of today (index-state 2021-05-08T10:46:01Z) |
I was trying to cabal-install stack-2.7.5. It seems that this works (cf. JustusAdam/mustache#58)
This pinning of cabal's index is like a poor man's resolver - except that it isn't, since cabal still prefers installed versions? Anyway I checked that the above works after |
@jwaldmann I don't follow: |
I guess some people might experience the result of #5677 It's not clear from the reports if people cloned the repo and attempted install or pulled from hackage. |
Sorry, it's a mess. This works (indeed, not extra constraints)
but I'm not at all sure about those cabal options (whether they make the build reproducible). Anyway I thought it's good to note a buildable hackage state, for when I might need to re-build this in a few weeks, or months, time. |
That depends on what you mean by that. Pinning index state doesn't ensure the same resolution, mainly because of package flags and pkg-config depends. So you'd want to freeze the resolution as well. Then the "only" thing left for reproducible builds are fixing GHC (because it's non-deterministic) and the rest of your environment (system libs, ...). |
Whoever reports on sucessful builds, please, specify versions of GHC and cabal you're using. I currently fail to build stack-2.7.5 (sources delivered by
Allow-newer Cabal allows the solver to succeed but the build fails because of API changes in the newer Cabal. |
No |
This is helpful, thanks. I wish the cabal file was more specific in the |
General summary/comments (optional)
Stack 2.3.1 fails to install for me when using Hackage and cabal-install.
Steps to reproduce
cabal update
cabal install stack
Expected
Stack installs.
Actual
There are several more errors of the same kind (Ambiguous occurrence) after this first one -- about
LTS
,Nightly
, etc.Stack version
2.3.1.
Method of installation
The text was updated successfully, but these errors were encountered: