Building LDC v1.42.0 on ARM64 OpenBSD
Brian Callahan
bcallah at openbsd.org
Fri May 8 21:23:15 UTC 2026
On Thursday, 7 May 2026 at 20:12:19 UTC, RubyTheRoobster wrote:
> I wanted to use dub, but because there is no dub package for
> arm64 OpenBSD
> (only for x64), I needed to build dub from source. After
> installing gdc and getting gdmd
> to run on the system, I tried to build dub, only for gdc to
> keep mysteriously
> crashing at one specific point. So I decided to try building
> dub using LDC.
> But again, there is no ldc package for arm64 OpenBSD, so I had
> to build it from
> source. I downloaded the git, checked out v1.42.0, and followed
> the intructions
> in the wiki page linked to by the README. The result was cmake
> giving me an error message:
> ```
> CMake Error at runtime/CMakeLists.txt:480 (add_custom_command)
> add_custom_command Wrong syntax. A TARGET or OUTPUT must be
> specified.
> ```
>
> Is there any way to fix this, or are dlang build systems simply
> not arm64-friendly?
Try using gdmd to build ldc2 with gdc:
https://github.com/D-Programming-GDC/gdmd/blob/master/dmd-script
I don't have any arm64 devices running OpenBSD at the moment, but
I don't foresee any significant issues.
~Brian
More information about the digitalmars-d-ldc
mailing list