haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 213 forks source link

MacOS: current master fails Cabal build #1733

Closed mouse07410 closed 4 years ago

mouse07410 commented 4 years ago

MacOS Catalina 10.15.4, Xcode-11.4, GHC-8.8.3 (8.6.5 and 8.10.1 present/installed), cabal-3.2.0.0 (from Hackage).

$ time ./cabal-hie-install hie
Resolving dependencies...
Build profile: -w ghc-8.8.3 -O1
In order, the following will be built (use -v for more details):
 - hie-install-0.8.1.0 (lib) (first run)
 - fake-package-0 (exe:script) (first run)
Configuring library for hie-install-0.8.1.0..
Preprocessing library for hie-install-0.8.1.0..
Building library for hie-install-0.8.1.0..
[1 of 8] Compiling BuildSystem      ( src/BuildSystem.hs, /Users/uri/src/haskell-ide-engine/dist-newstyle/build/x86_64-osx/ghc-8.8.3/hie-install-0.8.1.0/build/BuildSystem.o )
[2 of 8] Compiling Print            ( src/Print.hs, /Users/uri/src/haskell-ide-engine/dist-newstyle/build/x86_64-osx/ghc-8.8.3/hie-install-0.8.1.0/build/Print.o )
. . . . .
Reordering items... 0.50s
Writing tags... 4.54s
Writing names... 2.95s
Writing types... 18.33s
Took 3m30s
# cabal (for hie-8.8.3)
Wrote tarball sdist to
/Users/uri/src/haskell-ide-engine/dist-newstyle/sdist/haskell-ide-engine-1.3.tar.gz
Wrote tarball sdist to
/Users/uri/src/haskell-ide-engine/dist-newstyle/sdist/hie-plugin-api-1.3.tar.gz
Wrote tarball sdist to
/Users/uri/src/haskell-ide-engine/dist-newstyle/sdist/cabal-helper-1.0.0.0.tar.gz
Resolving dependencies...
Build profile: -w ghc-8.8.3 -O1
In order, the following will be built (use -v for more details):
 - cabal-doctest-1.0.8 (lib) (requires build)
 - cabal-plan-0.6.2.0 (lib) (requires build)
internal error in InstallPlan.completed: not in configured state: Installed w-lggr-2.3.6-1810dd54
CallStack (from HasCallStack):
  error, called at ./Distribution/Client/InstallPlan.hs:260:25 in main:Distribution.Client.InstallPlan
  internalError, called at ./Distribution/Client/InstallPlan.hs:656:26 in main:Distribution.Client.InstallPlan
Error when running Shake build system:
  at want, called at src/Development/Shake/Internal/Args.hs:83:69 in shk-0.18.5-2524b75f:Development.Shake.Internal.Args
* Depends on: hie
* Depends on: latest
* Depends on: hie-8.8.3
  at command, called at src/Cabal.hs:28:13 in hie-install-0.8.1.0-inplace:Cabal
* Raised the exception:
Development.Shake.command, system command failed
Command line: cabal v2-install -w /Users/uri/.ghcup/bin/ghc-8.8.3 --write-ghc-environment-files=never --installdir /Users/uri/.cabal/bin --max-backjumps=5000 exe:hie exe:hie-wrapper --overwrite-policy=always --project-file=cabal.project-8.8.3 -v1
Exit code: 1
Stderr:
internal error in InstallPlan.completed: not in configured state: Installed w-lggr-2.3.6-1810dd54
CallStack (from HasCallStack):
  error, called at ./Distribution/Client/InstallPlan.hs:260:25 in main:Distribution.Client.InstallPlan
  internalError, called at ./Distribution/Client/InstallPlan.hs:656:26 in main:Distribution.Client.InstallPlan
mouse07410 commented 4 years ago

Looks like this failure was caused by "bad" cabal-install corrupting the store ~/.cabal/store/ghc-8.8.3 irreparably. After I blew the store off completely, the built succeeded. Now my computer is busy reinstalling everything that was there (with a "good" cabal-install).