<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:6.0pt;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.Code, li.Code, div.Code
{mso-style-name:Code;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:22.7pt;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-language:EN-US;
font-weight:bold;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Devs<span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">On the branch wip/inline-compulsory, I’m getting a strange link error:<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">simonpj@MSRC-3645512:~/tmp$ ~/code/HEAD-2/inplace/bin/ghc-stage1 Hello.hs<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">[1 of 1] Compiling Main ( Hello.hs, Hello.o )<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">Linking Hello ...<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(Updates.o):stg_bh_upd_frame_info: error: undefined reference to 'stg_marked_upd_frame_ret'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(StgMiscClosures.o):stg_CAF_BLACKHOLE_info: error: undefined reference to 'stg_BLACKHOLE_entry'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(StgMiscClosures.o):__stg_EAGER_BLACKHOLE_info: error: undefined reference to 'stg_BLACKHOLE_entry'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(Apply.o):stg_AP_STACK_info: error: undefined reference to 'stg_WHITEHOLE_entry'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(Exception.o):function stg_raisezh: error: undefined reference to 'stg_ap_n_ret'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(Exception.o):function stg_raisezh: error: undefined reference to 'stg_ap_pv_ret'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(AutoApply.o):stg_ap_v_info: error: undefined reference to 'stg_BCO_entry'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(AutoApply.o):stg_ap_f_info: error: undefined reference to 'stg_BCO_entry'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(AutoApply.o):stg_ap_d_info: error: undefined reference to 'stg_BCO_entry'<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">/home/simonpj/code/HEAD-2/rts/dist/build/libHSrts.a(AutoApply.o):stg_ap_l_info: error: undefined reference to 'stg_BCO_entry'<o:p></o:p></span></p>
<p class="Code" style="margin-left:0cm"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> … etc…<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">But I have done nothing in the RTS!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If I try ‘nm’ I get<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">bash$ nm rts/dist/build/libHSrts.a | grep stg_ap_p_fast<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US"> U stg_ap_p_fast<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US"> U stg_ap_p_fast<o:p></o:p></span></p>
<p class="Code"><span lang="EN-US">0000000000003f58 T stg_ap_p_fast<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So somehow the same symbol is defined and unresolved. Really strange.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can you help? Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Simon<o:p></o:p></span></p>
</div>
</body>
</html>