build ghc with make (ghc-boot-th broken deps)

Daneel Yaitskov dyaitskov at
Wed May 20 17:48:41 UTC 2020

Hi List,

I pulled ghc repo (568d7279a) and trying to build with following env:
Ghc from stack (8.8.3). I made links to ghc and ghc-pkg in /usr/bin

./boot is passing well, but ./configure breaks on ghc-boot step.
I have no idea how could I fix this issue.

I manually modified dep versions in to what I have for ghc-8.8.3 and
issue with ghc-boot-th disappeared and appeared parsec


    array- base- bytestring- containers-

but there was
    array- base- bytestring- containers-

Where is actual problem?
Old cabal?

10:45$ cabal --version
cabal-install version
compiled using version of the Cabal library

Configuring ghc-boot-th-
"/usr/bin/ghc-pkg" update -v0 --force
"inplace/bin/ghc-cabal" configure libraries/ghc-boot dist-boot
--with-ghc="/usr/bin/ghc" --with-ghc-pkg="/usr/bin/ghc-pkg"
--disable-library-for-ghci --enable-library-vanilla
--enable-library-for-ghci --disable-library-profiling --disable-shared
--configure-option=CFLAGS="-Wall     -Werror=unused-but-set-variable
-Wno-error=inline -iquote
--configure-option=LDFLAGS="  " --configure-option=CPPFLAGS="   "
--gcc-options="-Wall     -Werror=unused-but-set-variable
-Wno-error=inline -iquote
/home/dan/demo/haskell/compiler/ghc/libraries/ghc-boot   "
--constraint "binary =="   --constraint "transformers =="   --constraint "mtl == 2.2.2"   --constraint "hpc =="
  --constraint "ghc-boot-th =="   --constraint
"ghc-boot =="   --constraint "template-haskell =="   --constraint "text =="   --constraint "parsec =="   --constraint "Cabal =="   --constraint "ghc-heap
=="   --constraint "exceptions == 0.10.4"
--constraint "ghci =="   --constraint "terminfo ==" --with-gcc="gcc" --with-ld="" --with-ar="ar"
Configuring ghc-boot-
    The following packages are broken because other packages they
depend on are missing. These broken packages must be rebuilt before
they can be used.
installed package binary- is broken due to missing package
array-, base-, bytestring-, containers-

libraries/ghc-boot/ recipe for target
'libraries/ghc-boot/dist-boot/' failed
make[1]: *** [libraries/ghc-boot/dist-boot/] Error 1
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2


Best regards,
Daniil Iaitskov

More information about the ghc-devs mailing list