In-tree invocation of GHC built with Hadrian

Simon Peyton Jones simonpj at microsoft.com
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-4.12.0.0/Prelude.hi

        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?
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190404/ffeae9bf/attachment.html>


More information about the ghc-devs mailing list