<div dir="ltr">From the looks of it, you're building with a bootstrap compiler (stage 0). Does the build compiler need to have this in its runtime libraries for the built compiler to work? This will require you to work it in in multiple versions, the first providing it without using it and the next using the provided one.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 23, 2019 at 12:03 PM Jan van Brügge <<a href="mailto:jan@vanbruegge.de">jan@vanbruegge.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid 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">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">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><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>