-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lldb fails to run properly on macOS #54126
Comments
Can't reproduce with a local macOS build either. I'm still investigating. I wonder if it's possible to build clang and lldb out-of-tree as is done for lld. |
If I run the rustup-installed lldb without going through |
Aha, invoking the |
Just a simple Python file with |
The bug is that rustup does not preserve symlinks when installing lldb. |
This is strange, though, because rustup and tar seem to have symlink logic. |
The package manifest contains |
I think the answer ends up being that rustup-utils/src/utils.rs should understand how to copy a symlink. |
I have a rustup patch I will test out tomorrow. |
Do you think this can be solved without going back to linking to LLVM statically? |
Yes, see the PR -- once rustup can handle symlinks it should work. I'm waiting for a new rustup release; then I'll test it again; and then if there aren't any more failures I'll write an announcement. |
OK, great! So we don't need to revert that. |
I wonder if this would fix it. |
Thanks, that does seem promising. I've been waiting for a new rustup release, though, since I was able to fix it locally using rust-lang/rustup#1504. But maybe landing that lldb patch would be faster. |
This is fixed by rustup 1.14.0, which shipped yesterday. |
I installed the rust-enabled lldb from rustup and tried to run it. It crashes with the mysterious:
This seems to be a known LLVM bug: https://bugs.llvm.org/show_bug.cgi?id=22952. See also https://bugs.llvm.org/show_bug.cgi?id=30587. This is fallout from the switch to a dynamic LLVM, #53245.
I can't reproduce in my Linux build; not sure what is different there.
I'm looking into workarounds. One option might be to hack our clang and lldb builds so that all libraries are marked
DISABLE_LLVM_LINK_LLVM_DYLIB
.The text was updated successfully, but these errors were encountered: