Skip to content

Cabal can't new-build bytestring with GHC 8.0.1 #3824

Open

Description

@blamario

~/Haskell/bytestring$ cd ~/tmp/
~/tmp$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1
~/tmp$ cabal --version
cabal-install version 1.24.0.0
compiled using version 1.24.0.0 of the Cabal library
~/tmp$ date
Sun Sep 11 15:15:40 EDT 2016
~/tmp$ git clone https://github.com/haskell/bytestring.git
Cloning into 'bytestring'...
remote: Counting objects: 6795, done.
remote: Total 6795 (delta 0), reused 0 (delta 0), pack-reused 6795
Receiving objects: 100% (6795/6795), 12.25 MiB | 3.33 MiB/s, done.
Resolving deltas: 100% (4409/4409), done.
Checking connectivity... done.
~/tmp$ cd bytestring/

Starting with a clean slate, cabal-install-1.24 ponders for 83 seconds, then claims that the globally installed unix-2.7.2.0 package is broken:

~/tmp/bytestring$ mv ~/.cabal/ ~/.ghc/ ~/tmp/
~/tmp/bytestring$ ~/tmp/.cabal/bin/cabal update
Downloading the latest package list from hackage.haskell.org
~/tmp/bytestring$ /usr/bin/time ~/tmp/.cabal/bin/cabal new-build
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: process-1.4.2.0/installed-1.4... (dependency of
optparse-applicative-0.12.1.0)
next goal: unix (dependency of process-1.4.2.0/installed-1.4...)
rejecting: unix-2.7.2.0/installed-2.7... (package is broken)
rejecting: unix-2.7.2.0, unix-2.7.1.0, unix-2.7.0.1, unix-2.7.0.0,
unix-2.6.0.1, unix-2.6.0.0, unix-2.5.1.1, unix-2.5.1.0, unix-2.5.0.0,
unix-2.4.2.0, unix-2.4.1.0, unix-2.4.0.2, unix-2.4.0.1, unix-2.4.0.0,
unix-2.3.2.0, unix-2.3.1.0, unix-2.3.0.0, unix-2.2.0.0, unix-2.0 (conflict:
process => unix==2.7.2.0/installed-2.7...)
Backjump limit reached (currently 2000, change with --max-backjumps or try to
run with --reorder-goals).
Command exited with non-zero status 1
83.05user 0.16system 1:23.74elapsed 99%CPU (0avgtext+0avgdata 298340maxresident)k
20432inputs+8outputs (75major+78990minor)pagefaults 0swaps

The HEAD version of cabal-install instead quickly diverges and thrashes my machine, unless I stop it:

~/tmp/bytestring$ /usr/bin/time ~/Haskell/cabal/dist-newstyle/build/cabal-install-1.25.0.0/build/cabal/cabal new-build
Resolving dependencies...
^CCommand terminated by signal 2
23.38user 1.23system 0:24.63elapsed 99%CPU (0avgtext+0avgdata 6580484maxresident)k
0inputs+8outputs (0major+1649612minor)pagefaults 0swaps

I tried installing a fresh new user-local unix-2.7.2.0 but that didn't help.

Activity

  1. self-assigned this
    on Sep 11, 2016
  2. 23Skidoo commented on Sep 11, 2016

    @23Skidoo
    Member

    ponders for 83 seconds, then claims that the globally installed unix-2.7.2.0 package is broken:

    Can reproduce with a GHC 8.0.2 snapshot and a recent cabal-install from master.

  3. ezyang commented on Sep 11, 2016

    @ezyang
    Contributor

    Is the problem possibly that new-build will always force use of an installed package if it's available, but since you have a new bytestring we can't use the old unix, so it's unsat? I don't actually know where this policy gets applied.

  4. added this to the 2.0 milestone on Sep 11, 2016
  5. added
    cabal-install: v2-build system
    on Sep 11, 2016
  6. ezyang commented on Sep 11, 2016

    @ezyang
    Contributor

    Definitely feels like a blocker for 2.0. @GrayJay if you don't have time to investigate feel free to unassign yourself.

  7. sebright commented on Sep 11, 2016

    @sebright
    Collaborator

    Okay. I at least wanted to look into the last problem.

  8. sebright commented on Sep 11, 2016

    @sebright
    Collaborator

    The space leak was introduced in #3594 and is unrelated to the broken package. I'll work on a PR.

  9. 23Skidoo commented on Sep 11, 2016

    @23Skidoo
    Member
  10. sebright commented on Sep 12, 2016

    @sebright
    Collaborator

    The space leak was actually caused by #2899 and a bug in #3594. I fixed the newer issue in #3826, but #2899 will take more work.

  11. removed their assignment
    on Sep 12, 2016
  12. added a commit that references this issue on Sep 12, 2016
  13. 6 remaining items

  14. modified the milestones: 2.0.1, 2.0 on Feb 17, 2017
  15. sebright commented on Jun 27, 2017

    @sebright
    Collaborator

    #4176 fixed some of the issues with cyclic dependencies, so I think that the only remaining issues are #941, #1185, #1575, and flag/stanza variables missing from conflict sets for cyclic dependencies (item 4 in my previous comment: #3824 (comment)).

  16. modified the milestones: 2.0.1, 2.0.2 on Sep 19, 2017
  17. modified the milestones: 2.0.2, 2.4 on Aug 29, 2018
  18. modified the milestones: 2.4, 2.4.1 on Sep 17, 2018
  19. modified the milestones: 2.4.1.0, 2.4.2.0 on Apr 26, 2019
  20. modified the milestones: 2.4.2.0, 3.4 on Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cabal-install: solvercabal-install: v2-build systemtype: bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions