<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Issue tracked at <a class="moz-txt-link-freetext" href="https://gitlab.haskell.org/ghc/ghc/issues/16534">https://gitlab.haskell.org/ghc/ghc/issues/16534</a></p>
    <p>Somehow the stage 2 GHCs (_build/stage1/bin/ghc) that we build
      _don't_ have this problem. I will post an update here when I have
      a comprehensive explanation and a fix.<br>
    </p>
    <div class="moz-cite-prefix">On 04/04/2019 17:40, Simon Peyton Jones
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DB7PR83MB0298AC0AEB362C506535789AAD500@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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;
        color:black;
        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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;
        mso-fareast-language:EN-GB;}
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";
        color:black;
        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";
        color:black;
        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";
        color:black;
        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";
        color:black;
        mso-fareast-language:EN-US;
        font-weight:bold;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;
        mso-fareast-language:EN-GB;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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"><span
            style="color:windowtext;mso-fareast-language:EN-GB">OK,
            that’s great – it’s not just me.   I’ll await further
            guidance, and revert to “sh validate” meanwhile.<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:windowtext;mso-fareast-language:EN-GB">Thanks<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="color:windowtext;mso-fareast-language:EN-GB">Simon<o:p></o:p></span></p>
        <div style="border:none;border-left:solid blue 1.5pt;padding:0cm
          0cm 0cm 4.0pt">
          <div>
            <div style="border:none;border-top:solid #E1E1E1
              1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal"
                style="margin:0cm;margin-bottom:.0001pt"><b><span
                    style="color:windowtext;mso-fareast-language:EN-GB"
                    lang="EN-US">From:</span></b><span
                  style="color:windowtext;mso-fareast-language:EN-GB"
                  lang="EN-US"> ghc-devs
                  <a class="moz-txt-link-rfc2396E" href="mailto:ghc-devs-bounces@haskell.org"><ghc-devs-bounces@haskell.org></a>
                  <b>On Behalf Of </b>Alp Mestanogullari<br>
                  <b>Sent:</b> 04 April 2019 16:25<br>
                  <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
                  <b>Subject:</b> Re: In-tree invocation of GHC built
                  with Hadrian<o:p></o:p></span></p>
            </div>
          </div>
          <p class="MsoNormal"><o:p> </o:p></p>
          <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.<o:p></o:p></p>
          <div>
            <p class="MsoNormal">On 04/04/2019 13:21, Simon Peyton Jones
              via ghc-devs wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <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>
            <p class="MsoNormal"
              style="margin:0cm;margin-bottom:.0001pt"><span
                style="mso-fareast-language:EN-GB"><br>
                <br>
                <o:p></o:p></span></p>
            <pre>_______________________________________________<o:p></o:p></pre>
            <pre>ghc-devs mailing list<o:p></o:p></pre>
            <pre><a href="mailto:ghc-devs@haskell.org" moz-do-not-send="true">ghc-devs@haskell.org</a><o:p></o:p></pre>
            <pre><a href="https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.haskell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc-devs&data=02%7C01%7Csimonpj%40microsoft.com%7Ca6847ac7f36c4ce3262f08d6b911c07c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636899883237056680&sdata=vuOggPvujLw9p5TxHvatZdcbWlG59WOocBz1YU4Q534%3D&reserved=0" moz-do-not-send="true">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><o:p></o:p></pre>
          </blockquote>
          <pre>-- <o:p></o:p></pre>
          <pre>Alp Mestanogullari, Haskell Consultant<o:p></o:p></pre>
          <pre>Well-Typed LLP, <a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.well-typed.com%2F&data=02%7C01%7Csimonpj%40microsoft.com%7Ca6847ac7f36c4ce3262f08d6b911c07c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636899883237066684&sdata=OTz4GGrHGdlLedtBvHrW5%2BmqeLcaRaIIsivi1P%2B7Xus%3D&reserved=0" moz-do-not-send="true">https://www.well-typed.com/</a><o:p></o:p></pre>
          <pre><o:p> </o:p></pre>
          <pre>Registered in England and Wales, OC335890<o:p></o:p></pre>
          <pre>118 Wymering Mansions, Wymering Road, London, W9 2NF, England<o:p></o:p></pre>
        </div>
      </div>
    </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>