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

Build fails on arch linux: cabal: Could not resolve dependencies #191

Closed
smu opened this issue Oct 14, 2018 · 4 comments
Closed

Build fails on arch linux: cabal: Could not resolve dependencies #191

smu opened this issue Oct 14, 2018 · 4 comments

Comments

@smu
Copy link

smu commented Oct 14, 2018

Installation fails under arch linux.

$cabal install --bindir=.
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: tttool-1.8 (user goal)
[__1] next goal: base (dependency of tttool)
[__1] rejecting: base-4.11.1.0/installed-4.1... (conflict: tttool => base>=4.5
&& <4.11)
[__1] rejecting: base-4.12.0.0, base-4.11.1.0, base-4.11.0.0, base-4.10.1.0,
base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, tttool
Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
 cabal install --only-dependencies

leads to the same error message.

I have no experience with haskell. any ideas how to solve the problem with base? thanks!

@nomeata
Copy link
Member

nomeata commented Oct 15, 2018

You seem to have a pretty new version of GHC. Let me update tttool to support that…

@nomeata
Copy link
Member

nomeata commented Oct 15, 2018

Blocked on alpheccar/HPDF#21 unfortunately.

@raisken
Copy link

raisken commented Dec 19, 2018

I saw two issues in HPDF. It works fine after fixing them.

  1. in Graphics/PDF/Draw.hs you need to modifiy the code around "(x:xs) <- gets supplyNames" to something like this:

supplyName = do
x1 <- gets supplyNames
case x1 of
(x:xs) -> do
modifyStrict $ \s -> s {supplyNames = xs}
return x
[] -> error "Nothing to draw"

  1. The other issue was in Graphics/PDF/Typesetting/Breaking.hs

change foldWithKey to foldrWithKey

Could you then update tttool? I'm running ghc 8.6.3. Thanks much.

@nomeata
Copy link
Member

nomeata commented Dec 19, 2018

Thanks for the HPDF patches. I need to do something about this, but I am not sure how best to proceed in terms of packaging etc.. Probably include a patched copy of HPDF as a git subtree in the repository…

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

3 participants