Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uplldb fails to run properly on macOS #54126
Comments
tromey
self-assigned this
Sep 11, 2018
This comment has been minimized.
This comment has been minimized.
|
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. |
michaelwoerister
referenced this issue
Sep 12, 2018
Merged
[experimental]: Build LLVM with ThinLTO enabled (2nd attempt) #53245
retep998
added
the
O-macos
label
Sep 13, 2018
This comment has been minimized.
This comment has been minimized.
|
If I run the rustup-installed lldb without going through |
This comment has been minimized.
This comment has been minimized.
|
Aha, invoking the |
This comment has been minimized.
This comment has been minimized.
|
Just a simple Python file with |
This comment has been minimized.
This comment has been minimized.
|
The bug is that rustup does not preserve symlinks when installing lldb. |
This comment has been minimized.
This comment has been minimized.
|
This is strange, though, because rustup and tar seem to have symlink logic. |
This comment has been minimized.
This comment has been minimized.
|
The package manifest contains |
This comment has been minimized.
This comment has been minimized.
|
I think the answer ends up being that rustup-utils/src/utils.rs should understand how to copy a symlink. |
This comment has been minimized.
This comment has been minimized.
|
I have a rustup patch I will test out tomorrow. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Do you think this can be solved without going back to linking to LLVM statically? |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
OK, great! So we don't need to revert that. |
This comment has been minimized.
This comment has been minimized.
|
I wonder if this would fix it. |
This comment has been minimized.
This comment has been minimized.
|
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.rs#1504. But maybe landing that lldb patch would be faster. |
This comment has been minimized.
This comment has been minimized.
|
This is fixed by rustup 1.14.0, which shipped yesterday. |
tromey commentedSep 11, 2018
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.