Thread overview
GDC mainline (20221219) fails to build on OpenBSD (patch included)
Dec 19, 2022
Brian Callahan
Dec 20, 2022
Iain Buclaw
Dec 20, 2022
Brian Callahan
December 19, 2022
Hi Iain --

GDC mainline stopped building on OpenBSD recently. Below is the diff to fix things.

Thanks.

~Brian

diff --git a/libphobos/libdruntime/core/demangle.d b/libphobos/libdruntime/core/demangle.d
index 869ade64821..30e38c76479 100644
--- a/libphobos/libdruntime/core/demangle.d
+++ b/libphobos/libdruntime/core/demangle.d
@@ -2929,6 +2929,7 @@ CXX_DEMANGLER getCXXDemangler() nothrow @trusted
         version (FreeBSD) import core.sys.freebsd.dlfcn : RTLD_DEFAULT;
         version (linux) import core.sys.linux.dlfcn : RTLD_DEFAULT;
         version (NetBSD) import core.sys.netbsd.dlfcn : RTLD_DEFAULT;
+        version (OpenBSD) import core.sys.openbsd.dlfcn : RTLD_DEFAULT;
         version (OSX) import core.sys.darwin.dlfcn : RTLD_DEFAULT;
         version (Solaris) import core.sys.solaris.dlfcn : RTLD_DEFAULT;


December 20, 2022
On Monday, 19 December 2022 at 14:00:38 UTC, Brian Callahan wrote:
> Hi Iain --
>
> GDC mainline stopped building on OpenBSD recently. Below is the diff to fix things.
>
> [...]

Thanks, better to send that to upstr dmd though (I did say they should've used @weak)
December 20, 2022
On Tuesday, 20 December 2022 at 02:19:33 UTC, Iain Buclaw wrote:
> On Monday, 19 December 2022 at 14:00:38 UTC, Brian Callahan wrote:
>> Hi Iain --
>>
>> GDC mainline stopped building on OpenBSD recently. Below is the diff to fix things.
>>
>> [...]
>
> Thanks, better to send that to upstr dmd though (I did say they should've used @weak)

Ah. Thanks. I was on the dmd stable branch and didn't see it so I thought it was something GDC-specific.

~Brian