GithubHelp home page GithubHelp logo

Comments (18)

snoyberg avatar snoyberg commented on September 24, 2024

Did you run stackage init at some point by any chance?

from stackage.

juhp avatar juhp commented on September 24, 2024

I think I did - thought that might have been why. Ok, will try again
tomorrow from scratch... So one can't run build after init?

Would it be better to list "build" before in --help?

from stackage.

snoyberg avatar snoyberg commented on September 24, 2024

Actually, I think I did something a little better: b9a7065

It was a mistake in my documentation to imply it should be run.

from stackage.

juhp avatar juhp commented on September 24, 2024

Ok, I might have answered yes - I'll have to try again anyway.

from stackage.

snoyberg avatar snoyberg commented on September 24, 2024

That message was a recent change, and running stackage init was part of the instructions previously, so it's not surprising. Sorry for the confusion.

from stackage.

ekmett avatar ekmett commented on September 24, 2024

@snoyberg FYI the README.markdown instructions still say to stackage init.

from stackage.

snoyberg avatar snoyberg commented on September 24, 2024

Not any more ;).

Not sure why I thought I'd removed it...

from stackage.

juhp avatar juhp commented on September 24, 2024

Ok I tried again.
This is using the latest Fedora packages with a base of haskell-platform-2012.4.
Below are my steps which I hope might work - but tell where I am falling off the proper path. :)

$ sudo yum install ghc-7.4.2 cabal-install cabal-dev git
::
$ cabal update
$ git clone https://github.com/fpco/stackage
$ cd stackage
$ git submodule update --init
$ cabal install # is this a no-no?
$ ~/.cabal/bin/stackage build
Creating a build plan
Printing build plan to build-plan.log
Wiping out old sandbox folder
cabal: Could not resolve dependencies:
trying: ansi-terminal-0.5.5.1 (user goal)
next goal: hspec (user goal)
rejecting: hspec-1.4.2.2 (conflict: ansi-terminal==0.5.5.1, hspec =>
ansi-terminal==0.5.5)
rejecting: hspec-1.4.2.1, 1.4.2, 1.4.1.1, 1.4.1, 1.4.0.1, 1.4.0, 1.3.0.2,
1.3.0.1, 1.3.0, 1.2.0.1, 1.2.0, 1.1.3, 1.1.2, 1.1.1, 1.1.0, 1.0.0.1, 1.0.0,
0.9.2.2, 0.9.2.1, 0.9.2, 0.9.1.1, 0.9.1, 0.9.0, 0.8.1, 0.8, 0.6.1, 0.6.0,
0.5.0, 0.4.3, 0.3.0, 0.2.0 (global constraint requires ==1.4.2.2)
Resolving dependencies...
cabal returned a bad result, exiting

Actually I get the same if I run "runghc app/stackage.hs build".

I also tried cabal installing Cabal-1.16.0.3 once I noticed it in the README.
So is the assumption that we should be testing with ghc-7.6?

from stackage.

snoyberg avatar snoyberg commented on September 24, 2024

That's a separate error: hspec/hspec#114

The reason for Cabal 1.16 is because there are some bugs in 1.14 which affect sandboxing, especially with dynamic linking. But I'm still doing all of my testing on GHC 7.4.2.

from stackage.

juhp avatar juhp commented on September 24, 2024

Ah ok I see thanks - then probably this can be closed.

Couldn't stackage try ansi-terminal-0.5.5 in this case though (maybe with a warning) instead of just giving up?

from stackage.

snoyberg avatar snoyberg commented on September 24, 2024

It could, but (IMO) that's detrimental. Part of the goal here is to make sure that all packages compile with the newest versions of all their dependencies. We could add a special rule to Stackage.Config that we should specifically use ansi-terminal 0.5.5, but it's better if hspec is just updated.

from stackage.

juhp avatar juhp commented on September 24, 2024

Ok, I hardcorded ansi-terminal locally with:

 addRange "hackage" "ansi-terminal" "== 0.5.5"

and now build gets me to:

Found the following mismtaches
OnlySimpleList "tar-0.4.0.1"

I looked briefly at CheckPlan.hs but no sure exactly what this means?
(I can also move this discussion elsewhere if there is a better place:)

from stackage.

juhp avatar juhp commented on September 24, 2024

Ah after unregistering user tar lib then:

No mismatches, starting the sandboxed build.
stackage: Unsupported Cabal version: 1.14.0

ok...

from stackage.

snoyberg avatar snoyberg commented on September 24, 2024

The issue is that you have tar installed in your global package database (or so I'm guessing). As a result, cabal-install doesn't want to install it, but stackage still wants to. As a result, you get a mismatch (or mismtach, as I prefer to call it).

from stackage.

snoyberg avatar snoyberg commented on September 24, 2024

Hmm... the tar lib was installed in the user database? That shouldn't be causing trouble, as the command we pass to cabal-install tells it to ignore user databases.

As for Cabal: which version of cabal-install are you using?

from stackage.

juhp avatar juhp commented on September 24, 2024

Yes in user (pulled in by "cabal install stackage" - guess I should use cabal-dev).

This is cabal-install-0.14.0 from HP 2012.4.

from stackage.

snoyberg avatar snoyberg commented on September 24, 2024

I can't explain the tar issue, but stackage requires cabal-install and Cabal to be 1.16 to avoid some sandboxing bugs in 1.14.

from stackage.

juhp avatar juhp commented on September 24, 2024

Ok I see - yeah stackage is building now for me with cabal-install-1.16.x.

from stackage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.