-
Notifications
You must be signed in to change notification settings - Fork 710
Regression: cannot install some packages with custom setup #1004
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
Comments
@ttuegel Would you mind taking a look? |
I just checked by hand, and it's only |
I see that |
I'm having a hard time reproducing this: Making sure I use the same Cabal/cabal-install as you:
Installing bits-atomic:
|
Same thing happens if I install Cabal/cabal-install from Hackage:
|
Well huh. Cabal and cabal-install swore they were the versions they claimed, but I rebuilt both, and now everything works. That's deeply weird. |
What might have happened is that because we don't bump the versions numbers until just before a release, a build from HEAD, made after e.g. 1.14.0 was made, will be identified as 1.14.0. |
Wait, it's still a problem: https://jenkins.serpentine.com/job/text/83/ghc_version=7.2.1/console |
This seems to be specific to GHC 7.2.1, though? |
Each GHC has its own version of Cabal the library installed. Could you check which one is used by your 7.2.1. Perhaps the custom Setup is linking against an older Cabal than we thing? |
Perhaps you could build using just the bits-atomic package using |
|
I'd like that to not be the case (and we might be able to change things so that's not the case), but feel free to try it out and report back. |
I stumbled into this issue a while ago, and IIRC it is caused by the line |
Possible duplicate: #932 |
We must not pass '--disable-benchmarks' to setup scripts built with Cabal < 1.14; the same is also true for '--disable-tests' and Cabal < 1.10. Fixes haskell#932 and haskell#1004. Without this patch: $ cabal install -w /path/to/ghc-7.2.1/bin/ghc syb [...] unrecognized option `--disable-benchmarks' Failed to install syb-0.3.7 With this patch: $ cabal install -w /path/to/ghc-7.2.1/bin/ghc syb [...] Registering syb-0.3.7... Installed syb-0.3.7
Fixed by 582d12e. |
FYI, my Jenkins also ran into this with GHC 7.2.2 on "haskell-src-exts". This was using a single cabal binary across all GHC versions (cabal-install 1.16.0.2). I'll see if Cabal HEAD fixes it. I couldn't quite make out from the above exchange -- @bos, did you get things to work by building a separate cabal with each GHC? |
I'm using recent builds of Cabal:
If I try to install
syb
now, the installation bails:The issue is that
cabal
is invokingsyb
'ssetup
program with options it doesn't understand.At the very least
--disable-benchmarks
isn't working. It's possible thatsyb
would reject--disable-tests
too, but that the first error is masking this.The text was updated successfully, but these errors were encountered: