In-tree invocation of GHC built with Hadrian

Simon Peyton Jones simonpj at
Thu Apr 4 11:21:36 UTC 2019

How can I run the inplace binary built by Hadrian.  I tried this

~/code/HEAD/_build/stage0/bin/ghc -c Foo.hs
but I got this

~/code/HEAD/_build/stage0/bin/ghc -c Foo.hs

Foo.hs:1:8: error:

    Bad interface file: /opt/ghc/8.6.4/lib/ghc-8.6.4/base-

        mismatched interface file versions (wanted "80920190403", got "8064")


1 | module Foo where

  |        ^^^

simonpj at MSRC-3645512:~/tmp$
Somehow the inplace binary built by Hadrian is looking for library files in completely the wrong place.
What should I do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list