Building HEAD with HEAD fails

Gabor Greif ggreif at gmail.com
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...
Done.
"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-4.8.2.0 -package-id containers-0.5.6.2 -package-id
directory-1.2.2.0 -package-id filepath-1.4.0.0 -package-id
process-1.2.3.0 -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-0.7.5.0 has ABIs: , c28f822c21e75eb270eca0870e42aaac
    Cabal-1.23.0.0 has ABIs: , a0a6af8f1dd909f2ee719ddb2cd65779
    hpc-0.6.0.2 has ABIs: , 3434375974d4bc6d14952a90ec97d0c4
    ghc-boot-0.0.0.0 has ABIs: , f422fc19421064f81c42815f25a11e6e
    hoopl-3.10.0.2 has ABIs: , 8968e2731ff8d529c37c048d65e94bf2
    transformers-0.4.3.0 has ABIs: , 812457c97c58693d7f8a813b1ba19a33
    template-haskell-2.11.0.0 has ABIs: , 0ef51476100e9bdf96d1bf59696b98a1
    terminfo-0.4.0.1 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,

    Gabor


More information about the ghc-devs mailing list