dmlc / dmlc/xgboost

libomp: xgboost incorrect LC_RPATH referenced in libxgboost.dylib

Open
#10,946 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
28.8k
Forks
8.9k
Avg merge
1d 12h
Merged PRs (30d)
54

Description

Upon installing xgboost (2.1.2) with pip on macOS (15.0.1) I noticed that there was an error related to not finding `libomp` once installed. In the installed `libxgboost.dylib` the rcpath references an absolute 'homebrew' directory (I don't use homebrew).

% otool -l /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/xgboost/lib/libxgboost.dylib
```
Load command 15
cmd LC_RPATH
cmdsize 48
path /opt/homebrew/opt/libomp/lib (offset 12)
```
It should likely be changed to use: `@rpath/libomp` unless you expect anyone who doesn't use homebrew to fix the hardcoded path anytime they install xgboost with pip.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.