cdosborn/lit

Unresolved Dependencies in Install

Closed this issue · 6 comments

$ cabal install lit
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: lit-0.1.0.5 (user goal)
next goal: directory (dependency of lit-0.1.0.5)
rejecting: directory-1.2.2.0/installed-16f... (conflict: directory =>
filepath==1.4.0.0/installed-8fe..., lit => filepath==1.3.*)
trying: directory-1.2.4.0
next goal: unix (dependency of directory-1.2.4.0)
rejecting: unix-2.7.1.0/installed-750... (conflict: unix =>
time==1.5.0.1/installed-710..., lit => time==1.4.*)
trying: unix-2.7.1.0
trying: bytestring-0.10.6.0/installed-6e8... (dependency of unix-2.7.1.0)
next goal: time (dependency of lit-0.1.0.5)
rejecting: time-1.5.0.1/installed-710..., 1.5.0.1, 1.5 (conflict: lit =>
time==1.4.*)
rejecting: time-1.4.2, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4 (conflict: bytestring =>
deepseq==1.4.1.1/installed-5de..., time => deepseq>=1.1 && <1.4)
rejecting: time-1.3, 1.2.0.5, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2, 1.1.4,
1.1.3, 1.1.2.4, 1.1.2.3, 1.1.2.2, 1.1.2.1, 1.1.2.0, 1.0 (conflict: lit =>
time==1.4.*)
Dependency tree exhaustively searched.

This is on Late 2013 Mac Book Pro, running OSX 10.11 (El Capitan).

I uploaded a newer version. Would you retry and let me know if the conflicts remain?

I'm being "that guy" (or gal, just as reasonably) who asks for help, doesn't do anything to fix it myself, and then disappears when you try to respond.

I'm sorry about that.

tl;dr

Some dependencies still failed to install, even after updating and attempting a fresh install.

Details

I tried installing lit again:

$ cabal install lit
Warning: The package list for 'hackage.haskell.org' is 84.0 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: lit-0.1.0.5 (user goal)
next goal: directory (dependency of lit-0.1.0.5)
rejecting: directory-1.2.2.0/installed-16f... (conflict: directory =>
filepath==1.4.0.0/installed-8fe..., lit => filepath==1.3.*)
trying: directory-1.2.4.0
next goal: unix (dependency of directory-1.2.4.0)
rejecting: unix-2.7.1.0/installed-750... (conflict: unix =>
time==1.5.0.1/installed-710..., lit => time==1.4.*)
trying: unix-2.7.1.0
trying: bytestring-0.10.6.0/installed-6e8... (dependency of unix-2.7.1.0)
next goal: time (dependency of lit-0.1.0.5)
rejecting: time-1.5.0.1/installed-710..., 1.5.0.1, 1.5 (conflict: lit =>
time==1.4.*)
rejecting: time-1.4.2, 1.4.1, 1.4.0.2, 1.4.0.1, 1.4 (conflict: bytestring =>
deepseq==1.4.1.1/installed-5de..., time => deepseq>=1.1 && <1.4)
rejecting: time-1.3, 1.2.0.5, 1.2.0.4, 1.2.0.3, 1.2.0.2, 1.2.0.1, 1.2, 1.1.4,
1.1.3, 1.1.2.4, 1.1.2.3, 1.1.2.2, 1.1.2.1, 1.1.2.0, 1.0 (conflict: lit =>
time==1.4.*)
Dependency tree exhaustively searched.

Noticed it mentioned updating packages so I ran an update:

$ cabal update
Downloading the latest package list from hackage.haskell.org

Then I tried installing lit again:

$ cabal install lit
Resolving dependencies...
Downloading ansi-terminal-0.6.2.3...
Downloading appar-0.1.4...
Configuring appar-0.1.4...
Downloading auto-update-0.1.3...
Configuring ansi-terminal-0.6.2.3...
Downloading base64-bytestring-1.0.0.1...
Downloading blaze-builder-0.3.3.4...
Configuring auto-update-0.1.3...
Downloading byteorder-1.0.4...
Configuring base64-bytestring-1.0.0.1...
Downloading bytestring-builder-0.10.6.0.0...
Downloading css-text-0.1.2.1...
Downloading data-default-class-0.0.1...
Downloading dlist-0.7.1.2...
Downloading easy-file-0.2.1...
Downloading mmorph-1.0.4...
Downloading regex-pcre-builtin-0.94.4.8.8.35...
Downloading stringsearch-0.3.6.6...
Downloading tagged-0.8.2...
Downloading tagsoup-0.13.8...
Downloading transformers-base-0.4.4...
Downloading uniplate-1.6.12...
Downloading unix-compat-0.4.1.4...
Downloading unix-time-0.3.6...
Downloading utf8-string-1.0.1.1...
Downloading vault-0.3.0.5...
Downloading word8-0.1.2...
Building appar-0.1.4...
Building ansi-terminal-0.6.2.3...
Building base64-bytestring-1.0.0.1...
Building auto-update-0.1.3...
Installed auto-update-0.1.3
Configuring byteorder-1.0.4...
Configuring blaze-builder-0.3.3.4...
Installed appar-0.1.4
Building byteorder-1.0.4...
Building blaze-builder-0.3.3.4...
Configuring css-text-0.1.2.1...
Failed to install blaze-builder-0.3.3.4
Build log ( /Users/162084/.cabal/logs/blaze-builder-0.3.3.4.log ):
Configuring blaze-builder-0.3.3.4...
Building blaze-builder-0.3.3.4...
Preprocessing library blaze-builder-0.3.3.4...
<command line>: cannot satisfy -package-id text-1.2.1.3-7ba8a31f3c9755629a85278b63ca160f
    (use -v for more information)
Configuring bytestring-builder-0.10.6.0.0...
Installed base64-bytestring-1.0.0.1
Building css-text-0.1.2.1...
Configuring data-default-class-0.0.1...
Failed to install css-text-0.1.2.1
Build log ( /Users/162084/.cabal/logs/css-text-0.1.2.1.log ):
Configuring css-text-0.1.2.1...
Building css-text-0.1.2.1...
Preprocessing library css-text-0.1.2.1...
<command line>: cannot satisfy -package-id attoparsec-0.13.0.1-754e4db355a18ccf50459ea98af483d4
    (use -v for more information)
Building bytestring-builder-0.10.6.0.0...
Building data-default-class-0.0.1...
Configuring dlist-0.7.1.2...
Installed bytestring-builder-0.10.6.0.0
Downloading fast-logger-2.4.1...
Configuring easy-file-0.2.1...
Installed byteorder-1.0.4
Downloading iproute-1.7.0...
Building dlist-0.7.1.2...
Configuring stringsearch-0.3.6.6...
Installed data-default-class-0.0.1
Downloading data-default-instances-base-0.0.1...
Downloading data-default-instances-containers-0.0.1...
Building easy-file-0.2.1...
Building stringsearch-0.3.6.6...
Downloading data-default-instances-old-locale-0.0.1...
Configuring mmorph-1.0.4...
Installed ansi-terminal-0.6.2.3
Building mmorph-1.0.4...
Configuring tagged-0.8.2...
Installed dlist-0.7.1.2
Downloading aeson-0.10.0.0...
Downloading data-default-instances-dlist-0.0.1...
Building tagged-0.8.2...
Configuring tagsoup-0.13.8...
Installed easy-file-0.2.1
Building tagsoup-0.13.8...
Configuring regex-pcre-builtin-0.94.4.8.8.35...
Failed to install tagsoup-0.13.8
Build log ( /Users/162084/.cabal/logs/tagsoup-0.13.8.log ):
Configuring tagsoup-0.13.8...
Building tagsoup-0.13.8...
Preprocessing library tagsoup-0.13.8...
<command line>: cannot satisfy -package-id text-1.2.1.3-7ba8a31f3c9755629a85278b63ca160f
    (use -v for more information)
Configuring uniplate-1.6.12...
Installed mmorph-1.0.4
Building regex-pcre-builtin-0.94.4.8.8.35...
Building uniplate-1.6.12...
Configuring transformers-base-0.4.4...
Failed to install regex-pcre-builtin-0.94.4.8.8.35
Build log ( /Users/162084/.cabal/logs/regex-pcre-builtin-0.94.4.8.8.35.log ):
Configuring regex-pcre-builtin-0.94.4.8.8.35...
Building regex-pcre-builtin-0.94.4.8.8.35...
Preprocessing library regex-pcre-builtin-0.94.4.8.8.35...
<command line>: cannot satisfy -package-id regex-base-0.93.2-0d7ab7d953759a3a4cdc971453f2e3b1
    (use -v for more information)
Configuring unix-compat-0.4.1.4...
Failed to install uniplate-1.6.12
Build log ( /Users/162084/.cabal/logs/uniplate-1.6.12.log ):
Configuring uniplate-1.6.12...
Building uniplate-1.6.12...
Preprocessing library uniplate-1.6.12...
<command line>: cannot satisfy -package-id hashable-1.2.3.3-7fa6c4635644555f8f2c810f37fef372
    (use -v for more information)
Building transformers-base-0.4.4...
Configuring utf8-string-1.0.1.1...
Failed to install transformers-base-0.4.4
Build log ( /Users/162084/.cabal/logs/transformers-base-0.4.4.log ):
Configuring transformers-base-0.4.4...
Building transformers-base-0.4.4...
Preprocessing library transformers-base-0.4.4...
<command line>: cannot satisfy -package-id stm-2.4.4-b2ba13553e1e9180a12e3bd3a2996915
    (use -v for more information)
Building unix-compat-0.4.1.4...
Building utf8-string-1.0.1.1...
Configuring unix-time-0.3.6...
Installed tagged-0.8.2
Downloading semigroups-0.18.0.1...
Configuring word8-0.1.2...
Installed unix-compat-0.4.1.4
Building word8-0.1.2...
Building unix-time-0.3.6...
Configuring vault-0.3.0.5...
Failed to install unix-time-0.3.6
Build log ( /Users/162084/.cabal/logs/unix-time-0.3.6.log ):
[1 of 1] Compiling Main             ( /var/folders/q2/4ljzqf3s1ts65ql7l9bqvdlcw8kf7y/T/cabal-tmp-2107/unix-time-0.3.6/dist/setup/setup.hs, /var/folders/q2/4ljzqf3s1ts65ql7l9bqvdlcw8kf7y/T/cabal-tmp-2107/unix-time-0.3.6/dist/setup/Main.o )
Linking /var/folders/q2/4ljzqf3s1ts65ql7l9bqvdlcw8kf7y/T/cabal-tmp-2107/unix-time-0.3.6/dist/setup/setup ...
Configuring unix-time-0.3.6...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking for strptime_l... yes
checking for timegm... yes
configure: creating ./config.status
config.status: creating cbits/config.h
Building unix-time-0.3.6...
Preprocessing library unix-time-0.3.6...
<command line>: cannot satisfy -package-id old-time-1.1.0.3-3e6915bb062cd4411dc3433a45f9df96
    (use -v for more information)
Installed word8-0.1.2
Configuring fast-logger-2.4.1...
Building vault-0.3.0.5...
Building fast-logger-2.4.1...
Configuring iproute-1.7.0...
Failed to install vault-0.3.0.5
Build log ( /Users/162084/.cabal/logs/vault-0.3.0.5.log ):
Configuring vault-0.3.0.5...
Building vault-0.3.0.5...
Preprocessing library vault-0.3.0.5...
<command line>: cannot satisfy -package-id hashable-1.2.3.3-7fa6c4635644555f8f2c810f37fef372
    (use -v for more information)
Configuring data-default-instances-base-0.0.1...
Failed to install fast-logger-2.4.1
Build log ( /Users/162084/.cabal/logs/fast-logger-2.4.1.log ):
Configuring fast-logger-2.4.1...
Building fast-logger-2.4.1...
Preprocessing library fast-logger-2.4.1...
<command line>: cannot satisfy -package-id text-1.2.1.3-7ba8a31f3c9755629a85278b63ca160f
    (use -v for more information)
Building iproute-1.7.0...
Building data-default-instances-base-0.0.1...
Configuring data-default-instances-containers-0.0.1...
Failed to install iproute-1.7.0
Build log ( /Users/162084/.cabal/logs/iproute-1.7.0.log ):
Configuring iproute-1.7.0...
Building iproute-1.7.0...
Preprocessing library iproute-1.7.0...
<command line>: cannot satisfy -package-id network-2.6.2.1-a3df767b3f70e72fa521bf46085dc9f0
    (use -v for more information)
Building data-default-instances-containers-0.0.1...
Configuring data-default-instances-old-locale-0.0.1...
Installed data-default-instances-base-0.0.1
Building data-default-instances-old-locale-0.0.1...
Configuring data-default-instances-dlist-0.0.1...
Installed data-default-instances-containers-0.0.1
Configuring aeson-0.10.0.0...
Failed to install data-default-instances-old-locale-0.0.1
Build log ( /Users/162084/.cabal/logs/data-default-instances-old-locale-0.0.1.log ):
Configuring data-default-instances-old-locale-0.0.1...
Building data-default-instances-old-locale-0.0.1...
Preprocessing library data-default-instances-old-locale-0.0.1...
<command line>: cannot satisfy -package-id old-locale-1.0.0.7-f7ef4ea4ae91ca3e764a500500ee6fea
    (use -v for more information)
Building data-default-instances-dlist-0.0.1...
Building aeson-0.10.0.0...
Configuring semigroups-0.18.0.1...
Failed to install aeson-0.10.0.0
Build log ( /Users/162084/.cabal/logs/aeson-0.10.0.0.log ):
Configuring aeson-0.10.0.0...
Building aeson-0.10.0.0...
Preprocessing library aeson-0.10.0.0...
<command line>: cannot satisfy -package-id attoparsec-0.13.0.1-754e4db355a18ccf50459ea98af483d4
    (use -v for more information)
Installed utf8-string-1.0.1.1
Building semigroups-0.18.0.1...
Failed to install semigroups-0.18.0.1
Build log ( /Users/162084/.cabal/logs/semigroups-0.18.0.1.log ):
Configuring semigroups-0.18.0.1...
Building semigroups-0.18.0.1...
Preprocessing library semigroups-0.18.0.1...
<command line>: cannot satisfy -package-id hashable-1.2.3.3-7fa6c4635644555f8f2c810f37fef372
    (use -v for more information)
Installed data-default-instances-dlist-0.0.1
Installed stringsearch-0.3.6.6
Updating documentation index
/Users/162084/Library/Haskell/share/doc/x86_64-osx-ghc-7.10.2/index.html
cabal: Error: some packages failed to install:
aeson-0.10.0.0 failed during the building phase. The exception was:
ExitFailure 1
blaze-builder-0.3.3.4 failed during the building phase. The exception was:
ExitFailure 1
blaze-html-0.7.0.3 depends on blaze-builder-0.3.3.4 which failed to install.
blaze-markup-0.6.3.0 depends on blaze-builder-0.3.3.4 which failed to install.
cheapskate-0.1.0.4 depends on semigroups-0.18.0.1 which failed to install.
cookie-0.4.1.6 depends on blaze-builder-0.3.3.4 which failed to install.
css-text-0.1.2.1 failed during the building phase. The exception was:
ExitFailure 1
data-default-0.5.3 depends on data-default-instances-old-locale-0.0.1 which
failed to install.
data-default-instances-old-locale-0.0.1 failed during the building phase. The
exception was:
ExitFailure 1
fast-logger-2.4.1 failed during the building phase. The exception was:
ExitFailure 1
highlighting-kate-0.5.15 depends on regex-pcre-builtin-0.94.4.8.8.35 which
failed to install.
http-types-0.9 depends on blaze-builder-0.3.3.4 which failed to install.
iproute-1.7.0 failed during the building phase. The exception was:
ExitFailure 1
lifted-base-0.2.3.6 depends on transformers-base-0.4.4 which failed to
install.
lit-0.1.0.9 depends on semigroups-0.18.0.1 which failed to install.
monad-control-1.0.0.4 depends on transformers-base-0.4.4 which failed to
install.
regex-pcre-builtin-0.94.4.8.8.35 failed during the building phase. The
exception was:
ExitFailure 1
resourcet-1.1.7 depends on transformers-base-0.4.4 which failed to install.
semigroups-0.18.0.1 failed during the building phase. The exception was:
ExitFailure 1
streaming-commons-0.1.15 depends on blaze-builder-0.3.3.4 which failed to
install.
tagsoup-0.13.8 failed during the building phase. The exception was:
ExitFailure 1
transformers-base-0.4.4 failed during the building phase. The exception was:
ExitFailure 1
uniplate-1.6.12 failed during the building phase. The exception was:
ExitFailure 1
unix-time-0.3.6 failed during the building phase. The exception was:
ExitFailure 1
vault-0.3.0.5 failed during the building phase. The exception was:
ExitFailure 1
void-0.7.1 depends on semigroups-0.18.0.1 which failed to install.
wai-3.2.0 depends on vault-0.3.0.5 which failed to install.
wai-extra-3.0.14 depends on semigroups-0.18.0.1 which failed to install.
wai-logger-2.2.5 depends on fast-logger-2.4.1 which failed to install.
xss-sanitize-0.3.5.6 depends on tagsoup-0.13.8 which failed to install.
tcrs commented

Don't know if this will help you but I work with a cabal sandbox for lit (in the lit folder):

cabal sandbox init
cabal install --only-dependencies

(will take a while!)
then try ./scripts/build.sh. This installs all the haskell packages in a sandbox folder local to lit, so shouldn't conflict with system stuff (in theory) - I don't do any other haskell development but found this to work well.

@tcrs I will add this as part of the build script

gbaz commented

Did you try to run ghc-pkg recache?

Still not working on my end. Any updates?