<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 16, 2021 at 9:55 AM Curtis Hamilton <<a href="mailto:clhamilto@gmail.com">clhamilto@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 11, 2021 at 6:55 PM kinke via digitalmars-d-ldc <<a href="mailto:digitalmars-d-ldc@puremagic.com" target="_blank">digitalmars-d-ldc@puremagic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Saturday, 11 December 2021 at 05:15:33 UTC, Curtis Hamilton <br>
wrote:<br>
> Unfortunately I’ve not been successful in using LDC-0.17.6 or <br>
> ltsmaster to bootstrap and build a newer LDC release.<br>
><br>
> But I have managed to build LDC-1.23 using GDC as the host D <br>
> compiler.<br>
<br>
Yeah, gdc is the suggested bootstrap way. - So you got that LDC <br>
to successfully build druntime and Phobos? I wouldn't have <br>
thought you'd get that far ;) - there's a number of (old) <br>
reported PowerPC issues on GitHub.<br>
</blockquote></div></div></div><div>Yes, I’ve been successful in getting LDC to build using GDC as the host D.  In fact, the resulting build seems to be working well.  I did have to make a few changes to the code to get everything working.<div dir="auto"><br></div><div dir="auto">First, PowerPC64 uses elfv2 vice elfv1 on FreeBSD 13, so that needed to be changed in “driver/target machine.cop”.  I also had to update “druntime/src/core/sys/freebsd/config.d” for FreeBSD 13.  Most recent druntime has been updated.</div><div dir="auto"><br></div><div dir="auto">Lastly, I needed to apply the patch from @dbankov-vmware <div><a href="https://github.com/dbankov-vmware/ldc/tree/fix-for-3795" target="_blank">https://github.com/dbankov-vmware/ldc/tree/fix-for-3795</a></div> that allows LDC to build using static “phobos” which lets LDC to be independent of GDC.</div><div dir="auto"><br></div><div dir="auto">regards</div>
</div>
</blockquote></div></div>I hate autocorrection, the file should be “driver/targetmachine.cpp”….