ldc 1.43.0: 70-compiler-rt.conf points to removed llvm 23.1.1 path after llvm upgrade to 23.1.2
Author: ecanutoCreated Sep 29, 2026Updated Sep 29, 2026
brew config AND brew doctor output OR brew gist-logs <formula> link
brew config
brew doctor
brew list --versions llvm ldc
grep -Rn "llvm" /opt/homebrew/Cellar/ldc/1.43.0/etc/ldc2.conf/70-compiler-rt.conf
ls /opt/homebrew/Cellar/llvm/23.1.2/lib/clang/23/lib/darwin
HOMEBREW_VERSION: 7.0.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 8e858db5584704dcd469b8e826228c0d5a5a94f6
Last commit: 2 days ago
Branch: stable
Core tap: N/A
Core cask tap: N/A
HOMEBREW_PREFIX: /opt/homebrew
Homebrew Ruby: 4.0.7 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.7/bin/ruby
CPU: deca-core 64-bit arm_donan
Clang: 21.0.0 build 2100
Git: 2.56.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 27.0.1-arm64
CLT: 27.0.0.0.1788430756
Xcode: 27.0
Metal Toolchain: N/A
Rosetta 2: false
Your system is ready to brew.
ldc 1.43.0
llvm 23.1.2
/opt/homebrew/Cellar/ldc/1.43.0/etc/ldc2.conf/70-compiler-rt.conf:4: "/opt/homebrew/Cellar/llvm/23.1.2/lib/clang/23/lib/darwin",
libclang_rt.asan_abi_osx.a libclang_rt.tsan_osx_dynamic.dylib
libclang_rt.asan_osx_dynamic.dylib libclang_rt.tysan_osx_dynamic.dylib
libclang_rt.cc_kext.a libclang_rt.ubsan_minimal_osx_dynamic.dylib
libclang_rt.fuzzer_interceptors_osx.a libclang_rt.ubsan_minimal_osx.a
libclang_rt.fuzzer_no_main_osx.a libclang_rt.ubsan_osx_dynamic.dylib
libclang_rt.fuzzer_osx.a libclang_rt.xray_osx.a
libclang_rt.lsan_osx_dynamic.dylib libclang_rt.xray-basic_osx.a
libclang_rt.osx.a libclang_rt.xray-dso_osx.a
libclang_rt.profile_osx.a libclang_rt.xray-fdr_osx.a
libclang_rt.rtsan_osx_dynamic.dylib libclang_rt.xray-profiling_osx.a
libclang_rt.stats_client_osx.a liborc_rt_osx.a
libclang_rt.stats_osx_dynamic.dylibVerification
- My
brew doctoroutput saysYour system is ready to brew.and am still able to reproduce my issue. - I ran
brew updateand am still able to reproduce my issue. - I have resolved all warnings from
brew doctorand that did not fix my problem. - I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.
- My issue is not about a failure to build a formula from source.
- I did not use AI/LLM to create this issue, or I disclosed the tool and model used; I will answer maintainer questions myself without AI/LLM.
What were you trying to do (and why)?
Description
After llvm was upgraded from 23.1.1 to 23.1.2, every link step done through ldc2 prints this warning:
ld: warning: search path '/opt/homebrew/Cellar/llvm/23.1.1/lib/clang/23/lib/darwin' not foundThe stale path is hardcoded in the installed ldc configuration:
$ grep -Rn "llvm" /opt/homebrew/Cellar/ldc/1.43.0/etc/ldc2.conf/70-compiler-rt.conf
/opt/homebrew/Cellar/ldc/1.43.0/etc/ldc2.conf/70-compiler-rt.conf:4: "/opt/homebrew/Cellar/llvm/23.1.1/lib/clang/23/lib/darwin",$ ls /opt/homebrew/Cellar/llvm
23.1.2The build itself succeeds and the resulting binaries work, so this is cosmetic. It still shows up on every link and makes real linker warnings harder to spot.
Likely cause
The ldc bottle records the versioned Cellar path of llvm at build time. A patch-level llvm bump doesn't trigger a rebuild of ldc, so the config keeps pointing at the old keg. I haven't verified this against the formula, so it's a hypothesis.
Possible fixes
- Revision bump of
ldcso the bottle is rebuilt against llvm 23.1.2. - Or write the stable
optpath (/opt/homebrew/opt/llvm/...) instead of the versioned Cellar path, so future patch bumps don't break it.
Workaround
sed -i '' 's#/opt/homebrew/Cellar/llvm/23.1.1/#/opt/homebrew/opt/llvm/#' \
/opt/homebrew/Cellar/ldc/1.43.0/etc/ldc2.conf/70-compiler-rt.confEnvironment
- macOS Golden Gate 27.0.1, Apple Silicon (M4)
- ldc 1.43.0, llvm 23.1.2
What happened (include all command output)?
ld: warning: search path '/opt/homebrew/Cellar/llvm/23.1.1/lib/clang/23/lib/darwin' not found
What did you expect to happen?
No warnings
Step-by-step reproduction instructions (by running brew commands)
1. Have `ldc` installed while `llvm` is at 23.1.1.
2. `brew upgrade llvm` (to 23.1.2).
3. Build any D project that links, e.g. `dub build [email protected] --compiler=ldc2 --build=release`.Source: Homebrew/homebrew-core