<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Right, Hadrian knows which modules to compile and link by looking
      at the .cabal files -- so when you omit a module from the .cabal
      file Hadrian will fail to build the corresponding library or
      executable correctly.<br>
    </p>
    <div class="moz-cite-prefix">On 23/08/2019 18:20, Jan van Brügge
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5ade3836-8e41-c012-0bba-ffa8fededf99@vanbruegge.de">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Thanks Sandy, it seems like that did the job<br>
      </p>
      <div class="moz-cite-prefix">Am 23.08.19 um 18:04 schrieb Sandy
        Maguire:<br>
      </div>
      <blockquote type="cite"
cite="mid:CADRtjwbNYnqFomG-QJBqOD3tb=dXcHvnPuMhERTtcQtmxcckFQ@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div dir="ltr">Sometimes I see this if I forget to add a file to
          the `exposed-modules` field of the cabal file. You might be
          running into that?</div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Fri, Aug 23, 2019 at
            10:03 AM Jan van Brügge <<a
              href="mailto:jan@vanbruegge.de" moz-do-not-send="true">jan@vanbruegge.de</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi,<br>
            <br>
            in order to clean up my code, I've moved a bunch of stuff to
            a new<br>
            source file, `TcRowTys.hs` that works similar to
            `TcTypeNats.hs`. But<br>
            when trying to compile a clean build of GHC, I get a linker
            error:<br>
            <br>
            ```<br>
            <br>
            | Run Ghc LinkHs Stage0:
            _build/stage0/ghc/build/c/hschooks.o (and 1<br>
            more) => _build/stage0/bin/ghc<br>
_build/stage0/lib/../lib/x86_64-linux-ghc-8.6.5/ghc-8.9.0.20190722/libHSghc-8.9.0.20190722.a(PrelInfo.o)(.text+0x2814):<br>
            error: undefined reference to
            'ghc_TcRowTys_rowTyCons_closure'<br>
_build/stage0/lib/../lib/x86_64-linux-ghc-8.6.5/ghc-8.9.0.20190722/libHSghc-8.9.0.20190722.a(PrelInfo.o)(.data+0x578):<br>
            error: undefined reference to
            'ghc_TcRowTys_rowTyCons_closure'<br>
_build/stage0/lib/../lib/x86_64-linux-ghc-8.6.5/ghc-8.9.0.20190722/libHSghc-8.9.0.20190722.a(TcHsType.o)(.data+0xdd8):<br>
            error: undefined reference to
            'ghc_TcRowTys_rnilTyCon_closure'<br>
            collect2: Fehler: ld gab 1 als Ende-Status zurück<br>
            `gcc' failed in phase `Linker'. (Exit code: 1)<br>
            <br>
            ```<br>
            <br>
            I had a look at the Wiki including the FAQ, but did not fine
            anything<br>
            about that topic. Does someone know what I have to do for
            this to work?<br>
            <br>
            Cheers,<br>
            Jan<br>
            <br>
            _______________________________________________<br>
            ghc-devs mailing list<br>
            <a href="mailto:ghc-devs@haskell.org" target="_blank"
              moz-do-not-send="true">ghc-devs@haskell.org</a><br>
            <a
              href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
          </blockquote>
        </div>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr" class="gmail_signature">
          <div dir="ltr">
            <div>I'm currently traveling the world, sleeping on people's
              couches and doing full-time collaboration on Haskell
              projects. If this seems interesting to you, please
              consider signing up as a host! <a
                href="https://isovector.github.io/erdos/"
                target="_blank" moz-do-not-send="true">https://isovector.github.io/erdos/</a><br>
            </div>
          </div>
        </div>
      </blockquote>
      <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>