Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Apparently spurious error about Cabal-version check #1666

Open
rrnewton opened this Issue · 8 comments

6 participants

@rrnewton

To avoid issue #1284, I recently added an explicit requirement to my .cabal file that insists upon cabal 1.18 or newer:

Cabal-version:       >=1.18

But this seems to result in failures, as in this log here, which complains about >=1.18 not being available:

cabal: Error: some packages failed to install:
atomic-primops-0.5.99 failed during the configure step. The exception was:
user error (The package 'atomic-primops' requires Cabal library version -any
&& >=1.18 but no suitable version is installed.)

In spite of the fact that earlier in that same log, cabal --version reports:

cabal-install version 1.18.0.1
using version 1.18.0 of the Cabal library

Well then!

@rrnewton

I reinstalled the latest released cabal (1.18.0.1 / 1.18.1.2) and saw the same behavior.

I also checked out HEAD just now (ccab03a / 1.19.2) and saw the same behavior there as well.

@cartazio cartazio referenced this issue in bscarlet/llvm-general
Closed

odd error message when building with ghc 7.8 #82

@23Skidoo
Collaborator

Thanks for the bug report. I'll look into this.

@23Skidoo 23Skidoo self-assigned this
@acfoltzer

I've been getting reports of folks seeing this when trying to build https://github.com/GaloisInc/cryptol. It seems to arise when Cabal the library doesn't end up in one of their ghc-pkg databases for whatever reason. This is common when folks install binaries from package managers, for example.

A temporary fix that seems to work is to add Cabal to the build-depends of the package in question, but this seems like an odd way to go about it.

@23Skidoo
Collaborator

I guess the solver could add that dependency automatically.

@rrnewton

Thanks for the tip Adam. I think I did end up adding Cabal.

@nh2

I got this in TravisCI, for dependencies that I have no control of:

cabal: Error: some packages failed to install:
cairo-0.13.0.3 failed during the configure step. The exception was:
user error (The package 'cairo' requires Cabal library version -any && >=1.18
but no suitable version is installed.)
gio-0.13.0.1 depends on glib-0.13.0.4 which failed to install.
glib-0.13.0.4 failed during the configure step. The exception was:
user error (The package 'glib' requires Cabal library version -any && >=1.18
but no suitable version is installed.)
gtk-0.13.0.2 depends on glib-0.13.0.4 which failed to install.
pango-0.13.0.2 depends on glib-0.13.0.4 which failed to install.
svgcairo-0.13.0.0 depends on glib-0.13.0.4 which failed to install.
@sinelaw-ci

any news? I have the same problem as @nh2

@sinelaw-ci sinelaw-ci referenced this issue from a commit in sinelaw-ci/xml-to-json
@sinelaw-ci sinelaw-ci hack to work around haskell/cabal#1666 37bded1
@23Skidoo
Collaborator

For now, the workaround is to add a line cabal install Cabal to your Travis script. Packages with build-type: Custom require the appropriate version of the Cabal library to be installed.

@bergey bergey referenced this issue from a commit in diagrams/diagrams-cairo
@bergey bergey travis: install Cabal before package dependencies 07e5764
@ttuegel ttuegel added the bug label
@RyanGlScott RyanGlScott referenced this issue in ekmett/semigroupoids
Open

Fix GHC 7.0 build #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.