<div><div dir="auto">For some reason, you end up in the defined RTS_SSP_SYMBOLS, I believe and then the RTS wants __stack_chk symbols. Which it can’t find when linking. </div></div><div dir="auto"><br></div><div dir="auto">Replacing</div><div dir="auto"><pre style="word-wrap:break-word;white-space:pre-wrap">#if !defined(mingw32_HOST_OS) && !defined(DYNAMIC)
#define RTS_SSP_SYMBOLS                                \
      SymI_NeedsProto(__stack_chk_guard)               \
      SymI_NeedsProto(__stack_chk_fail)
#else
#define RTS_SSP_SYMBOLS
#endif</pre><pre style="word-wrap:break-word;white-space:pre-wrap">With just</pre><pre style="word-wrap:break-word;white-space:pre-wrap"><pre style="word-wrap:break-word;white-space:pre-wrap"><br></pre><pre style="word-wrap:break-word;white-space:pre-wrap">#define RTS_SSP_SYMBOLS</pre></pre></div><div dir="auto"><br></div><div dir="auto">Should do. I hope. </div><div dir="auto"><br></div><div dir="auto">Currently only on mobile phone :-/</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"> Moritz</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 14 Jul 2020 at 7:06 PM, Simon Peyton Jones <<a href="mailto:simonpj@microsoft.com">simonpj@microsoft.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="blue" vlink="purple">
<div class="m_-778775121447864626WordSection1">
<p class="MsoNormal"><span>thanks.  What specifically do I comment out?<u></u><u></u></span></p></div></div><div lang="EN-GB" link="blue" vlink="purple"><div class="m_-778775121447864626WordSection1">
<p class="MsoNormal"><span><u></u> <u></u></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"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Moritz Angermann <<a href="mailto:moritz.angermann@gmail.com" target="_blank">moritz.angermann@gmail.com</a>>
<br>
<b>Sent:</b> 14 July 2020 12:00<br>
<b>To:</b> Simon Peyton Jones <<a href="mailto:simonpj@microsoft.com" target="_blank">simonpj@microsoft.com</a>><br>
<b>Cc:</b> <a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<b>Subject:</b> Re: HEAD doesn't build. Totally stalled.<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
This was my fault. Not sure why this wasn’t caught in CI. <u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
It’s due to the addition of the symbols here<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
<u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
<a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fghc%2Fghc%2Fcommit%2F686e72253aed3880268dd6858eadd8c320f09e97%23diff-03f5bc5a50fd8ae13e902782c4392c38R1159&data=02%7C01%7Csimonpj%40microsoft.com%7C40749bcb0bb14dcea25f08d827e523ae%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637303212391074872&sdata=smhfL4kdMecscZW5aStt7UISTz0GP%2BbOa5B0OZwEsnU%3D&reserved=0" target="_blank">https://github.com/ghc/ghc/commit/686e72253aed3880268dd6858eadd8c320f09e97#diff-03f5bc5a50fd8ae13e902782c4392c38R1159</a><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
<u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
You should be able to just comment them out. I’ll prepare a proper fix. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
<u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
Cheers,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
 Moritz <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
<u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:6.0pt;margin-left:0cm">
On Tue, 14 Jul 2020 at 6:41 PM, Simon Peyton Jones via ghc-devs <<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">I’m getting this failure in a clean HEAD build. Any ideas?    I’m totally stalled because I can’t build GHC any more.<u></u><u></u></p>
<p class="MsoNormal">I’m using Windows Subsystem for Linux (WSL).<u></u><u></u></p>
<p class="MsoNormal">Help help!<u></u><u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Simon<u></u><u></u></p>
<p class="m_-778775121447864626m-8780510408337222857code"><span style="color:red">/home/simonpj/code/HEAD-9/rts/dist/build/libHSrts_thr_p.a(RtsSymbols.thr_p_o): RtsSymbols.c:rtsSyms: error: undefined reference to '__stack_chk_guard'</span><u></u><u></u></p>
<p class="m_-778775121447864626m-8780510408337222857code">collect2: error: ld returned 1 exit status<u></u><u></u></p>
<p class="m_-778775121447864626m-8780510408337222857code">`cc' failed in phase `Linker'. (Exit code: 1)<u></u><u></u></p>
<p class="m_-778775121447864626m-8780510408337222857code">utils/iserv/<a href="https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fghc.mk%3A105%2F&data=02%7C01%7Csimonpj%40microsoft.com%7C40749bcb0bb14dcea25f08d827e523ae%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637303212391084868&sdata=8tc45RXK%2B0SsDi%2FrE3BmiqzgqXapuKOf%2Bxh05G3SFxE%3D&reserved=0" target="_blank">ghc.mk:105</a>:
 recipe for target 'utils/iserv/stage2_p/build/tmp/ghc-iserv-prof' failed<u></u><u></u></p>
<p class="m_-778775121447864626m-8780510408337222857code">make[1]: *** [utils/iserv/stage2_p/build/tmp/ghc-iserv-prof] Error 1<u></u><u></u></p>
<p class="m_-778775121447864626m-8780510408337222857code">make[1]: *** Waiting for unfinished jobs....<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<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%7C40749bcb0bb14dcea25f08d827e523ae%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637303212391084868&sdata=ro0MHyhAq0UPzvtwQCbDUZikr2a4AHa4FkCa9OtQ68Q%3D&reserved=0" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</div>
</div>

</blockquote></div></div>