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

hint/plugins shadowing "directory" dependency. #1522

Closed
MichaelXavier opened this issue Dec 16, 2015 · 3 comments
Closed

hint/plugins shadowing "directory" dependency. #1522

MichaelXavier opened this issue Dec 16, 2015 · 3 comments

Comments

@MichaelXavier
Copy link

I'm working on porting a large Haskell project to stack. I've managed to get the dependencies to resolve via heavy use of extra-deps but it looks like the last 2 dependencies, plugin and hint are having problems in the build phase:

Version 0.1.11.0, Git revision a703101c7273dce0cbebcef809eefd9f66267863 x86_64
2015-12-16 08:23:52.816780: [debug] Checking for project config at: /home/michael/src/myproject/stack.yaml @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Config src/Stack/Config.hs:577:9)
2015-12-16 08:23:52.818173: [debug] Loading project config file stack.yaml @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Config src/Stack/Config.hs:600:13)
2015-12-16 08:23:52.821220: [debug] Run process: ldd /home/michael/.local/bin/stack @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:52.830699: [debug] Trying to decode /home/michael/.stack/build-plan-cache/x86_64-linux/lts-2.22.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-16 08:23:52.838112: [debug] Success decoding /home/michael/.stack/build-plan-cache/x86_64-linux/lts-2.22.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-16 08:23:52.838257: [debug] Trying to decode /home/michael/.stack/indices/Hackage/00-index.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-16 08:23:53.059652: [debug] Success decoding /home/michael/.stack/indices/Hackage/00-index.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-16 08:23:53.068278: [debug] Run process: ghc --info @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:53.102277: [debug] Run process: ghc --numeric-version @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:53.119183: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal version @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:53.134337: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:53.147996: [debug] Run process: locale -a @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:53.212553: [debug] Checking resolver: lts-2.22 @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Source src/Stack/Build/Source.hs:164:17)
2015-12-16 08:23:53.212736: [debug] Trying to decode /home/michael/.stack/build-plan-cache/x86_64-linux/lts-2.22.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-16 08:23:53.216921: [debug] Success decoding /home/michael/.stack/build-plan-cache/x86_64-linux/lts-2.22.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-16 08:23:53.899449: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:53.929825: [debug] Ignoring package haskell98 due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.929992: [debug] Ignoring package haskeline due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930094: [debug] Ignoring package binary due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930160: [debug] Ignoring package Cabal due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930256: [debug] Ignoring package hpc due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930314: [debug] Ignoring package process due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930372: [debug] Ignoring package directory due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930551: [debug] Ignoring package unix due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930610: [debug] Ignoring package time due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930680: [debug] Ignoring package bytestring due to  wrong location: (Nothing,Local) @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Installed src/Stack/Build/Installed.hs:189:5)
2015-12-16 08:23:53.930802: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/michael/.stack/snapshots/x86_64-linux/lts-2.22/7.8.4/pkgdb dump --expand-pkgroot @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:53.973428: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/pkgdb dump --expand-pkgroot @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:54.143909: [debug] Trying to decode /home/michael/.stack/indices/Hackage/00-index.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-16 08:23:54.354327: [debug] Success decoding /home/michael/.stack/indices/Hackage/00-index.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-16 08:23:54.930167: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_9nUJvGDDZgz0JVHcvYzufd:System.Process.Read src/System/Process/Read.hs:267:3)
2015-12-16 08:23:54.945851: [debug] Trying to decode /home/michael/.stack/indices/Hackage/00-index.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-16 08:23:54.946319: [debug] Trying to decode /home/michael/.stack/indices/Hackage/00-index.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-16 08:23:55.278479: [debug] Success decoding /home/michael/.stack/indices/Hackage/00-index.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-16 08:23:55.281029: [debug] Success decoding /home/michael/.stack/indices/Hackage/00-index.cache @(stack_9nUJvGDDZgz0JVHcvYzufd:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-16 08:23:55.306671: [info] plugins-1.5.5.0: configure @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Execute src/Stack/Build/Execute.hs:668:23)
2015-12-16 08:23:55.312553: [debug] Run process: /opt/ghc/7.8.4/bin/ghc --make -odir /tmp/stack22255/plugins-1.5.5.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/setup -hidir /tmp/stack22255/plugins-1.5.5.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/setup -i -i. -clear-package-db -global-package-db -package-db=/home/michael/.stack/snapshots/x86_64-linux/lts-2.22/7.8.4/pkgdb -package-db=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/pkgdb -hide-all-packages -package=Cabal-1.18.1.5 -package-id=array-0.5.0.0-470385a50d2b78598af85cfe9d988e1b -package-id=base-4.7.0.2-bfd89587617e381ae01b8dd7b6c7f1c1 -package-id=binary-0.7.1.0-f867dbbb69966feb9f5c4ef7695a70a5 -package-id=bytestring-0.10.4.0-d6f1d17d717e8652498cab8269a0acd5 -package-id=containers-0.5.5.1-d4bd887fb97aa3a46cbadc13709b7653 -package-id=deepseq-1.3.0.2-63a1ab91b7017a28bb5d04cb1b5d2d02 -package-id=directory-1.2.1.0-7fc2b1d69256b61bfd103ed2b9916141 -package-id=filepath-1.3.0.2-25a474a9272ae6260626ce0d70ad1cab -package-id=ghc-7.8.4-6c4818bc66adb23509058069f781d99a -package-id=ghc-paths-0.1.0.9-6c36fdaedd7fdf2995381140cdf45dac -package-id=ghc-prim-0.3.1.0-a24f9c14c632d75b683d0f93283aea37 -package-id=haskell-src-1.0.2.0-ef75cbec7aa432243244460fcb8bce8a -package-id=hoopl-3.10.0.1-267659e4b5b51c3d2e02f2a6d6f46936 -package-id=integer-gmp-0.5.1.0-26579559b3647acf4f01d5edd9491a46 -package-id=old-locale-1.0.0.6-50b0125c49f76af85dc7aa22975cdc34 -package-id=old-time-1.1.0.2-e3f776e97c1a6ff1770b04943a7ef7c6 -package-id=pretty-1.1.1.1-0984f47ffe93ef3983c80b96280f1c3a -package-id=process-1.2.0.0-ac9fa2bafae41ac74ac4359b46daaaa0 -package-id=random-1.0.1.1-f5e39e87d4396852de56e00e7e42ee65 -package-id=template-haskell-2.9.0.0-6d27c2b362b15abb1822f2f34b9ae7f9 -package-id=terminfo-0.4.0.0-c1d02a7210b0d1bc250d87463b38b8d1 -package-id=time-1.4.2-9b3076800c33f8382c38628f35717951 -package-id=transformers-0.3.0.0-6458c21515cab7c1cf21e53141557a1c -package-id=unix-2.7.0.1-f8658ba9ec1c4fba8a371a8e0f42ec6c -package-id=xhtml-3000.2.1-6a3ed472b07e58fe29db22a5bc2bdb06 /tmp/stack22255/plugins-1.5.5.0/Setup.lhs -o /tmp/stack22255/plugins-1.5.5.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/setup/setup @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Execute src/Stack/Build/Execute.hs:812:21)
2015-12-16 08:23:55.492153: [info] hint-0.4.2.3: configure @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Execute src/Stack/Build/Execute.hs:668:23)
2015-12-16 08:23:55.492612: [debug] Run process: /home/michael/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.18.1.5-ghc-7.8.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.18.1.5 configure --with-ghc=/opt/ghc/7.8.4/bin/ghc --with-ghc-pkg=/opt/ghc/7.8.4/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/home/michael/.stack/snapshots/x86_64-linux/lts-2.22/7.8.4/pkgdb --package-db=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/pkgdb --libdir=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/lib --bindir=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/bin --datadir=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/share --libexecdir=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/libexec --sysconfdir=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/etc --docdir=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/doc/hint-0.4.2.3 --htmldir=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/doc/hint-0.4.2.3 --haddockdir=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/doc/hint-0.4.2.3 --constraint=base==4.7.0.2 --constraint=directory==1.2.1.0 --constraint=exceptions==0.8.0.2 --constraint=extensible-exceptions==0.1.1.4 --constraint=filepath==1.3.0.2 --constraint=ghc==7.8.4 --constraint=ghc-mtl==1.2.1.0 --constraint=ghc-paths==0.1.0.9 --constraint=mtl==2.1.3.1 --constraint=random==1.0.1.1 --constraint=unix==2.7.0.1 @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Execute src/Stack/Build/Execute.hs:812:21)
2015-12-16 08:23:56.543332: [info] hint-0.4.2.3: build @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Execute src/Stack/Build/Execute.hs:668:23)
2015-12-16 08:23:56.543500: [debug] Run process: /home/michael/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.18.1.5-ghc-7.8.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.18.1.5 build --ghc-options " -ddump-hi -ddump-to-file" @(stack_9nUJvGDDZgz0JVHcvYzufd:Stack.Build.Execute src/Stack/Build/Execute.hs:812:21)
Progre       
--  While building package hint-0.4.2.3 using:
      /home/michael/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.18.1.5-ghc-7.8.4 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.18.1.5 build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/michael/src/myproject/.stack-work/logs/hint-0.4.2.3.log

    Configuring hint-0.4.2.3...
    Warning: This package indirectly depends on multiple versions of the same
    package. This is highly likely to cause a compile failure.
    package unix-2.7.0.1 requires bytestring-0.10.4.0
    package unix-2.7.0.1 requires bytestring-0.10.4.0
    package ghc-7.8.4 requires bytestring-0.10.4.0
    package binary-0.7.1.0 requires bytestring-0.10.4.0
    package Cabal-1.18.1.5 requires bytestring-0.10.4.0
    package process-1.2.0.0 requires directory-1.2.1.0
    package hpc-0.6.0.1 requires directory-1.2.1.0
    package ghc-7.8.4 requires directory-1.2.1.0
    package Cabal-1.18.1.5 requires directory-1.2.1.0
    package hint-0.4.2.3 requires directory-1.2.1.0
    package unix-2.7.0.1 requires time-1.4.2
    package hpc-0.6.0.1 requires time-1.4.2
    package ghc-7.8.4 requires time-1.4.2
    package directory-1.2.1.0 requires time-1.4.2
    package Cabal-1.18.1.5 requires time-1.4.2
    package unix-2.7.0.1 requires time-1.4.2
    package random-1.0.1.1 requires time-1.4.2
    package directory-1.2.1.0 requires time-1.4.2
    package hint-0.4.2.3 requires unix-2.7.0.1
    package directory-1.2.1.0 requires unix-2.7.0.1
    package process-1.2.0.0 requires unix-2.7.0.1
    package ghc-7.8.4 requires unix-2.7.0.1
    package directory-1.2.1.0 requires unix-2.7.0.1
    package Cabal-1.18.1.5 requires unix-2.7.0.1
    Building hint-0.4.2.3...
    Preprocessing library hint-0.4.2.3...
    <command line>: cannot satisfy -package-id directory-1.2.1.0-7fc2b1d69256b61bfd103ed2b9916141: 
        directory-1.2.1.0-7fc2b1d69256b61bfd103ed2b9916141 is shadowed by package directory-1.2.1.0-07cd1f59e3c6cac5e3e180019c59a115
        (use -v for more information)


--  While building package plugins-1.5.5.0 using:
      /opt/ghc/7.8.4/bin/ghc --make -odir /tmp/stack22255/plugins-1.5.5.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/setup -hidir /tmp/stack22255/plugins-1.5.5.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/setup -i -i. -clear-package-db -global-package-db -package-db=/home/michael/.stack/snapshots/x86_64-linux/lts-2.22/7.8.4/pkgdb -package-db=/home/michael/src/myproject/.stack-work/install/x86_64-linux/lts-2.22/7.8.4/pkgdb -hide-all-packages -package=Cabal-1.18.1.5 -package-id=array-0.5.0.0-470385a50d2b78598af85cfe9d988e1b -package-id=base-4.7.0.2-bfd89587617e381ae01b8dd7b6c7f1c1 -package-id=binary-0.7.1.0-f867dbbb69966feb9f5c4ef7695a70a5 -package-id=bytestring-0.10.4.0-d6f1d17d717e8652498cab8269a0acd5 -package-id=containers-0.5.5.1-d4bd887fb97aa3a46cbadc13709b7653 -package-id=deepseq-1.3.0.2-63a1ab91b7017a28bb5d04cb1b5d2d02 -package-id=directory-1.2.1.0-7fc2b1d69256b61bfd103ed2b9916141 -package-id=filepath-1.3.0.2-25a474a9272ae6260626ce0d70ad1cab -package-id=ghc-7.8.4-6c4818bc66adb23509058069f781d99a -package-id=ghc-paths-0.1.0.9-6c36fdaedd7fdf2995381140cdf45dac -package-id=ghc-prim-0.3.1.0-a24f9c14c632d75b683d0f93283aea37 -package-id=haskell-src-1.0.2.0-ef75cbec7aa432243244460fcb8bce8a -package-id=hoopl-3.10.0.1-267659e4b5b51c3d2e02f2a6d6f46936 -package-id=integer-gmp-0.5.1.0-26579559b3647acf4f01d5edd9491a46 -package-id=old-locale-1.0.0.6-50b0125c49f76af85dc7aa22975cdc34 -package-id=old-time-1.1.0.2-e3f776e97c1a6ff1770b04943a7ef7c6 -package-id=pretty-1.1.1.1-0984f47ffe93ef3983c80b96280f1c3a -package-id=process-1.2.0.0-ac9fa2bafae41ac74ac4359b46daaaa0 -package-id=random-1.0.1.1-f5e39e87d4396852de56e00e7e42ee65 -package-id=template-haskell-2.9.0.0-6d27c2b362b15abb1822f2f34b9ae7f9 -package-id=terminfo-0.4.0.0-c1d02a7210b0d1bc250d87463b38b8d1 -package-id=time-1.4.2-9b3076800c33f8382c38628f35717951 -package-id=transformers-0.3.0.0-6458c21515cab7c1cf21e53141557a1c -package-id=unix-2.7.0.1-f8658ba9ec1c4fba8a371a8e0f42ec6c -package-id=xhtml-3000.2.1-6a3ed472b07e58fe29db22a5bc2bdb06 /tmp/stack22255/plugins-1.5.5.0/Setup.lhs -o /tmp/stack22255/plugins-1.5.5.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.5/setup/setup
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/michael/src/myproject/.stack-work/logs/plugins-1.5.5.0.log

    <command line>: cannot satisfy -package-id directory-1.2.1.0-7fc2b1d69256b61bfd103ed2b9916141: 
        directory-1.2.1.0-7fc2b1d69256b61bfd103ed2b9916141 is shadowed by package directory-1.2.1.0-07cd1f59e3c6cac5e3e180019c59a115
        (use -v for more information)

I've looked at some similar issues such as #1025 but the recommendation there of not specifying a time dependency is not possible. Our dependencies are such that we're still stuck on time-1.4.2. I know our dependencies correctly build and install with cabal itself and I have a working freeze file. I've tried setting various permutations of explicit-setup-deps to try to remedy this but it hasn't changed anything. This transition is kind of dead in the water and I'm not really sure what my next troubleshooting steps should be.

@MichaelXavier
Copy link
Author

To complicate matters, looking at my freeze file it looks like one of my dependencies depends on Cabal-1.18 which I'm sure is older than the Cabal that stack is using and depends on Directory...

@mgsloan
Copy link
Contributor

mgsloan commented Dec 17, 2015

Are bytestring, directory, and time in your extra-deps list? Perhaps you can resolve this issue by removing them, since the stackage snapshot does have old enough versions?

I can reproduce this issue by modifying the default new template with:

resolver: lts-2.16
extra-deps:
- time-1.4.2                                                                                                                                                                          

And adding a dependency on time and ghc to the cabal file. The issue is that it's installing another copy of time-1.4.2, and so now there are two (one in the global DB, one in the snapshot DB). Usually this works out, but we can't reinstall the ghc package. I think we should add some handling for this case, which gives better error messages.

It's interesting to take a look at what happens when you select a different version. Instead of the cannot satisfy -package-id ... error, I get:

mgsloan@computer:~/fpco/test-stack/ghc-deps$ stack build
time-1.4.2: unregistering
time-1.4.1: download
time-1.4.1: configure
time-1.4.1: build
time-1.4.1: copy/register
ghc-deps-0.1.0.0: configure
Configuring ghc-deps-0.1.0.0...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package ghc-deps-0.1.0.0 requires time-1.4.1
package unix-2.7.0.1 requires time-1.4.2
package hpc-0.6.0.1 requires time-1.4.2
package ghc-7.8.4 requires time-1.4.2
package directory-1.2.1.0 requires time-1.4.2
package Cabal-1.18.1.5 requires time-1.4.2
ghc-deps-0.1.0.0: build
Preprocessing library ghc-deps-0.1.0.0...
[1 of 1] Compiling Lib              ( src/Lib.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Lib.o )
In-place registering ghc-deps-0.1.0.0...
Preprocessing executable 'ghc-deps-exe' for ghc-deps-0.1.0.0...
[1 of 1] Compiling Main             ( app/Main.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ghc-deps-exe/ghc-deps-exe-tmp/Main.o )
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/ghc-deps-exe/ghc-deps-exe ...
ghc-deps-0.1.0.0: copy/register
Installing library in
/home/mgsloan/fpco/test-stack/ghc-deps/.stack-work/install/x86_64-linux/lts-2.16/7.8.4/lib/x86_64-linux-ghc-7.8.4/ghc-deps-0.1.0.0
Installing executable(s) in
/home/mgsloan/fpco/test-stack/ghc-deps/.stack-work/install/x86_64-linux/lts-2.16/7.8.4/bin
Registering ghc-deps-0.1.0.0...
Completed 2 action(s).

looking at my freeze file it looks like one of my dependencies depends on Cabal-1.18 which I'm sure is older than the Cabal that stack is using

The cabal version being use for building / installing depends on the snapshot, so it does use Cabal-1.18 when building with LTS 2.*

@MichaelXavier
Copy link
Author

@mgsloan Cheers! That worked. I had an explicit bytestring dependency and dropping that seemed to solve the issue.

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

2 participants