Skip to content

Bisection wiki, ghc-cabal missing dependencies, process

Summary

Following on from #18571 (closed), I'm bisecting manually between GHC 8.2.2 and 8.4.1 and updating the wiki article on bisection with explanations and gotchas as I go. I'm having to git bisect skip many times when make fails with the error:

> make clean
> git submodule update --init
> ./boot
> ./configure
> make -j4
...
===--- building phase 0
...
[164 of 164] Compiling Main
Linking utils/ghc-cabal/dist/build/tmp/ghc-cabal ...
"touch" utils/ghc-cabal/dist/build/tmp/ghc-cabal
"cp" utils/ghc-cabal/dist/build/tmp/ghc-cabal inplace/bin/ghc-cabal
"inplace/bin/ghc-cabal" configure ...
...
Configuring genapply-0.1...
Configuring dll-split-0.1...
Configuring hsc2hs-0.68.1...
Configuring binary-0.8.4.1...
ghc-cabal: Encountered missing dependencies:
process >=1.1 && <1.5
make[1]: *** [utils/hsc2hs/dist/package-data.mk] Error 1
make[1]: *** Waiting for unfinished jobs....
"/Users/pdejoux/.ghcup/bin/ghc-pkg" update -v0 --force
  --package-db=libraries/bootstrapping.conf
  libraries/binary/dist-boot/inplace-pkg-config
binary-0.8.4.1: Warning: haddock-interfaces:
   /.../ghc/libraries/binary/dist-boot/doc/html/binary/binary.haddock doesn't exist or isn't a file
make: *** [all] Error 2

Proposed improvements or changes

Is this a known problem with a workaround we could add to the gotchas?

Environment

  • GHC version used (if appropriate):
> ./configure
Configure completed successfully.

   Building GHC version  : 8.3.20170425
          Git commit id  : 688272ba31df7bd0a094c3d86d60f7b77b9f5268

   Build platform        : x86_64-apple-darwin
   Host platform         : x86_64-apple-darwin
   Target platform       : x86_64-apple-darwin

   Bootstrapping using   : /Users/pdejoux/.ghcup/bin/ghc
      which is version   : 8.2.2

   Using (for bootstrapping) : gcc
   Using clang               : gcc
      which is version       : 10.0.0
   Building a cross compiler : NO
   Unregisterised            : NO
   hs-cpp       : gcc
   hs-cpp-flags : -E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs
   ar           : /usr/bin/ar
   ld           : /usr/bin/ld
   nm           : /usr/bin/nm
   objdump      : /usr/bin/objdump
   ranlib       : /usr/bin/ranlib
   windres      :
   dllwrap      :
   Happy        : /Users/pdejoux/.cabal/bin/happy (1.19.9)
   Alex         : /Users/pdejoux/.cabal/bin/alex (3.2.5)
   Perl         : /usr/bin/perl
   sphinx-build : /Library/Frameworks/Python.framework/Versions/3.6/bin/sphinx-build
   xelatex      : /Library/TeX/texbin/xelatex

   Using LLVM tools
      llc   :
      opt   :

   HsColour was not found; documentation will not contain source links

   Tools to build Sphinx HTML documentation available: YES
   Tools to build Sphinx PDF documentation available: YES
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information