[MacPorts] #71207: libomp: incorrect LC_RPATH referenced in libxgboost.dylib
MacPorts
noreply at macports.org
Wed Oct 30 18:47:07 UTC 2024
#71207: libomp: incorrect LC_RPATH referenced in libxgboost.dylib
-------------------------+--------------------------------
Reporter: Ubiquitous | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: libomp, libxgboost
Port: libomp |
-------------------------+--------------------------------
Description changed by Ubiquitous:
Old 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.
New description:
Upon installing libomp I noticed that there was an error related to not
finding 'libxgboost.dylib'. In the installed .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 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 be fixed in the port as to avoid frustrations for
anyone installing libomp.
--
--
Ticket URL: <https://trac.macports.org/ticket/71207#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list