In-tree invocation of GHC built with Hadrian

Matthew Pickering matthewtpickering at gmail.com
Thu Apr 4 11:46:21 UTC 2019


Do you have any .ghc-environment files in your working directory?

Matt


On Thu, Apr 4, 2019 at 12:21 PM Simon Peyton Jones via ghc-devs
<ghc-devs at haskell.org> wrote:
>
> 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
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


More information about the ghc-devs mailing list