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

buildwrapper-0.7.2: build error #13

Open
ghost opened this issue Jul 1, 2013 · 5 comments
Open

buildwrapper-0.7.2: build error #13

ghost opened this issue Jul 1, 2013 · 5 comments

Comments

@ghost
Copy link

ghost commented Jul 1, 2013

Here's the build error output, received each time I tried to build from 'cabal install buildwrapper':
...[Snip]...
[2 of 3] Compiling Language.Haskell.BuildWrapper.CMD ( src-exe/Language/Haskell/BuildWrapper/CMD.hs, dist/build/buildwrapper/buildwrapper-tmp/Language/Haskell/BuildWrapper/CMD.o )

src-exe/Language/Haskell/BuildWrapper/CMD.hs:178:72:
Ambiguous occurrence catch' It could refer to eitherPrelude.catch',
imported from Prelude' at src-exe/Language/Haskell/BuildWrapper/CMD.hs:13:8-40 (and originally defined inSystem.IO.Error')
or Control.Exception.Base.catch', imported fromControl.Exception.Base' at src-exe/Language/Haskell/BuildWrapper/CMD.hs:27:32-36
cabal: Error: some packages failed to install:
buildwrapper-0.7.2 failed during the building phase. The exception was:
ExitFailure 1

I downloaded source and added in 'Control.Exception.Base.catch' in lieu of just catch on line 178, which allowed it to build fine. I'm too new with haskell to be confident that this is the desired behaviour, so I'm punting to someone more familiar with this project to verify/commit/otherwise fix. (or let me know what I may have been doing wrong in the first place)

This is built on a #!-linux (waldorf) box (wheezy-based 64-bit linux distro). Hope this helps.

Thanks.

@JPMoresmau
Copy link
Owner

Hackage indicates that it builds fine on GHC 7.6, which version of GHC do you have?

@ghost
Copy link
Author

ghost commented Jul 1, 2013

That may be my issue. I currently have 7.4.1 on my machine.

@JPMoresmau
Copy link
Owner

Does the code pushed in 787a937 solve your issue? We still use unqualified catch but for GHC 7.4 we hide catch from Prelude?

@ghost
Copy link
Author

ghost commented Jul 1, 2013

Yep, that seems to have fixed it so it builds. Thanks!

@JPMoresmau
Copy link
Owner

Uploaded 0.7.3 to Hackage.

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

1 participant