<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I can reproduce this problem. This doesn't come up when building
stage2 with that executable (stage1) because the commands that
Hadrian emits all do something along the lines of
`-no-user-package-db -package-db
_build/stage0/lib/package.conf.d`, which masks the problem. I'm
looking into this, I will open a ticket soon with the information
that I can gather.<br>
</p>
<div class="moz-cite-prefix">On 04/04/2019 13:21, Simon Peyton Jones
via ghc-devs wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DB7PR83MB0298254EDA0DE69903C34E6CAD500@DB7PR83MB0298.EURPRD83.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:6.0pt;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.Code, li.Code, div.Code
{mso-style-name:Code;
margin-top:6.0pt;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:14.2pt;
mso-add-space:auto;
font-size:11.0pt;
font-family:"Courier New";
mso-fareast-language:EN-US;
font-weight:bold;}
p.CodeCxSpFirst, li.CodeCxSpFirst, div.CodeCxSpFirst
{mso-style-name:CodeCxSpFirst;
mso-style-type:export-only;
margin-top:6.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:14.2pt;
margin-bottom:.0001pt;
mso-add-space:auto;
font-size:11.0pt;
font-family:"Courier New";
mso-fareast-language:EN-US;
font-weight:bold;}
p.CodeCxSpMiddle, li.CodeCxSpMiddle, div.CodeCxSpMiddle
{mso-style-name:CodeCxSpMiddle;
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:14.2pt;
margin-bottom:.0001pt;
mso-add-space:auto;
font-size:11.0pt;
font-family:"Courier New";
mso-fareast-language:EN-US;
font-weight:bold;}
p.CodeCxSpLast, li.CodeCxSpLast, div.CodeCxSpLast
{mso-style-name:CodeCxSpLast;
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:14.2pt;
mso-add-space:auto;
font-size:11.0pt;
font-family:"Courier New";
mso-fareast-language:EN-US;
font-weight:bold;}
span.EmailStyle18
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">How can I run the inplace binary built by
Hadrian. I tried this<o:p></o:p></p>
<p class="Code">~/code/HEAD/_build/stage0/bin/ghc -c Foo.hs<o:p></o:p></p>
<p class="MsoNormal">but I got this<o:p></o:p></p>
<p class="CodeCxSpFirst">~/code/HEAD/_build/stage0/bin/ghc -c
Foo.hs<o:p></o:p></p>
<p class="CodeCxSpMiddle"
style="margin-left:0cm;mso-add-space:auto"><o:p> </o:p></p>
<p class="CodeCxSpMiddle">Foo.hs:1:8: error:<o:p></o:p></p>
<p class="CodeCxSpMiddle"> Bad interface file:
/opt/ghc/8.6.4/lib/ghc-8.6.4/base-4.12.0.0/Prelude.hi<o:p></o:p></p>
<p class="CodeCxSpMiddle"> mismatched interface file
versions (wanted "80920190403", got "8064")<o:p></o:p></p>
<p class="CodeCxSpMiddle"> |<o:p></o:p></p>
<p class="CodeCxSpMiddle">1 | module Foo where<o:p></o:p></p>
<p class="CodeCxSpMiddle"> | ^^^<o:p></o:p></p>
<p class="CodeCxSpLast">simonpj@MSRC-3645512:~/tmp$<o:p></o:p></p>
<p class="MsoNormal">Somehow the inplace binary built by Hadrian
is looking for library files in completely the wrong place.<o:p></o:p></p>
<p class="MsoNormal">What should I do?<o:p></o:p></p>
<p class="MsoNormal">Simon<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ghc-devs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Alp Mestanogullari, Haskell Consultant
Well-Typed LLP, <a class="moz-txt-link-freetext" href="https://www.well-typed.com/">https://www.well-typed.com/</a>
Registered in England and Wales, OC335890
118 Wymering Mansions, Wymering Road, London, W9 2NF, England</pre>
</body>
</html>