[Hackage] #349: cabal install hangs using CPU when resolving dependencies on ghc 6.9.20080907

#349: cabal install hangs using CPU when resolving dependencies on ghc 6.9.20080907 ---------------------------------+------------------------------------------ Reporter: ganesh | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.9 Platform: | ---------------------------------+------------------------------------------ Built GHC from HEAD, and cabal install (built with a previous GHC) hangs eating CPU and producing no output after "Resolving dependencies...", apparently for any package. e.g. cabal install -v rmonad --global --root-cmd=sudo Global package.conf file attached. dcoutts suspects that the base3/base4 thing might be the cause. ganesh@defoe:~$ cabal --version cabal-install version 0.5.2 using version 1.4.0.2 of the Cabal library -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/349 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#349: cabal install hangs using CPU when resolving dependencies on ghc 6.9.20080907 ---------------------------------+------------------------------------------ Reporter: ganesh | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.9 | Platform: ---------------------------------+------------------------------------------ Comment (by guest): I tested with the attached package.conf.min and a minimal package without any modules that just depends on base, and without downloading the hackage.org package database. It is indeed the base4/base3 thing; if the dependence of base-3.0.3.0 on base-4.0 is removed, everything works fine (at least as fine as it can with a broken package config like this). -- int-e -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/349#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#349: cabal install hangs using CPU when resolving dependencies on ghc 6.9 ---------------------------------+------------------------------------------ Reporter: ganesh | Owner: Type: defect | Status: new Priority: high | Milestone: Component: cabal-install tool | Version: Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.9 | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * priority: normal => high * summary: cabal install hangs using CPU when resolving dependencies on ghc 6.9.20080907 => cabal install hangs using CPU when resolving dependencies on ghc 6.9 Comment: We need to fix this one. Unfortunately it's a lot harder than just resolving this infinite loop. Just fixing that would give us the result that instead of looping it'd fail to find a solution, more or less every time. That's because the current resolver is looking for a solution that uses each package at most once and the base 3 - 4 thing breaks that assumption. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/349#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#349: cabal install hangs using CPU when resolving dependencies on ghc 6.9 ---------------------------------+------------------------------------------ Reporter: ganesh | Owner: Type: defect | Status: new Priority: high | Milestone: Component: cabal-install tool | Version: Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.9 | Platform: ---------------------------------+------------------------------------------ Changes (by ganesh): * cc: ganesh@earth.li (added) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/349#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#349: cabal install hangs using CPU when resolving dependencies on ghc 6.9 and 6.10 ---------------------------------+------------------------------------------ Reporter: ganesh | Owner: Type: defect | Status: new Priority: high | Milestone: Component: cabal-install tool | Version: Severity: major | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.9 | Platform: ---------------------------------+------------------------------------------ Changes (by Deewiant): * cc: Deewiant (added) * severity: normal => major * summary: cabal install hangs using CPU when resolving dependencies on ghc 6.9 => cabal install hangs using CPU when resolving dependencies on ghc 6.9 and 6.10 Comment: Affects GHC 6.10 as well, of course. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/349#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#349: cabal-install always finds conflicting dependencies between base 3 and 4 on
ghc 6.9 and 6.10
---------------------------------+------------------------------------------
Reporter: ganesh | Owner: duncan
Type: defect | Status: new
Priority: high | Milestone: Cabal-1.6
Component: cabal-install tool | Version:
Severity: major | Resolution:
Keywords: | Difficulty: hard (< 1 day)
Ghcversion: 6.9 | Platform:
---------------------------------+------------------------------------------
Changes (by duncan):
* owner: => duncan
* difficulty: normal => hard (< 1 day)
* summary: cabal install hangs using CPU when resolving dependencies on
ghc 6.9 and 6.10 => cabal-install always finds
conflicting dependencies between base 3 and 4
on ghc 6.9 and 6.10
* milestone: => Cabal-1.6
Comment:
The current darcs version of cabal-install fixes the hanging bug, thanks
to Saizan.
{{{
Thu Sep 25 11:14:41 PDT 2008 Andrea Vezzosi

#349: cabal-install always finds conflicting dependencies between base 3 and 4 on ghc 6.9 and 6.10 ---------------------------------+------------------------------------------ Reporter: ganesh | Owner: duncan Type: defect | Status: closed Priority: high | Milestone: Cabal-1.6 Component: cabal-install tool | Version: Severity: major | Resolution: fixed Keywords: | Difficulty: hard (< 1 day) Ghcversion: 6.9 | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * status: new => closed * resolution: => fixed Comment: Fixed. It no longer finds that it's a conflict. However to have it actually pick base 3 for most packages you need to modify your 00-index.tar file to contain a file `preferred-versions` that looks like: {{{ base < 4 }}} Eventually this will be in the standard index downloaded from hackage. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/349#comment:6 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage