<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Actually, your alex is <i>too</i> new. See
      <a class="moz-txt-link-freetext" href="https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4657">https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4657</a>. If you
      take the latest master, it will contain that, and your problem
      will be fixed.<br>
    </p>
    <div class="moz-cite-prefix">On 12/23/20 2:10 PM, Richard Eisenberg
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:010f0176910255e9-55f9ed8c-5772-440c-a813-20c1940e72d8-000000@us-east-2.amazonses.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Without having particular knowledge about this specific error: try
      upgrading `alex`, the tool that GHC uses to produce its lexer.
      It's possible a newer version of that tool will fix this problem.
      <div class=""><br class="">
      </div>
      <div class="">Richard<br class="">
        <div><br class="">
          <blockquote type="cite" class="">
            <div class="">On Dec 23, 2020, at 1:37 PM, Neophytos Michael
              <<a href="mailto:nmichael@gmail.com" class=""
                moz-do-not-send="true">nmichael@gmail.com</a>> wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <div dir="ltr" class="">
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small">I am having some
                  trouble building ghc on ubuntu.  I have ghc 8.8.4
                  installed on the machine.  I pulled from the main
                  repository and followed the instructions here: <a
                    href="https://gitlab.haskell.org/ghc/ghc/-/wikis/building/hadrian"
                    class="" moz-do-not-send="true">https://gitlab.haskell.org/ghc/ghc/-/wikis/building/hadrian</a></div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small"><br class="">
                </div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small">Building with:</div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small">./hadrian/build -j<br
                    class="">
                </div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small"><br class="">
                </div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small">it builds for a long
                  time until it finally fails with the message below.  I
                  would appreciate some advice on how to fix this.</div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small"><br class="">
                </div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small">Thank you,</div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small">Neo</div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small"><br class="">
                </div>
                <div class="gmail_default" style="font-size:small"><span
                    style="font-family:"comic sans
                    ms",sans-serif" class=""></span><font class=""
                    face="monospace">===========================</font></div>
                <div class="gmail_default" style=""><font class=""
                    face="monospace">Exit code: 1<br class="">
                    Stderr and Stdout:<br class="">
_build/stage1/compiler/build/GHC/Parser/Lexer.hs:3495:3: error:<br
                      class="">
                        Variable not in scope: int16ToInt# :: Int# ->
                    Int#<br class="">
                         |<br class="">
                    3495 |   int16ToInt#<br class="">
                         |   ^^^^^^^^^^^<br class="">
                    <br class="">
_build/stage1/compiler/build/GHC/Parser/Lexer.hs:3520:3: error:<br
                      class="">
                        Variable not in scope: int32ToInt# :: Int# ->
                    Int#<br class="">
                         |<br class="">
                    3520 |   int32ToInt#<br class="">
                         |   ^^^^^^^^^^^<br class="">
                  </font></div>
                <div class="gmail_default" style=""><font class=""
                    face="monospace">===========================</font></div>
                <div class="gmail_default"
                  style="font-family:"comic sans
                  ms",sans-serif;font-size:small">On that line (in
                  Lexer.hs) we see:</div>
                <div class="gmail_default"
                  style="font-family:"comic sans
                  ms",sans-serif;font-size:small"><br class="">
                </div>
                <div class="gmail_default" style="font-size:small"><font
                    class="" face="monospace">#if __GLASGOW_HASKELL__
                    >= 901<br class="">
                      int16ToInt#<br class="">
                    #endif<br class="">
                        (indexInt16OffAddr# arr off)<br class="">
                    #endif<br class="">
                  </font></div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small"><br class="">
                </div>
                <div class="gmail_default" style="font-family:comic sans
                  ms,sans-serif;font-size:small">so we are in the "then"
                  clause and somehow "int16ToInt#" is nowhere to be
                  found.</div>
                <div class=""><br class="">
                </div>
                -- <br class="">
                <div dir="ltr" class="gmail_signature"
                  data-smartmail="gmail_signature">
                  <div dir="ltr" class=""><font class="" face="comic
                      sans ms, sans-serif">Neo<br class="">
                    </font>
                    <div class=""><br class="">
                    </div>
                  </div>
                </div>
              </div>
              _______________________________________________<br
                class="">
              ghc-devs mailing list<br class="">
              <a href="mailto:ghc-devs@haskell.org" class=""
                moz-do-not-send="true">ghc-devs@haskell.org</a><br
                class="">
              <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><br
                class="">
            </div>
          </blockquote>
        </div>
        <br class="">
      </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>
  </body>
</html>