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

gtk2hs-buildtools #612

Closed
gitfoxi opened this issue May 30, 2015 · 2 comments
Closed

gtk2hs-buildtools #612

gitfoxi opened this issue May 30, 2015 · 2 comments

Comments

@gitfoxi
Copy link

gitfoxi commented May 30, 2015

cabal install gtk2hs-buildtools
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/mfox/stackage/.cabal-sandbox
Configuring gtk2hs-buildtools-0.13.0.3...
Failed to install gtk2hs-buildtools-0.13.0.3
Build log ( /Users/mfox/stackage/.cabal-sandbox/logs/gtk2hs-buildtools-0.13.0.3.log ):
Configuring gtk2hs-buildtools-0.13.0.3...
setup-Simple-Cabal-1.22.2.0-x86_64-osx-ghc-7.10.1: The program 'happy' version
>=1.18.9 is required but it could not be found.
cabal: Error: some packages failed to install:
gtk2hs-buildtools-0.13.0.3 failed during the configure step. The exception
was:
ExitFailure 1

If I first cabal install happy then it goes ahead just fine.

gtk2hs-buildtools.cabal has:

        build-tools:    alex >= 3.0.1, happy >= 1.18.9

And the nightly cabal config has:

             happy ==1.19.5,

Is it maybe a cabal problem? Cabal-install is (the one thing) installed outside the sandbox:

cabal-install version 1.22.4.0
using version 1.22.2.0 of the Cabal library

Should cabal-install also be installed inside the sandbox?

@snoyberg
Copy link
Contributor

This is a long-standing limitation of cabal-install unfortunately, see haskell/cabal#220. The solution you found (manually running cabal install happy) is the correct one. I'm working on a different project that will fix this problem, and hopefully be announcing next week. But using the current tooling, there's nothing else we can do to fix it.

@snoyberg
Copy link
Contributor

Note that stack now addresses this problem correctly and will install the correct build tool dependencies automatically.

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

2 participants