Cabal fails to upgrade; 7.4.1; 0.14.0 #1060

Closed
bitemyapp opened this Issue Oct 5, 2012 · 13 comments

Comments

Projects
None yet
4 participants
@bitemyapp
Contributor

bitemyapp commented Oct 5, 2012

callen@loompa?! ~/code/scar $ cabal install -v cabal-install-1.16.0
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Extracting
/Users/callen/Library/Haskell/repo-cache/hackage.haskell.org/cabal-install/1.16.0/cabal-install-1.16.0.tar.gz
to
/var/folders/41/lkrd7n1n2r1g00btpj4bfpz80000gn/T/cabal-install-1.16.0-44173...
Configuring cabal-install-1.16.0...
Flags chosen: bytestring-in-base=False, old-base=False
Dependency Cabal ==1.16.0.1: using Cabal-1.16.0.1
Dependency HTTP ==4000.2.3: using HTTP-4000.2.3
Dependency array ==0.4.0.0: using array-0.4.0.0
Dependency base ==4.5.0.0: using base-4.5.0.0
Dependency bytestring ==0.9.2.1: using bytestring-0.9.2.1
Dependency containers ==0.4.2.1: using containers-0.4.2.1
Dependency directory ==1.1.0.2: using directory-1.1.0.2
Dependency filepath ==1.3.0.0: using filepath-1.3.0.0
Dependency mtl ==2.1.1: using mtl-2.1.1
Dependency network ==2.3.0.13: using network-2.3.0.13
Dependency old-time ==1.1.0.0: using old-time-1.1.0.0
Dependency pretty ==1.1.1.0: using pretty-1.1.1.0
Dependency process ==1.1.0.1: using process-1.1.0.1
Dependency random ==1.0.1.1: using random-1.0.1.1
Dependency time ==1.4: using time-1.4
Dependency unix ==2.5.1.0: using unix-2.5.1.0
Dependency zlib ==0.5.3.3: using zlib-0.5.3.3
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package parsec-3.1.3 requires mtl-2.0.1.0
package HTTP-4000.2.3 requires mtl-2.0.1.0
package parsec-3.1.2 requires mtl-2.1.1
package cabal-install-1.16.0 requires mtl-2.1.1
package cabal-install-1.16.0 requires network-2.3.0.13
package HTTP-4000.2.3 requires network-2.3.0.14
package network-2.3.0.13 requires parsec-3.1.2
package network-2.3.0.14 requires parsec-3.1.3
package HTTP-4000.2.3 requires parsec-3.1.3
package mtl-2.0.1.0 requires transformers-0.2.2.0
package mtl-2.1.1 requires transformers-0.3.0.0
Using Cabal-1.14.0 compiled by ghc-7.4
Using compiler: ghc-7.4.1
Using install prefix:
/Users/callen/Library/Haskell/ghc-7.4.1/lib/cabal-install-1.16.0
Binaries installed in:
/Users/callen/Library/Haskell/ghc-7.4.1/lib/cabal-install-1.16.0/bin
Libraries installed in:
/Users/callen/Library/Haskell/ghc-7.4.1/lib/cabal-install-1.16.0/lib
Private binaries installed in:
/Users/callen/Library/Haskell/ghc-7.4.1/lib/cabal-install-1.16.0/libexec
Data files installed in:
/Users/callen/Library/Haskell/ghc-7.4.1/lib/cabal-install-1.16.0/share
Documentation installed in:
/Users/callen/Library/Haskell/ghc-7.4.1/lib/cabal-install-1.16.0/doc
Using alex version 3.0.1 found on system at: /usr/bin/alex
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.2.1 found on system at: /usr/bin/gcc
Using ghc version 7.4.1 found on system at: /usr/bin/ghc
Using ghc-pkg version 7.4.1 found on system at: /usr/bin/ghc-pkg
No greencard found
Using haddock version 2.10.0 found on system at: /usr/bin/haddock
Using happy version 1.18.9 found on system at: /usr/bin/happy
No hmake found
Using hpc version 0.6 found on system at: /usr/bin/hpc
Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.27 found on system at: /usr/local/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /usr/bin/tar
No uhc found
creating dist/build
creating dist/build/autogen
Building cabal-install-1.16.0...
Preprocessing executable 'cabal' for cabal-install-1.16.0...
Building executable cabal...
creating dist/build/cabal
creating dist/build/cabal/cabal-tmp
Building C Sources.
creating dist/build/cabal/cabal-tmp
/usr/bin/ghc -Idist/build/cabal/cabal-tmp -package-conf dist/package.conf.inplace -package-id Cabal-1.16.0.1-6142bda49204a8b826a6c526fcd04dd1 -package-id HTTP-4000.2.3-3db3c4cc7c57eaa964bafde3b18fb29b -package-id array-0.4.0.0-59d1cc0e7979167b002f021942d60f46 -package-id base-4.5.0.0-7aff24101508c8e98d083dc12ec4756b -package-id bytestring-0.9.2.1-d4863847bb07fc00a8fffc180e81d2b8 -package-id containers-0.4.2.1-cfc6420ecc2194c9ed977b06bdfd9e69 -package-id directory-1.1.0.2-5ce8ec4d96e120807d0ed0cb6a25d0c4 -package-id filepath-1.3.0.0-973f5e9fbed93e25cbe66dfeb6b99ad9 -package-id mtl-2.1.1-801101765c9185fec3b8dbd5355f5550 -package-id network-2.3.0.13-03a5d1642ceb973ed7f583cea525f096 -package-id old-time-1.1.0.0-b77788a065c86ada9ba279afa5e04576 -package-id pretty-1.1.1.0-74ee6c6be86f83487da68d408cc3ae22 -package-id process-1.1.0.1-dd810a368ec79f28445811c5f39bd53a -package-id random-1.0.1.1-e3566210caf162aa256430e88f7b7640 -package-id time-1.4-96b42dcaca5cdbc30bab9dcc07384b8d -package-id unix-2.5.1.0-c9ead8c53324d64cea9215642c738d39 -package-id zlib-0.5.3.3-25bc90418de17a311a72450ebca404a8 -optc-O2 -odir dist/build/cabal/cabal-tmp -c cbits/getnumcores.c
/usr/bin/ghc --make -o dist/build/cabal/cabal -hide-all-packages -fbuilding-cabal-package -package-conf dist/package.conf.inplace -i -idist/build/cabal/cabal-tmp -i. -idist/build/autogen -Idist/build/autogen -Idist/build/cabal/cabal-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build/cabal/cabal-tmp -hidir dist/build/cabal/cabal-tmp -stubdir dist/build/cabal/cabal-tmp -package-id Cabal-1.16.0.1-6142bda49204a8b826a6c526fcd04dd1 -package-id HTTP-4000.2.3-3db3c4cc7c57eaa964bafde3b18fb29b -package-id array-0.4.0.0-59d1cc0e7979167b002f021942d60f46 -package-id base-4.5.0.0-7aff24101508c8e98d083dc12ec4756b -package-id bytestring-0.9.2.1-d4863847bb07fc00a8fffc180e81d2b8 -package-id containers-0.4.2.1-cfc6420ecc2194c9ed977b06bdfd9e69 -package-id directory-1.1.0.2-5ce8ec4d96e120807d0ed0cb6a25d0c4 -package-id filepath-1.3.0.0-973f5e9fbed93e25cbe66dfeb6b99ad9 -package-id mtl-2.1.1-801101765c9185fec3b8dbd5355f5550 -package-id network-2.3.0.13-03a5d1642ceb973ed7f583cea525f096 -package-id old-time-1.1.0.0-b77788a065c86ada9ba279afa5e04576 -package-id pretty-1.1.1.0-74ee6c6be86f83487da68d408cc3ae22 -package-id process-1.1.0.1-dd810a368ec79f28445811c5f39bd53a -package-id random-1.0.1.1-e3566210caf162aa256430e88f7b7640 -package-id time-1.4-96b42dcaca5cdbc30bab9dcc07384b8d -package-id unix-2.5.1.0-c9ead8c53324d64cea9215642c738d39 -package-id zlib-0.5.3.3-25bc90418de17a311a72450ebca404a8 -O -fwarn-tabs -Wall -threaded -XHaskell98 -XCPP -XForeignFunctionInterface dist/build/cabal/cabal-tmp/cbits/getnumcores.o ./Main.hs
[ 1 of 65] Compiling Distribution.Client.Haddock ( Distribution/Client/Haddock.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Haddock.o )
[ 2 of 65] Compiling Distribution.Client.JobControl ( Distribution/Client/JobControl.hs, dist/build/cabal/cabal-tmp/Distribution/Client/JobControl.o )
[ 3 of 65] Compiling Distribution.Client.BuildReports.Types ( Distribution/Client/BuildReports/Types.hs, dist/build/cabal/cabal-tmp/Distribution/Client/BuildReports/Types.o )
[ 4 of 65] Compiling Distribution.Client.Dependency.Modular.Version ( Distribution/Client/Dependency/Modular/Version.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Version.o )
[ 5 of 65] Compiling Distribution.Client.Dependency.Modular.PSQ ( Distribution/Client/Dependency/Modular/PSQ.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/PSQ.o )
[ 6 of 65] Compiling Distribution.Client.Dependency.Modular.Package ( Distribution/Client/Dependency/Modular/Package.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Package.o )
[ 7 of 65] Compiling Distribution.Client.Utils ( Distribution/Client/Utils.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Utils.o )
[ 8 of 65] Compiling Distribution.Client.PackageUtils ( Distribution/Client/PackageUtils.hs, dist/build/cabal/cabal-tmp/Distribution/Client/PackageUtils.o )
[ 9 of 65] Compiling Distribution.Compat.FilePerms ( Distribution/Compat/FilePerms.hs, dist/build/cabal/cabal-tmp/Distribution/Compat/FilePerms.o )
[10 of 65] Compiling Distribution.Compat.Time ( Distribution/Compat/Time.hs, dist/build/cabal/cabal-tmp/Distribution/Compat/Time.o )
[11 of 65] Compiling Distribution.Client.GZipUtils ( Distribution/Client/GZipUtils.hs, dist/build/cabal/cabal-tmp/Distribution/Client/GZipUtils.o )
[12 of 65] Compiling Distribution.Client.Tar ( Distribution/Client/Tar.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Tar.o )
[13 of 65] Compiling Distribution.Client.PackageIndex ( Distribution/Client/PackageIndex.hs, dist/build/cabal/cabal-tmp/Distribution/Client/PackageIndex.o )
[14 of 65] Compiling Distribution.Client.Init.Licenses ( Distribution/Client/Init/Licenses.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Init/Licenses.o )
[15 of 65] Compiling Distribution.Client.Init.Types ( Distribution/Client/Init/Types.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Init/Types.o )
[16 of 65] Compiling Distribution.Compat.Exception ( Distribution/Compat/Exception.hs, dist/build/cabal/cabal-tmp/Distribution/Compat/Exception.o )
[17 of 65] Compiling Distribution.Client.Types ( Distribution/Client/Types.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Types.o )
[18 of 65] Compiling Distribution.Client.Init.Heuristics ( Distribution/Client/Init/Heuristics.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Init/Heuristics.o )
[19 of 65] Compiling Distribution.Client.InstallPlan ( Distribution/Client/InstallPlan.hs, dist/build/cabal/cabal-tmp/Distribution/Client/InstallPlan.o )
[20 of 65] Compiling Distribution.Client.Dependency.Types ( Distribution/Client/Dependency/Types.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Types.o )
[21 of 65] Compiling Distribution.Client.Dependency.Modular.Flag ( Distribution/Client/Dependency/Modular/Flag.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Flag.o )
[22 of 65] Compiling Distribution.Client.Dependency.Modular.Dependency ( Distribution/Client/Dependency/Modular/Dependency.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Dependency.o )
[23 of 65] Compiling Distribution.Client.Dependency.Modular.Tree ( Distribution/Client/Dependency/Modular/Tree.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Tree.o )
[24 of 65] Compiling Distribution.Client.Dependency.Modular.Index ( Distribution/Client/Dependency/Modular/Index.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Index.o )
[25 of 65] Compiling Distribution.Client.Dependency.Modular.IndexConversion ( Distribution/Client/Dependency/Modular/IndexConversion.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/IndexConversion.o )
[26 of 65] Compiling Distribution.Client.Dependency.Modular.Builder ( Distribution/Client/Dependency/Modular/Builder.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Builder.o )
[27 of 65] Compiling Distribution.Client.Dependency.Modular.Message ( Distribution/Client/Dependency/Modular/Message.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Message.o )
[28 of 65] Compiling Distribution.Client.Dependency.Modular.Log ( Distribution/Client/Dependency/Modular/Log.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Log.o )
[29 of 65] Compiling Distribution.Client.Dependency.Modular.Preference ( Distribution/Client/Dependency/Modular/Preference.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Preference.o )
[30 of 65] Compiling Distribution.Client.Dependency.Modular.Configured ( Distribution/Client/Dependency/Modular/Configured.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Configured.o )
[31 of 65] Compiling Distribution.Client.Dependency.Modular.Assignment ( Distribution/Client/Dependency/Modular/Assignment.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Assignment.o )
[32 of 65] Compiling Distribution.Client.Dependency.Modular.Explore ( Distribution/Client/Dependency/Modular/Explore.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Explore.o )
[33 of 65] Compiling Distribution.Client.Dependency.Modular.Validate ( Distribution/Client/Dependency/Modular/Validate.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Validate.o )
[34 of 65] Compiling Distribution.Client.Dependency.Modular.Solver ( Distribution/Client/Dependency/Modular/Solver.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/Solver.o )
[35 of 65] Compiling Distribution.Client.Dependency.Modular.ConfiguredConversion ( Distribution/Client/Dependency/Modular/ConfiguredConversion.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular/ConfiguredConversion.o )
[36 of 65] Compiling Distribution.Client.Dependency.Modular ( Distribution/Client/Dependency/Modular.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/Modular.o )
[37 of 65] Compiling Distribution.Client.Dependency.TopDown.Types ( Distribution/Client/Dependency/TopDown/Types.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/TopDown/Types.o )
[38 of 65] Compiling Distribution.Client.Dependency.TopDown.Constraints ( Distribution/Client/Dependency/TopDown/Constraints.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/TopDown/Constraints.o )
[39 of 65] Compiling Distribution.Client.IndexUtils ( Distribution/Client/IndexUtils.hs, dist/build/cabal/cabal-tmp/Distribution/Client/IndexUtils.o )
[40 of 65] Compiling Distribution.Client.Dependency.TopDown ( Distribution/Client/Dependency/TopDown.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Dependency/TopDown.o )
[41 of 65] Compiling Distribution.Client.World ( Distribution/Client/World.hs, dist/build/cabal/cabal-tmp/Distribution/Client/World.o )
[42 of 65] Compiling Paths_cabal_install ( dist/build/autogen/Paths_cabal_install.hs, dist/build/cabal/cabal-tmp/Paths_cabal_install.o )
[43 of 65] Compiling Distribution.Client.HttpUtils ( Distribution/Client/HttpUtils.hs, dist/build/cabal/cabal-tmp/Distribution/Client/HttpUtils.o )

Distribution/Client/HttpUtils.hs:139:50:
    Couldn't match expected type `network-2.3.0.14:Network.URI.URI'
                with actual type `URI'
    In the fourth argument of `AuthBasic', namely `uri'
    In the first argument of `Just', namely
      `(AuthBasic "" usr pwd uri)'
    In the expression: Just (AuthBasic "" usr pwd uri)

Distribution/Client/HttpUtils.hs:147:38:
    Couldn't match expected type `network-2.3.0.14:Network.URI.URI'
                with actual type `URI'
    In the `rqURI' field of a record
    In the expression:
      Request
        {rqURI = uri, rqMethod = GET,
         rqHeaders = [Header HdrUserAgent userAgent],
         rqBody = ByteString.empty}
    In an equation for `mkRequest':
        mkRequest uri
          = Request
              {rqURI = uri, rqMethod = GET,
               rqHeaders = [Header HdrUserAgent userAgent],
               rqBody = ByteString.empty}
          where
              userAgent = "cabal-install/" ++ display Paths_cabal_install.version
Updating world file...
cabal: Error: some packages failed to install:
cabal-install-1.16.0 failed during the building phase. The exception was:
ExitFailure 1
@tibbe

This comment has been minimized.

Show comment Hide comment
@tibbe

tibbe Oct 6, 2012

Member

The sentence

Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.

gives us a clue to what the problem is. The conflict is here:

package cabal-install-1.16.0 requires network-2.3.0.13
package HTTP-4000.2.3 requires network-2.3.0.14

The compilation error is telling us that it's trying to use the URI type from two different versions of network, which isn't possible.

We still need to figure out how we got into this situation.

Member

tibbe commented Oct 6, 2012

The sentence

Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.

gives us a clue to what the problem is. The conflict is here:

package cabal-install-1.16.0 requires network-2.3.0.13
package HTTP-4000.2.3 requires network-2.3.0.14

The compilation error is telling us that it's trying to use the URI type from two different versions of network, which isn't possible.

We still need to figure out how we got into this situation.

@tibbe

This comment has been minimized.

Show comment Hide comment
@tibbe

tibbe Oct 6, 2012

Member

@dcoutts or @kosmikus Is there anything we can fix here in the cabal-install-1.16.0.1 timeframe? To me it seems that this build needs a --force-reinstalls to work.

Member

tibbe commented Oct 6, 2012

@dcoutts or @kosmikus Is there anything we can fix here in the cabal-install-1.16.0.1 timeframe? To me it seems that this build needs a --force-reinstalls to work.

@bitemyapp

This comment has been minimized.

Show comment Hide comment
@bitemyapp

bitemyapp Oct 6, 2012

Contributor

I tried --force-reinstalls, broke in the same manner as before.

Contributor

bitemyapp commented Oct 6, 2012

I tried --force-reinstalls, broke in the same manner as before.

@tibbe

This comment has been minimized.

Show comment Hide comment
@tibbe

tibbe Oct 6, 2012

Member

@bitemyapp said that nuking ~/.ghc fixed the issue. I'd still like to understand the cause however.

Member

tibbe commented Oct 6, 2012

@bitemyapp said that nuking ~/.ghc fixed the issue. I'd still like to understand the cause however.

@bitemyapp

This comment has been minimized.

Show comment Hide comment
@bitemyapp

bitemyapp Oct 6, 2012

Contributor

Maybe, maybe not. Cabal was permanently stuck in thinking it needed to upgrade at that point. It initially went from 0.14.0 to 0.16.0, but kept asking to be upgraded every time I did a cabal update.

Contributor

bitemyapp commented Oct 6, 2012

Maybe, maybe not. Cabal was permanently stuck in thinking it needed to upgrade at that point. It initially went from 0.14.0 to 0.16.0, but kept asking to be upgraded every time I did a cabal update.

@tibbe

This comment has been minimized.

Show comment Hide comment
@tibbe

tibbe Oct 8, 2012

Member

@bitemyapp The latest released version if Cabal-1.16.0.1 (the library) and cabal-install-1.16.0 (the command line tool) so if you're indeed at 0.16.0 the complaint seems correct.

Member

tibbe commented Oct 8, 2012

@bitemyapp The latest released version if Cabal-1.16.0.1 (the library) and cabal-install-1.16.0 (the command line tool) so if you're indeed at 0.16.0 the complaint seems correct.

@tibbe

This comment has been minimized.

Show comment Hide comment
@tibbe

tibbe Oct 8, 2012

Member

Since this doesn't seem related to the last release per say, I'm going to remove this bug from the bug fix release milestone.

Member

tibbe commented Oct 8, 2012

Since this doesn't seem related to the last release per say, I'm going to remove this bug from the bug fix release milestone.

@Calamitous

This comment has been minimized.

Show comment Hide comment
@Calamitous

Calamitous Oct 13, 2012

I had this same issue after installing ghc, then upgrading my gcc install, then trying to run cabal install cabal-install.

Nuking ~/.ghc doesn't seem to have fixed the issue.

Running on OSX Lion.

I had this same issue after installing ghc, then upgrading my gcc install, then trying to run cabal install cabal-install.

Nuking ~/.ghc doesn't seem to have fixed the issue.

Running on OSX Lion.

@tibbe

This comment has been minimized.

Show comment Hide comment
@tibbe

tibbe Oct 13, 2012

Member

I've emailed @kosmikus and @dcoutts to see if they have time to look at this. @kosmikus would probably be most knowledgable in this area as he wrote the new dependency solver.

Member

tibbe commented Oct 13, 2012

I've emailed @kosmikus and @dcoutts to see if they have time to look at this. @kosmikus would probably be most knowledgable in this area as he wrote the new dependency solver.

@kosmikus

This comment has been minimized.

Show comment Hide comment
@kosmikus

kosmikus Oct 14, 2012

Contributor

It certainly seems like something is wrong, and I have a very vague idea what might be the cause. It'd certainly help to have a cabal install --dry-run -v3 output as well as a ghc-pkg list network.

Contributor

kosmikus commented Oct 14, 2012

It certainly seems like something is wrong, and I have a very vague idea what might be the cause. It'd certainly help to have a cabal install --dry-run -v3 output as well as a ghc-pkg list network.

@Calamitous

This comment has been minimized.

Show comment Hide comment
@Calamitous

Calamitous Oct 18, 2012

Erics-MacBook-Air:~ $ cabal install --dry-run -v3 cabal-install
searching for ghc in path.
found ghc at /usr/bin/ghc
("/usr/bin/ghc",["--numeric-version"])
/usr/bin/ghc is version 7.4.1
looking for tool "ghc-pkg" near compiler in /usr/bin
found ghc-pkg in /usr/bin/ghc-pkg
("/usr/bin/ghc-pkg",["--version"])
/usr/bin/ghc-pkg is version 7.4.1
("/usr/bin/ghc",["--supported-languages"])
("/usr/bin/ghc",["--info"])
Reading installed packages...
("/usr/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/bin/ghc-pkg",["dump","--user","-v0"])
("/usr/bin/ghc",["--print-libdir"])
Reading available packages...
Choosing modular solver.
Resolving dependencies...
[__0] trying: cabal-install-1.16.0 (user goal)
[__1] next goal: base (dependency of cabal-install-1.16.0)
[__1] rejecting: base-3.0.3.2, 3.0.3.1 (global constraint requires installed instance)
[__1] trying: base-4.5.0.0/installed-a73...
[__2] trying: rts-1.0/installedbuil... (dependency of base-4.5.0.0/installed-a73...)
[__3] trying: integer-gmp-0.4.0.0/installed-ec8... (dependency of base-4.5.0.0/installed-a73...)
[__4] trying: ghc-prim-0.2.0.0/installed-bd2... (dependency of base-4.5.0.0/installed-a73...)
[__5] trying: cabal-install-1.16.0:-old-base
[__6] rejecting: cabal-install-1.16.0:+bytestring-in-base (conflict: base==4.5.0.0/installed-a73..., cabal-install-1.16.0:bytestring-in-base => base>=2.0 && <2.2)
[__6] trying: cabal-install-1.16.0:-bytestring-in-base
[__7] trying: unix-2.5.1.0/installed-862... (dependency of cabal-install-1.16.0)
[__8] trying: bytestring-0.9.2.1/installed-df1... (dependency of unix-2.5.1.0/installed-862...)
[__9] trying: old-time-1.1.0.0/installed-681... (dependency of cabal-install-1.16.0:-old-base)
[_10] trying: old-locale-1.0.0.4/installed-29b... (dependency of old-time-1.1.0.0/installed-681...)
[_11] trying: array-0.4.0.0/installed-0b3... (dependency of cabal-install-1.16.0:-old-base)
[_12] trying: containers-0.4.2.1/installed-7c5... (dependency of cabal-install-1.16.0:-old-base)
[_13] trying: deepseq-1.3.0.0/installed-6c1... (dependency of containers-0.4.2.1/installed-7c5...)
[_14] trying: random-1.0.1.1/installed-3be... (dependency of cabal-install-1.16.0:-old-base)
[_15] trying: pretty-1.1.1.0/installed-7e1... (dependency of cabal-install-1.16.0:-old-base)
[_16] trying: directory-1.1.0.2/installed-fee... (dependency of cabal-install-1.16.0:-old-base)
[_17] trying: process-1.1.0.1/installed-330... (dependency of cabal-install-1.16.0:-old-base)
[_18] trying: mtl-2.1.1/installed-ae9... (dependency of cabal-install-1.16.0)
[_19] trying: transformers-0.3.0.0/installed-f23... (dependency of mtl-2.1.1/installed-ae9...)
[_20] trying: time-1.4/installed-3e1... (dependency of cabal-install-1.16.0)
[_21] trying: zlib-0.5.3.3/installed-9ed... (dependency of cabal-install-1.16.0)
[_22] trying: HTTP-4000.2.3/installed-c26... (dependency of cabal-install-1.16.0)
[_23] trying: parsec-3.1.2/installed-d11... (dependency of HTTP-4000.2.3/installed-c26...)
[_24] trying: text-0.11.2.0/installed-0de... (dependency of parsec-3.1.2/installed-d11...)
[_25] trying: network-2.3.0.13/installed-d81... (dependency of cabal-install-1.16.0)
[_26] trying: filepath-1.3.0.0/installed-674... (dependency of cabal-install-1.16.0)
[_27] next goal: Cabal (dependency of cabal-install-1.16.0)
[_27] trying: Cabal-1.16.0.1/installed-d99...
[_28] done
In order, the following would be installed:
cabal-install-1.16.0 -bytestring-in-base (new package)
Erics-MacBook-Air:~ $ 
Erics-MacBook-Air:~ $ ghc-pkg list network
/Library/Frameworks/GHC.framework/Versions/7.4.1-i386/usr/lib/ghc-7.4.1/package.conf.d
   network-2.3.0.13
/Users/eric/.ghc/i386-darwin-7.4.1/package.conf.d
Erics-MacBook-Air:~ $ 

When attempting to run the above, I got an error message telling me I need to recache the package list, with I did with sudo ghc-pkg recache.

After doing all the above, though, running cabal install cabal-install worked! Or at least, stopped giving me the "Exit Failure 1" error. Now it appears to work correctly, but running cabal update still tells me I need to update with cabal install cabal-install.

Now the only error I get is:

Warning: No documentation was generated as this package does not contain a
library. Perhaps you want to use the --executables flag.

Which doesn't seem like it should keep anything from working.

Hope that helps. Let me know if there's anything else I can provide to shine more light on this issue.

Erics-MacBook-Air:~ $ cabal install --dry-run -v3 cabal-install
searching for ghc in path.
found ghc at /usr/bin/ghc
("/usr/bin/ghc",["--numeric-version"])
/usr/bin/ghc is version 7.4.1
looking for tool "ghc-pkg" near compiler in /usr/bin
found ghc-pkg in /usr/bin/ghc-pkg
("/usr/bin/ghc-pkg",["--version"])
/usr/bin/ghc-pkg is version 7.4.1
("/usr/bin/ghc",["--supported-languages"])
("/usr/bin/ghc",["--info"])
Reading installed packages...
("/usr/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/bin/ghc-pkg",["dump","--user","-v0"])
("/usr/bin/ghc",["--print-libdir"])
Reading available packages...
Choosing modular solver.
Resolving dependencies...
[__0] trying: cabal-install-1.16.0 (user goal)
[__1] next goal: base (dependency of cabal-install-1.16.0)
[__1] rejecting: base-3.0.3.2, 3.0.3.1 (global constraint requires installed instance)
[__1] trying: base-4.5.0.0/installed-a73...
[__2] trying: rts-1.0/installedbuil... (dependency of base-4.5.0.0/installed-a73...)
[__3] trying: integer-gmp-0.4.0.0/installed-ec8... (dependency of base-4.5.0.0/installed-a73...)
[__4] trying: ghc-prim-0.2.0.0/installed-bd2... (dependency of base-4.5.0.0/installed-a73...)
[__5] trying: cabal-install-1.16.0:-old-base
[__6] rejecting: cabal-install-1.16.0:+bytestring-in-base (conflict: base==4.5.0.0/installed-a73..., cabal-install-1.16.0:bytestring-in-base => base>=2.0 && <2.2)
[__6] trying: cabal-install-1.16.0:-bytestring-in-base
[__7] trying: unix-2.5.1.0/installed-862... (dependency of cabal-install-1.16.0)
[__8] trying: bytestring-0.9.2.1/installed-df1... (dependency of unix-2.5.1.0/installed-862...)
[__9] trying: old-time-1.1.0.0/installed-681... (dependency of cabal-install-1.16.0:-old-base)
[_10] trying: old-locale-1.0.0.4/installed-29b... (dependency of old-time-1.1.0.0/installed-681...)
[_11] trying: array-0.4.0.0/installed-0b3... (dependency of cabal-install-1.16.0:-old-base)
[_12] trying: containers-0.4.2.1/installed-7c5... (dependency of cabal-install-1.16.0:-old-base)
[_13] trying: deepseq-1.3.0.0/installed-6c1... (dependency of containers-0.4.2.1/installed-7c5...)
[_14] trying: random-1.0.1.1/installed-3be... (dependency of cabal-install-1.16.0:-old-base)
[_15] trying: pretty-1.1.1.0/installed-7e1... (dependency of cabal-install-1.16.0:-old-base)
[_16] trying: directory-1.1.0.2/installed-fee... (dependency of cabal-install-1.16.0:-old-base)
[_17] trying: process-1.1.0.1/installed-330... (dependency of cabal-install-1.16.0:-old-base)
[_18] trying: mtl-2.1.1/installed-ae9... (dependency of cabal-install-1.16.0)
[_19] trying: transformers-0.3.0.0/installed-f23... (dependency of mtl-2.1.1/installed-ae9...)
[_20] trying: time-1.4/installed-3e1... (dependency of cabal-install-1.16.0)
[_21] trying: zlib-0.5.3.3/installed-9ed... (dependency of cabal-install-1.16.0)
[_22] trying: HTTP-4000.2.3/installed-c26... (dependency of cabal-install-1.16.0)
[_23] trying: parsec-3.1.2/installed-d11... (dependency of HTTP-4000.2.3/installed-c26...)
[_24] trying: text-0.11.2.0/installed-0de... (dependency of parsec-3.1.2/installed-d11...)
[_25] trying: network-2.3.0.13/installed-d81... (dependency of cabal-install-1.16.0)
[_26] trying: filepath-1.3.0.0/installed-674... (dependency of cabal-install-1.16.0)
[_27] next goal: Cabal (dependency of cabal-install-1.16.0)
[_27] trying: Cabal-1.16.0.1/installed-d99...
[_28] done
In order, the following would be installed:
cabal-install-1.16.0 -bytestring-in-base (new package)
Erics-MacBook-Air:~ $ 
Erics-MacBook-Air:~ $ ghc-pkg list network
/Library/Frameworks/GHC.framework/Versions/7.4.1-i386/usr/lib/ghc-7.4.1/package.conf.d
   network-2.3.0.13
/Users/eric/.ghc/i386-darwin-7.4.1/package.conf.d
Erics-MacBook-Air:~ $ 

When attempting to run the above, I got an error message telling me I need to recache the package list, with I did with sudo ghc-pkg recache.

After doing all the above, though, running cabal install cabal-install worked! Or at least, stopped giving me the "Exit Failure 1" error. Now it appears to work correctly, but running cabal update still tells me I need to update with cabal install cabal-install.

Now the only error I get is:

Warning: No documentation was generated as this package does not contain a
library. Perhaps you want to use the --executables flag.

Which doesn't seem like it should keep anything from working.

Hope that helps. Let me know if there's anything else I can provide to shine more light on this issue.

@kosmikus

This comment has been minimized.

Show comment Hide comment
@kosmikus

kosmikus Oct 21, 2012

Contributor

@Calamitous Thanks for providing the debug output, but the -v3 trace looks entirely harmless. And you say yourself that installing after this one more or less went fine. I've not yet managed to reproduce the situation described in this bug. I'd still be interested to see a -v3 trace for such a situation.

Contributor

kosmikus commented Oct 21, 2012

@Calamitous Thanks for providing the debug output, but the -v3 trace looks entirely harmless. And you say yourself that installing after this one more or less went fine. I've not yet managed to reproduce the situation described in this bug. I'd still be interested to see a -v3 trace for such a situation.

@bitemyapp

This comment has been minimized.

Show comment Hide comment
@bitemyapp

bitemyapp Nov 13, 2014

Contributor

This is unlikely to get reproduced, so I'm closing it for now.

Contributor

bitemyapp commented Nov 13, 2014

This is unlikely to get reproduced, so I'm closing it for now.

@bitemyapp bitemyapp closed this Nov 13, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment