<div dir="ltr"><div>Hi Roland,</div><div><br></div><div>Since you mention an RTS variant with an _l suffix (for eventlog), I suspect that you may have to (reboot? and) reconfigure after <a href="https://gitlab.haskell.org/ghc/ghc/-/issues/18948">https://gitlab.haskell.org/ghc/ghc/-/issues/18948</a> and <a href="https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4448">https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4448</a>.</div><div><br></div><div>Does that help?</div><div><br></div><div>Cheers,<br></div><div>Sebastian<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 25. Nov. 2020 um 10:33 Uhr schrieb Roland Senn <<a href="mailto:rsx@bluewin.ch">rsx@bluewin.ch</a>>:<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 there!<br>
<br>
I have two GHC trees. One is called ghcdebug and is a little bit<br>
outdated (16. September 2020). In this tree, I can work normally:<br>
Change code, compile and run the resulting GHC compiler. <br>
<br>
The second tree is up-to-date! Compiling works fine, however the linker<br>
steps for the ghc executable fails. When I restart the failing link<br>
step, I get the following error:<br>
<br>
$ hadrian/build --flavour=devel2 --freeze1 -j2 stage2:exe:ghc-bin<br>
Up to date<br>
| Run Ghc LinkHs Stage1: _build/stage1/ghc/build/c/hschooks.o (and 7<br>
more) => _build/stage1/bin/ghc<br>
/usr/bin/ld.gold: error: cannot find -lHSrts-1.0_thr_l<br>
_build/stage1/ghc/build/GHCi/Leak.o(.text+0xd5): error: undefined<br>
reference to 'stg_upd_frame_info'<br>
_build/stage1/ghc/build/GHCi/Leak.o(.text+0x1c2): error: undefined<br>
reference to 'stg_upd_frame_info'<br>
_build/stage1/ghc/build/GHCi/Leak.o(.text+0x1e6): error: undefined<br>
reference to 'stg_ap_ppp_info'<br>
... and many many more lines with "error: undefined<br>
reference to ..." <br>
<br>
I get the same error when I use a freshly cloned ghc tree. I also get<br>
the error independently of the GHC version used to compile (8.8.3 or<br>
8.10.2). I didn't modify any settings files.<br>
<br>
I do: <br>
hadrian/build clean<br>
hadrian/build --flavour=devel2 -j2<br>
<br>
I'm using a normal x68_64 box with plain vanilla Linux Debian 10. No<br>
Docker and no Nix.<br>
<br>
The directory _build/stage/rts/build contains:<br>
<br>
roland@goms:~/Projekte/ghc$ ls -all _build/stage1/rts/build/<br>
insgesamt 19396<br>
drwxr-xr-x 5 roland roland 4096 Nov 24 17:58 .<br>
drwxr-xr-x 3 roland roland 4096 Nov 24 17:56 ..<br>
drwxr-xr-x 2 roland roland 4096 Nov 24 17:56 autogen<br>
drwxr-xr-x 7 roland roland 12288 Nov 24 17:58 c<br>
drwxr-xr-x 2 roland roland 4096 Nov 24 17:58 cmm<br>
-rw-r--r-- 1 roland roland 31349 Nov 24 17:58 DerivedConstants.h<br>
-rw-r--r-- 1 roland roland 13764 Nov 24 17:57 ffi.h<br>
-rw-r--r-- 1 roland roland 4343 Nov 24 17:57 ffitarget.h<br>
-rw-r--r-- 1 roland roland 15128 Nov 24 17:58 ghcautoconf.h<br>
-rw-r--r-- 1 roland roland 618 Nov 24 17:58 ghcplatform.h<br>
-rw-r--r-- 1 roland roland 732 Nov 24 17:58 ghcversion.h<br>
-rw-r--r-- 1 roland roland 82486 Nov 24 17:57 libCffi.a<br>
lrwxrwxrwx 1 roland roland 9 Nov 24 17:57 libCffi_thr.a -><br>
libCffi.a<br>
-rw-r--r-- 1 roland roland 9166966 Nov 24 17:58 libHSrts-1.0.a<br>
-rw-r--r-- 1 roland roland 10490730 Nov 24 17:58 libHSrts-1.0_thr.a<br>
<br>
Any ideas what's wrong or how to fix?<br>
<br>
Many thanks and Cheers,<br>
Roland<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>