-
Notifications
You must be signed in to change notification settings - Fork 701
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
GHC 8.2.1 Compatibility #4529
GHC 8.2.1 Compatibility #4529
Conversation
@ezyang @23Skidoo unfortunately, the
(from https://travis-ci.org/haskell/cabal/jobs/234280545) PS: Is this fixed by https://ghc.haskell.org/trac/ghc/ticket/13703 getting merged into 8.2? |
Yes, this is that upstream bug. |
@ezyang fair enough, in the mean-time a new GHC 8.2.1 snapshot has been built for the PPA which includes ghc/ghc@8054a74 but Travis now runs into a time out (the job gets killed after 50 minutes); right before see e.g. https://travis-ci.org/haskell/cabal/jobs/234280545 PS: At least one job fails unexpectedly due to
as this cannot be satisfied w/ GHC 8.2.1 (there is no version of Cabal-1.24 that's declared compatible w/ GHC 8.2.1 -- in the past, new major versions of GHC also required new major versions of Cabal, so that's been the common pattern in the past if you look at the matrix-builder) |
The timeout is probably because we're building deps for the first time; they'll subsequently be cached. So if you keep restarting the build eventually it will succeed. Test failure needs more investigatoin. |
@ezyang the problem is that the dependency are not cached if the job is killed by timeout. So I now temporarily workarounded this by Here's an updated list of failed tests w/ the latest GHC 8.2.1RC2 snapshot (see https://travis-ci.org/haskell/cabal/jobs/234575195):
|
Yes, those bugs are known: https://ghc.haskell.org/trac/ghc/ticket/13703 Should be fixed on next RC. |
@ezyang Why do you think the next RC would fix this? The current PPA ghc-8.2.1 snapshot is at ghc/ghc@c0b82c3 (the build job used |
Should we file a new GHC bug report/reopen 13703? |
No. Instead, if we apply #4554 to this PR, I think things should be green. |
GHC 8.2.1 appears to take significantly longer to compile the code and pushes us over the Travis job time limit.
This reverts commit 816ca32.
Here were the root causes: - Some tests involving Custom setpu showed MORE output (UseLocalPackageForSetup) when run on GHC 8.2. This is because GHC 8.2 ships a recent enough version of Cabal to know how to emit markers, which means we have started picking up the output. I hacked up these tests to not accept this output, but a more correct thing to do is figure out how to NOT request marking of a Setup script which is not the inplace install. This was a little tricky so I bailed. - GHC 8.2 no longer emits "It is a member of the hidden package". This broke CustomWithoutCabalDefaultMain. Not sure if this is a GHC regression but it's pretty harmless. - While I was at it, I fixed an inexhaustive pattern match in cabal-testsuite (though perhaps poorly; I couldn't figure out what the new constructor does.) Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
I've rebased this PR and added #4554 on top... now I'm curious :-) |
The failure is due to timeout. |
@ezyang There's still one unexpected failure with GHC 8.2:
|
@23Skidoo I pushed a fix to the other PR. |
Yay, it passes now! |
Cherry-picked relevant commits manually. |
This PR makes
cabal
compatible with GHC 8.2.1's libraries.TODO: add GHC 8.2.1 to Travis-config