Skip to content
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

Support for building with ghc-8.8.1 #5132

Closed
peti opened this issue Dec 27, 2019 · 5 comments
Closed

Support for building with ghc-8.8.1 #5132

peti opened this issue Dec 27, 2019 · 5 comments

Comments

@peti
Copy link
Contributor

peti commented Dec 27, 2019

All my attempts to build stack with ghc-8.8.1 have failed. cabal install stack will usually fail while compiling pantry and I am not aware of any way to work around or fix that issue.

openSUSE Linux is about to switch to ghc-8.8.1, which means that the distribution can no longer compile stack. So we would have to drop the tool from our distribution, which feels like a shame.

Could you please advice what to do about this situation?

@jwaldmann
Copy link

jwaldmann commented Jan 18, 2020

It looks like this is work in progress at commercialhaskell/pantry#6

@qrilka
Copy link
Contributor

qrilka commented Feb 13, 2020

That one is merged and #5167 should make Stack buildable with GHC-8.8.2

@jwaldmann
Copy link

cabal install stack will usually fail while compiling pantry

I was running into this recently. I found this simple work-around (after too many failed attempts - that's why I am documenting it here)

get sources off hackage via cabal unpack stack, go to https://hackage.haskell.org/package/stack , find the date where this was uploaded to/built on hackage, and put that date in cabal.project:

packages: .

index-state: 2019-07-16T20:16:22Z

then build with the compiler that's mentioned in the build log (in that case, 8.6.3) so you get the exact versions of hardwired packages.

This won't solve the problem "build with ghc-8.8.?" but it solves the bootstrapping problem "build stack from source". Note that the resulting stack executable can be used fine to build stack projects with ghc-8.8.?

@arrowd
Copy link
Contributor

arrowd commented Jun 8, 2020

Stack compiles fine with GHC 8.8.3 on FreeBSD. This can be closed, I guess.

@jwaldmann
Copy link

Well cabal install with ghc-8.8.3 and current hackage gives

src/Stack/Types/Resolver.hs:71:17: error:
    Ambiguous occurrence ‘SnapName’

for me. This way of building is inherently unreliable. I mean, that's exactly the problem that stack solves.

Still, I think this is the right goal https://hackage.haskell.org/package/stack This package on Hackage is provided for convenience and bootstrapping purposes but it is currently not met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants