www.digitalmars.com         C & C++   DMDScript  

D.gnu - GDC mainline (20221219) fails to build on OpenBSD (patch included)

reply Brian Callahan <bcallah openbsd.org> writes:
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;
Dec 19 2022
parent reply Iain Buclaw <ibuclaw gdcproject.org> writes:
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)
Dec 19 2022
parent Brian Callahan <bcallah openbsd.org> writes:
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
Dec 20 2022