Hi!

Which version of stack are you using?  Seems similar to this old fixed bug
https://github.com/commercialhaskell/stack/issues/1232

How was it installed?  If via the haskell platform, that sometimes doesn't
work very well.  Usual installation is to just install stack, and it can
install other tools.

If you are on an up-to-date version (1.5.1), then perhaps try deleting the
dir at "stack path --stack-root", and also deleting the ".stack-work" in
your current directory.

Hope that helps!
-Michael


On Thu, Oct 19, 2017 at 3:40 PM, <[email protected]> wrote:

> I just got started learning Haskell. And I chose to work with it on my PC
> through stack. First day, I worked with Chris Allen's tutorial
> <http://howistart.org/posts/haskell/1/> and got stuck at the `stack
> build` part of it. The command exited with an error as shown below:
>
>     C:\Users\USER\haskellProjects\bassbull>stack build
>     primitive-0.6.2.0: download
>     integer-logarithms-1.0.2: download
>     primitive-0.6.2.0: configure
>     primitive-0.6.2.0: build
>     integer-logarithms-1.0.2: configure
>     integer-logarithms-1.0.2: build
>     primitive-0.6.2.0: copy/register
>     integer-logarithms-1.0.2: copy/register
>     Progress: 2/11Running C:\Users\USER\AppData\Local\
> Programs\stack\x86_64-windows\
>     ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db
> C:\sr\snapsho
>     ts\1602ab97\pkgdb describe --simple-output integer-logarithms
> --expand-pkgroot e
>     xited with ExitFailure 1
>
>     WARNING: cache is out of date: C:/Users/USER/AppData/Local/
> Programs/stack/x86_64
>     -windows/ghc-8.0.2\lib\package.conf.d\package.cache
>     ghc will see an old view of this package db. Use 'ghc-pkg recache' to
> fix.
>     ghc-pkg.EXE: cannot find package integer-logarithms
>
>     Running C:\Users\USER\AppData\Local\Programs\stack\x86_64-windows\
> ghc-8.0.2\bin\
>     ghc-pkg.EXE --user --no-user-package-db --package-db
> C:\sr\snapshots\1602ab97\pk
>     gdb describe --simple-output primitive --expand-pkgroot exited with
> ExitFailure
>     1
>
>     WARNING: cache is out of date: C:/Users/USER/AppData/Local/
> Programs/stack/x86_64
>     -windows/ghc-8.0.2\lib\package.conf.d\package.cache
>     ghc will see an old view of this package db. Use 'ghc-pkg recache' to
> fix.
>     ghc-pkg.EXE: cannot find package primitive
>
>     C:\Users\USER\haskellProjects\bassbull>stack exec ghc-pkg recache
>
>     C:\Users\USER\haskellProjects\bassbull>stack build
>     integer-logarithms-1.0.2: configure
>     integer-logarithms-1.0.2: build
>     primitive-0.6.2.0: configure
>     primitive-0.6.2.0: build
>     integer-logarithms-1.0.2: copy/register
>     primitive-0.6.2.0: copy/register
>     Progress: 2/11Running C:\Users\USER\AppData\Local\
> Programs\stack\x86_64-windows\
>     ghc-8.0.2\bin\ghc-pkg.EXE --user --no-user-package-db --package-db
> C:\sr\snapsho
>     ts\1602ab97\pkgdb describe --simple-output primitive --expand-pkgroot
> exited wit
>     h ExitFailure 1
>
>     ghc-pkg.EXE: cannot find package primitive
>
>     Running C:\Users\USER\AppData\Local\Programs\stack\x86_64-windows\
> ghc-8.0.2\bin\
>     ghc-pkg.EXE --user --no-user-package-db --package-db
> C:\sr\snapshots\1602ab97\pk
>     gdb describe --simple-output integer-logarithms --expand-pkgroot
> exited with Exi
>     tFailure 1
>
>     ghc-pkg.EXE: cannot find package integer-logarithms
>
>     C:\Users\USER\haskellProjects\bassbull>
>
> After trying out other tutorials I concluded that this happened only when
> trying to install external packages and dependencies.
>
> Please I need help getting past this challenge I am facing, as I am very
> much enthusiastic about learning to code in (and coding in) Haskell.
>
> --
> You received this message because you are subscribed to the Google Groups
> "haskell-stack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/haskell-stack/950fceda-72e5-467e-ba9a-3f5d8dba78c3%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/haskell-stack/950fceda-72e5-467e-ba9a-3f5d8dba78c3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CAEYHaY7cwCdBPUOoXnphnRCSoL_vX_a%2Be4UKwbLwiuALja6ySQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to