Skip to content

Bad LC_ID_DYLIB in libpython3.11.dylib? #2225

Answered by nicholasjng
rao94583 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! Not sure if you're still stuck on this, but I sent a patch that got merged back in August to reset the LC_ID_DYLIB field using install_name_tool in #2089. (NB: Since install_name_tool is part of the Mac toolchain, this will not work when cross-compiling for MacOS on non-Macs, which I'm not even sure is possible.)

This patch turned out to be buggy, since it just replaced the absolute path you are seeing with the absolute path to libpython3.X.dylib on the build host. As you mention, setting it to @rpath/libpython3.X.dylib is the right fix, which got merged in #2256.

I don't think that has made it into a release yet, but using rules_python from main should fix the issue.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rao94583
Comment options

Answer selected by rao94583
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants