Building DMD on OpenBSD

Ryan ryan at boggshome.net
Fri Dec 28 21:52:30 UTC 2018


On Friday, 28 December 2018 at 16:37:14 UTC, Thomas Mader wrote:
> On Friday, 28 December 2018 at 12:02:48 UTC, Iain Buclaw wrote:
>> If you're using 2.068 as a bootstrap, you'll have to make two 
>> jumps in order to get to the latest release, 2.068 -> 2.076 -> 
>> 2.084.  You can then keep 2.076 around as the baseline for 
>> building latter versions, which should be remain true for the 
>> next year or so before the next minimum version bump.

ugh, I can see that sort of setup becoming cumbersome to maintain 
overtime in the OpenBSD ports world.  Maybe using 2.068 as the 
bootstrapper isn't the best approach after all.
>
> I use ldc 0.17.6 to bootstrap directly to the latest ldc 
> version.
> I haven't tried it myself but it might be possible to bootstrap 
> dmd directly from ldc 0.17.6.

I looked around a bit more and I found some initial work porting 
ldc to OpenBSD.  It's old and doesn't look like it has been 
touched in a while but it is a start.  There are some patches in 
there as well.  They may need some updating but it's good to know 
what is needed.

Using LDC as the bootstrapper may be best approach after all, if 
it can bootstrap dmd.  If so, we could potentially use LDC 0.17.6 
not only to boot strap dmd but the main version of LDC as well.  
Thus killing two birds with one stone.  Unless there are other 
thoughts or considerations, I think I will try the ldc bootstrap 
route.






More information about the Digitalmars-d mailing list