Skip to content

Conversation

@kinke
Copy link
Member

@kinke kinke commented Apr 21, 2025

And the latest stable LDC release as first host compiler.

Fixes #4899 for good.

@kinke
Copy link
Member Author

kinke commented Apr 22, 2025

Okay, looks like we could re-enable the bootstrap stage on macOS - at the cost of disabling mimalloc and C++ LTO for the arm64 package (no costs for the x86_64 one). That setup survived 15 consecutive CI job runs on each arch, and in my previous attempts last time, I've only seen very few CI job runs which would NOT show at least one 'Pure virtual function called!' error (as they are sporadic, not deterministic).

The only real improvement (when mixing LLVM versions) from last time is that I haven't seen any sporadic compiler crashes (during unwinding) for driver/config_diag.d anymore (probably fixed by #4888).

@kinke kinke force-pushed the gha_macos_bootstrap branch 3 times, most recently from 1da89c5 to 10d201c Compare May 11, 2025 13:59
@kinke kinke force-pushed the gha_macos_bootstrap branch from 10d201c to 3387131 Compare May 11, 2025 19:25
@kinke kinke force-pushed the gha_macos_bootstrap branch from 9b998e9 to 0807c2f Compare May 11, 2025 19:57
@kinke
Copy link
Member Author

kinke commented May 11, 2025

Okay, a promising approach on arm64 is using Homebrew clang v19 for the final LDC build, instead of Apple clang - that enables C++ LTO (no more errors wrt. unsupported stack probe), and the mixed D & C++ LTO seems to work around the 'pure virtual function called' errors with mimalloc, as for x86_64. But I've only seen 2 3 consecutive green CI jobs so far, no stress-testing, so might still be lucky only.

kinke added 3 commits May 12, 2025 00:39
Expecting to hit the pure-virtual-func-called errors on x86_64 with
older Apple clang. But arm64 might work now - only prebuilt LLVM is
compiled with Apple clang, mimalloc and LDC with Homebrew clang
matching the LLVM version used for LDC.
@kinke kinke changed the title GHA macOS: Try enabling bootstrap stage again GHA macOS: Enable bootstrap stage again May 12, 2025
@kinke kinke marked this pull request as ready for review May 12, 2025 01:32
@kinke kinke merged commit a47fb2a into ldc-developers:master May 12, 2025
19 of 20 checks passed
@kinke kinke deleted the gha_macos_bootstrap branch May 12, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ldmd2 Segmentation fault: 11 for macOS 15.4 arm64

1 participant