Opened 8 days ago
Last modified 7 days ago
#71207 closed defect
libomp: incorrect LC_RPATH referenced in libxgboost.dylib — at Initial Version
Reported by: | Ubiquitous | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | libomp, libxgboost | Cc: | |
Port: | libomp |
Description
Upon installing libomp I noticed that there was an error related to not finding 'libxgboost.dylib'. Apparently 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 can be fixed with:
% sudo install_name_tool -rpath /opt/homebrew/opt/libomp/lib /opt/local/lib/libomp /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/xgboost/lib/libxgboost.dylib
Now the rpath is correct:
% 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 40 path /opt/local/lib/libomp (offset 12) ...
This should probably fixed in the port as to avoid frustrations for anyone installing libomp.
Note: See
TracTickets for help on using
tickets.