reflex-starter icon indicating copy to clipboard operation
reflex-starter copied to clipboard

Package identifiers not found on first build

Open BartAdv opened this issue 8 years ago • 21 comments

First stack build invocation gave me:

Downloaded lts-5.11 build plan.    
Caching build plan
Fetched package index.
The following package identifiers were not found in your indices: alarmclock-0.2.0.9, conduit-extra-1.1.13.1, exact-real-0.12.1, flow-1.0.6, hpc-coveralls-1.0.4, hxt-css-0.1.0.2, twitter-conduit-0.1.3, uuid-1.3.12, uuid-types-1.0.3, vector-th-unbox-0.2.1.5

But I just reissued the command and it seems to be progressing. Not sure if it's related to stack itself or this project.

EDIT:

Build failed:

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output data-default-class --expand-pkgroot exited with ExitFailure 1


ghcjs-pkg-0.2.0-7.10.2: cannot find package data-default-class


Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output prelude-extras --expand-pkgroot exited with ExitFailure 1


ghcjs-pkg-0.2.0-7.10.2: cannot find package prelude-extras


Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output polyparse --expand-pkgroot exited with ExitFailure 1


ghcjs-pkg-0.2.0-7.10.2: cannot find package polyparse


Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output dependent-sum --expand-pkgroot exited with ExitFailure 1


ghcjs-pkg-0.2.0-7.10.2: cannot find package dependent-sum


Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output StateVar --expand-pkgroot exited with ExitFailure 1


ghcjs-pkg-0.2.0-7.10.2: cannot find package StateVar

BartAdv avatar Apr 15 '16 14:04 BartAdv

Hi @BartAdv and thank you for the feedback.

Can you please try to run stack upgrade --git and then give it a try again?

yamafaktory avatar Apr 15 '16 15:04 yamafaktory

Hi, I'm using stack from git already, version 1.0.5.

BartAdv avatar Apr 15 '16 19:04 BartAdv

@BartAdv could you try to remove the compiler-check: match-exact on line #15 in the stack.yaml file?

yamafaktory avatar Apr 15 '16 21:04 yamafaktory

Hm, it changed things, but rather in unexpected way:

Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output exceptions --expand-pkgroot exited with ExitFailure 1


ghcjs-pkg-0.2.0-7.10.2: cannot find package exceptions


Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output exception-transformers --expand-pkgroot exited with ExitFailure 1


ghcjs-pkg-0.2.0-7.10.2: cannot find package exception-transformers


Running /home/bart/.stack/programs/x86_64-linux/ghcjs-0.2.0.20160409_ghc-7.10.2/bin/ghcjs-pkg --user --no-user-package-db --package-db /home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb describe --simple-output contravariant --expand-pkgroot exited with ExitFailure 1


ghcjs-pkg-0.2.0-7.10.2: cannot find package contravariant

More hints: I was using reflex with stack previously (loosely basing on https://github.com/luigy/try-stack-reflex) so maybe there is something in my ~/.stack directory that caused the issue?

BartAdv avatar Apr 15 '16 22:04 BartAdv

@BartAdv thanks for the feedback, seems that it could be related to your previous install. Definitely, try to remove your ~/.stack directory and also the .stack-work directory within the project's directory as explained here. You can also check your $PATH as per this section of the stack FAQ.

yamafaktory avatar Apr 16 '16 06:04 yamafaktory

A bit closer (after clearing directories):

    Building distributive-0.5.0.2...
    Preprocessing library distributive-0.5.0.2...

    /tmp/stack27743/distributive-0.5.0.2/src/Data/Distributive.hs:42:8:
        Could not find module ‘Data.Tagged’
        Perhaps you haven't installed the "js" libraries for package ‘tagged-0.8.3@tagge_9au5ZluO165AFWgA7Twvlm’?
        Use -v to see a list of the files searched for.


--  While building package cpphs-1.19.3 using:
      /home/bart/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.4.0-ghcjs-0.2.0_ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0_ghcjs build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/bart/sources/reflex-starter/.stack-work/logs/cpphs-1.19.3.log

    Configuring cpphs-1.19.3...
    Building cpphs-1.19.3...
    Preprocessing library cpphs-1.19.3...

    /tmp/stack19195/cpphs-1.19.3/Language/Preprocessor/Cpphs/CppIfdef.hs:21:8:
        Could not find module ‘Text.Parse’
        Perhaps you haven't installed the "js" libraries for package ‘polyparse-1.11@polyp_Bxdx8Q4n5AC83gxZYplOqm’?
        Use -v to see a list of the files searched for.

Will check if my $PATH is correct later.

BartAdv avatar Apr 16 '16 09:04 BartAdv

@BartAdv did you manage to check your $PATH?

yamafaktory avatar Apr 22 '16 11:04 yamafaktory

Not sure what exactly I should check. I've got 7.10.3 ghc in my $PATH.

On Fri, Apr 22, 2016 at 1:33 PM, Davy Duperron [email protected] wrote:

@BartAdv https://github.com/BartAdv did you manage to check your $PATH?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/yamafaktory/reflex-starter/issues/1#issuecomment-213387852

BartAdv avatar Apr 22 '16 11:04 BartAdv

Can you eventually try the commands listed in https://github.com/yamafaktory/reflex-starter/issues/2#issuecomment-213136381 ?

yamafaktory avatar Apr 22 '16 12:04 yamafaktory

This doesn't really make sense in my setup, as the ghc 7.10.3 is locally installed by me so there are no directories for it either in stack/programs or int stack/snapshots/xxx/...

Ah wait, second comment, will do.

// EDIT:

This gives the same error as above.

BartAdv avatar Apr 22 '16 12:04 BartAdv

Could you tell me what is the output of stack exec -- ghcjs-pkg list Cabal?

yamafaktory avatar Apr 22 '16 13:04 yamafaktory

list Cabal

/home/bart/.ghcjs/x86_64-linux-0.2.0-7.10.2/ghcjs/package.conf.d
   Cabal-1.22.4.0
/home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb
/home/bart/sources/reflex-starter/.stack-work/install/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb

list

/home/bart/.ghcjs/x86_64-linux-0.2.0-7.10.2/ghcjs/package.conf.d:
    Cabal-1.22.4.0
    StateVar-1.1.0.3
    aeson-0.9.0.1
    array-0.5.1.0
    async-2.0.1.6
    attoparsec-0.13.0.1
    base-4.8.0.0
    binary-0.7.5.0
    rts-1.0
    bytestring-0.10.6.0
    case-insensitive-1.2.0.4
    containers-0.5.6.3
    contravariant-1.4
    data-default-0.5.3
    data-default-class-0.0.1
    data-default-instances-base-0.0.1
    data-default-instances-containers-0.0.1
    data-default-instances-dlist-0.0.1
    data-default-instances-old-locale-0.0.1
    deepseq-1.4.1.1
    dependent-map-0.2.1.0
    dependent-sum-0.3.2.1
    dependent-sum-template-0.0.0.4
    directory-1.2.2.0
    dlist-0.7.1.1
    exception-transformers-0.4.0.3
    exceptions-0.8.2.1
    extensible-exceptions-0.1.1.4
    filepath-1.4.0.0
    ghc-prim-0.4.0.0
    ghcjs-base-0.2.0.0
    ghcjs-prim-0.1.0.0
    hashable-1.2.3.2
    integer-gmp-0.5.1.0
    mtl-2.2.1
    old-locale-1.0.0.7
    old-time-1.1.0.3
    parallel-3.2.0.6
    polyparse-1.11
    prelude-extras-0.4.0.3
    pretty-1.1.3.2
    primitive-0.6.1.0
    process-1.2.3.0
    safe-0.3.9
    scientific-0.3.3.8
    semigroups-0.18.1
    stm-2.4.4
    syb-0.5.1
    tagged-0.8.3
    template-haskell-2.10.0.0
    text-1.2.1.1
    th-expand-syns-0.3.0.6
    th-extras-0.0.0.2
    th-lift-0.7.6
    th-orphans-0.13.0
    th-reify-many-0.1.4
    time-1.5.0.1
    transformers-0.4.3.0
    transformers-compat-0.4.0.4
    unix-2.7.1.0
    unordered-containers-0.2.5.1
    vector-0.11.0.0
    void-0.7.1

/home/bart/.stack/snapshots/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb:
    base-orphans-0.5.3
    reflection-2.1.2

/home/bart/sources/reflex-starter/.stack-work/install/x86_64-linux/lts-5.11/ghcjs-0.2.0_ghc-7.10.2/pkgdb:
    ghcjs-dom-0.2.3.1
    ref-tf-0.4

BartAdv avatar Apr 22 '16 14:04 BartAdv

Looks good to me (I have a similar output).

Try to run stack without using your local system installed GHC: stack build --no-system-ghc.

yamafaktory avatar Apr 22 '16 20:04 yamafaktory

I've run that as per your request earlier today, with no luck.

BartAdv avatar Apr 22 '16 21:04 BartAdv

Sorry, you're right it was previously mentioned.

Can you finally try stack build --only-dependencies?

Afterward, if it still fails, I think the best option is to fill an issue directly in Stack.

yamafaktory avatar Apr 22 '16 21:04 yamafaktory

@BartAdv have you tried running the last suggested command?

yamafaktory avatar Apr 26 '16 04:04 yamafaktory

Ah right, forgot there was one more suggestion there. Anyway, it's the same.

Curious, what does that info mean, I've noticed I haven't pasted the full logs before:

Ignoring that the GHCJS boot package "scientific" has a different version, 0.3.3.8, than the resolver's wanted version, 0.3.4.6
Ignoring that the GHCJS boot package "case-insensitive" has a different version, 1.2.0.4, than the resolver's wanted version, 1.2.0.6
Ignoring that the GHCJS boot package "hashable" has a different version, 1.2.3.2, than the resolver's wanted version, 1.2.4.0
Ignoring that the GHCJS boot package "async" has a different version, 2.0.1.6, than the resolver's wanted version, 2.1.0
Ignoring that the GHCJS boot package "text" has a different version, 1.2.1.1, than the resolver's wanted version, 1.2.2.1
Ignoring that the GHCJS boot package "syb" has a different version, 0.5.1, than the resolver's wanted version, 0.6
Ignoring that the GHCJS boot package "stm" has a different version, 2.4.4, than the resolver's wanted version, 2.4.4.1
Ignoring that the GHCJS boot package "parallel" has a different version, 3.2.0.6, than the resolver's wanted version, 3.2.1.0
Ignoring that the GHCJS boot package "dlist" has a different version, 0.7.1.1, than the resolver's wanted version, 0.7.1.2
Ignoring that the GHCJS boot package "pretty" has a different version, 1.1.3.2, than the resolver's wanted version, 1.1.2.0
Ignoring that the GHCJS boot package "containers" has a different version, 0.5.6.3, than the resolver's wanted version, 0.5.6.2
Ignoring that the GHCJS boot package "transformers" has a different version, 0.4.3.0, than the resolver's wanted version, 0.4.2.0

BartAdv avatar Apr 26 '16 08:04 BartAdv

@BartAdv thanks for the feedback. Well, I guess the best option is to fill an issue directly in Stack. If you do so, please let me know the result so that I can close this issue.

yamafaktory avatar Apr 26 '16 08:04 yamafaktory

I think I've hit a related issue or maybe even the same one, but without using reflex-starter. I've opened https://github.com/commercialhaskell/stack/issues/2495.

emmanueltouzery avatar Aug 15 '16 13:08 emmanueltouzery

@emmanueltouzery Thanks for opening an issue on the stack tracker!

yamafaktory avatar Aug 15 '16 13:08 yamafaktory

To summarize:

  • thread starts with stack deep clone issue fixed
  • then random missing package from random use of ghcjs bundle and stack fixable by using "properly" aligned bundles
  • as previously, after lying to resolver about installed versions some packages can not build as they have different dependencies fixable as above
  • classic no global ghc fixable by adding it to path
  • then random has a different version from random use of ghcjs bundle and stack resolver fixable by using "properly" aligned bundles

Is there anything else?

tolysz avatar Sep 30 '16 13:09 tolysz