Hi Rainer, > On 30 Jun 2025, at 12:58, Rainer Orth <r...@cebitec.uni-bielefeld.de> wrote: > > I recently noticed that libphobos isn't enable by default on 32-bit > Darwin with the target triples determined by config.guess. E.g. on a > Darwin 15 system the target triple is something like > i386-apple-darwin15.6.0 while configure.tgt only matches > i?86-*-darwin1[2-7]. > > This patch also allows such minor and micro versions. > > Tested on i386-apple-darwin15.6.0. > > I'd commit this as obvious, but there's more: on older Darwin versions > (9, 10, and 11), configure.tgt only sets LIBDRUNTIME_ONLY.
For Darwin9 the xcode linker is not new enough to work (it needs at least the Darwin10 linker). IIRC Darwin10 has some missing libc functionality that the wider libphobos (at least used to) uses. I’d imagine some of the fails you see on Darwin11 could be in a similar category. > However, > toplevel configure.ac doesn't take this into account when deciding > whether to enable libphobos or not. I wonder if it should, though.` I *think* that’s right - we want to enable libphobos but only the minimal druntime? > I > guess it could: on my Darwin 11 system, test results (with explicit > --enable-libphobos) aren't too bad: <snip> > > > Thoughts? Certainly, the configure.tgt fix is OK - that’s a slip-up. It’s also OK to enable libphobos for Darwin11 if that’s going to get reasonable testing, but I was not planning on trying to fix outstanding issues there. I would avoid Darwin10 for now, and Darwin <= 9 is a non-starter without some additional configury to detect a usable linker version. thanks Iain > > Rainer > > -- > ----------------------------------------------------------------------------- > Rainer Orth, Center for Biotechnology, Bielefeld University > > > 2025-06-30 Rainer Orth <r...@cebitec.uni-bielefeld.de> > > libphobos: > * configure.tgt <i?86-*-darwin1[2-7]>: Also consider minor > versions supported. > > # HG changeset patch > # Parent 6faf58fc5f919a561f8bb1df3fc2f1cfd3d67e5e > libphobos: Fully enable Darwin/i386 support > > diff --git a/libphobos/configure.tgt b/libphobos/configure.tgt > --- a/libphobos/configure.tgt > +++ b/libphobos/configure.tgt > @@ -64,7 +64,7 @@ case "${target}" in > *-*-darwin9* | *-*-darwin1[01]*) > LIBDRUNTIME_ONLY=yes > ;; > - x86_64-*-darwin1[2-9]* | x86_64-*-darwin2* | i?86-*-darwin1[2-7]) > + x86_64-*-darwin1[2-9]* | x86_64-*-darwin2* | i?86-*-darwin1[2-7]*) > LIBPHOBOS_SUPPORTED=yes > ;; > x86_64-*-freebsd* | i?86-*-freebsd*)