<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20911">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, 
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, 
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;"><div>Hi Thomas, </div><div><br></div><div>Thanks for the help! </div><div><br></div><div>I have removed the call to bindist and I was indeed missing a similar line in the main GHC.mk</div><div><br></div><div>Unfortunately I still get the same error:</div><div><br></div><div>  HC [stage 2] driver/ghc-split/dist/build/tmp/ghc-split.exe<br>/bin/sh: inplace/bin/ghc-stage2.exe: No such file or directory<br>driver/ghc-split/ghc.mk:21: recipe for target 'driver/ghc-split/dist/build/tmp/ghc-split.exe' failed<br>make[1]: *** [driver/ghc-split/dist/build/tmp/ghc-split.exe] Error 127</div><div><br></div><div>Though not quite sure why it’s looking in inplace/bin..  </div><div><br></div><div>I was indeed following that page, but haven't been able to consult the wiki today as Trac has been throwing an error all day. </div><div>The line I added was:</div><div><br>driver/ghc-split/dist/package-data.mk: compiler/stage2/package-data.mk</div><div><br></div><div data-signatureblock="true"><div>Any ideas?</div><div><br></div><div>Regards,</div><div>Tamar</div><div><br></div></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style='line-height: 15pt; letter-spacing: 0.02em; font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;'><b>From:</b> <a href="mailto:thomasmiedema@gmail.com" target="_parent">Thomas Miedema</a><br><b>Sent:</b> ‎Sunday‎, ‎July‎ ‎19‎, ‎2015 ‎17‎:‎52<br><b>To:</b> <a href="mailto:lonetiger@gmail.com" target="_parent">Tamar Christina</a><br><b>Cc:</b> <a href="mailto:ghc-devs@haskell.org" target="_parent">GHC</a></font></div></div><div><br></div><div dir=""><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div dir="ltr"><div style='font-family: Calibri,"Segoe UI",Meiryo,"Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic",sans-serif; font-size: 12pt;' dir="ltr"><div><span style="font-size: 12pt;">In my </span><a style="font-size: 12pt;" href="http://ghc.mk" target="_parent">ghc.mk</a><span style="font-size: 12pt;"> I have declared:</span><br></div><div><br></div><div>$(eval $(call build-prog,driver/ghc-split,dist,0))<br>$(eval $(call bindist,driver/ghc-split,<a href="http://ghc.mk" target="_parent">ghc.mk</a>))</div></div></div></blockquote><div><br></div><div>That second line isn't needed. I think you are trying to follow <a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Modifying#Addingaprogram" target="_parent">https://ghc.haskell.org/trac/ghc/wiki/Building/Modifying#Addingaprogram</a>, but that information is outdated. Take a look at some <a href="http://ghc.mk" target="_parent">ghc.mk</a> files in the utils directory, for example `utils/hpc/<a href="http://ghc.mk" target="_parent">ghc.mk</a>`.</div><div><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div dir="ltr"><div style='font-family: Calibri,"Segoe UI",Meiryo,"Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic",sans-serif; font-size: 12pt;' dir="ltr"><div>Now it's perfectly fine to build this at stage 1 or 2</div></div></div></blockquote><div><br></div><div>Use stage1 to build it, or stage2 if you need access to the ghc api.</div><div><br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div dir="ltr"><div style='font-family: Calibri,"Segoe UI",Meiryo,"Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic",sans-serif; font-size: 12pt;' dir="ltr"><div>, but when I change it to either of those building fails telling me that<br>ghc-stage1 or ghc-stage2 cannot be found...</div></div></div></blockquote><div><br></div><div>You are probably missing an entry like the following in the toplevel <a href="http://ghc.mk" target="_parent">ghc.mk</a>:<br></div><div><br></div><div>utils/hpc/dist-install/<a href="http://package-data.mk" target="_parent">package-data.mk</a>: compiler/stage2/<a href="http://package-data.mk" target="_parent">package-data.mk</a></div></div></div></div>
</div></div>
</body>
</html>