Building HEAD with HEAD fails

Gabor Greif ggreif at
Wed Oct 21 10:51:02 UTC 2015

Hi devs,

just a heads-up (pun intended...)

(After updating to TOT, boot and configure with a freshly installed
TOT ghc as bootstrap compiler. Then 'make clean'.)

Running 'make' gives:

Creating includes/ghcplatform.h...
"rm" -f utils/hsc2hs/dist/build/.depend.haskell.tmp
"/home/ggreif/bin/ghc" -M -static  -H64m -O0 -fasm   -package-db
libraries/bootstrapping.conf  -hide-all-packages -i -iutils/hsc2hs/.
-iutils/hsc2hs/dist/build -iutils/hsc2hs/dist/build/autogen
-Iutils/hsc2hs/dist/build -Iutils/hsc2hs/dist/build/autogen
-optP-include -optPutils/hsc2hs/dist/build/autogen/cabal_macros.h
-package-id base- -package-id containers- -package-id
directory- -package-id filepath- -package-id
process- -XHaskell2010  -no-user-package-db -rtsopts      -odir
utils/hsc2hs/dist/build -hidir utils/hsc2hs/dist/build -stubdir
utils/hsc2hs/dist/build -dep-makefile
utils/hsc2hs/dist/build/.depend.haskell.tmp -dep-suffix ""
-include-pkg-deps  utils/hsc2hs/./Main.hs  utils/hsc2hs/./C.hs
utils/hsc2hs/./Common.hs  utils/hsc2hs/./CrossCodegen.hs
utils/hsc2hs/./DirectCodegen.hs  utils/hsc2hs/./Flags.hs
utils/hsc2hs/./HSCParser.hs  utils/hsc2hs/./UtilsCodegen.hs
<command line>: package db: duplicate packages with incompatible ABIs:
    binary- has ABIs: , c28f822c21e75eb270eca0870e42aaac
    Cabal- has ABIs: , a0a6af8f1dd909f2ee719ddb2cd65779
    hpc- has ABIs: , 3434375974d4bc6d14952a90ec97d0c4
    ghc-boot- has ABIs: , f422fc19421064f81c42815f25a11e6e
    hoopl- has ABIs: , 8968e2731ff8d529c37c048d65e94bf2
    transformers- has ABIs: , 812457c97c58693d7f8a813b1ba19a33
    template-haskell- has ABIs: , 0ef51476100e9bdf96d1bf59696b98a1
    terminfo- has ABIs: , aa24f544c0e3614d419e63fa170ac467

The only solution I could come up for now is

cd libraries
ln -s /home/ggreif/lib/ghc-7.11.20151020/package.conf.d bootstrapping.conf

then resuming 'make' leads to success.

What could this be? Has somebody seen such an error?

Cheers and thanks,


More information about the ghc-devs mailing list