Commit 4f60019
authored
### Rationale for this change
The nightly job [Verify release candidate on macOS](https://github.com/ursacomputing/crossbow/actions/runs/27960474749/job/82740300712#step:3:1689) intermittently aborts the C++ build with `Library not loaded: @ rpath/libLLVM.22.1.dylib`).
Conda's LLVM tools resolve `libLLVM` via `@ loader_path/../lib` and can point at the package cache which has no `libLLVM`. The conda env lib dir is not on the loader path.
The same @ rpath miss seen with three different conda libraries (libLLVM, libprotoc, libabsl) through four binaries (llvm-link and llvm-ranlib, grpc_cpp_plugin, protoc) and may affect any shared library on osx - conda-forge/cmake-feedstock#230.
### What changes are included in this PR?
Add `$CONDA_PREFIX/lib` to `DYLD_FALLBACK_LIBRARY_PATH` for the step `cmake --build`.
(Fallback is searched last, so it resolves the `@ rpath` miss without overriding system libraries.)
Also drop unneeded empty element from DYLD_LIBRARY_PATH/LD_LIBRARY_PATH assignment (trailing `:` when the variable was unset).
### Are these changes tested?
Tested by nightly jobs verify-rc-source-*-macos-conda-* : [cpp](https://github.com/ursacomputing/crossbow/actions/runs/28116539944/job/83257363676#step:3:919), [integration](https://github.com/ursacomputing/crossbow/actions/runs/28116540139/job/83257364464#step:3:958) and [python](https://github.com/ursacomputing/crossbow/actions/runs/28116539626/job/83257362478#step:3:919) tasks pass.
### Are there any user-facing changes?
No.
* GitHub Issue: #50242
Authored-by: Tadeja Kadunc <tadeja.kadunc@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent 9e47fbb commit 4f60019
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
523 | 531 | | |
524 | 532 | | |
525 | 533 | | |
| |||
779 | 787 | | |
780 | 788 | | |
781 | 789 | | |
782 | | - | |
| 790 | + | |
783 | 791 | | |
784 | 792 | | |
785 | | - | |
| 793 | + | |
786 | 794 | | |
787 | 795 | | |
788 | 796 | | |
| |||
0 commit comments