-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Compiler selects invalid --lldb-python
path
#69869
Comments
I seem to recall having problems with these tests, even before #68863. Here's an overview of how I understand the problem: The lldb that ships with Xcode 11 uses python3. Since 10.14 doesn't include python3, AFAIK it is not possible to use xcode's Python lldb module on Mojave (using an external interpreter). Using homebrew doesn't work either, because it is not compatible with the _lldb.so module. EDIT: Oh, and there is a Python2 version of the lldb module at One option is to build lldb yourself by editing Another option is to use an older version of xcode (and also change the bootstrap hard-coded python3 path). I think those options are kinda terrible. My preference would be to disable the debuginfo tests on macos if the system version is older than 10.15. I don't know how feasible that is. @pietroalbini Does that sound like a reasonable summary and possible solution? It's also not clear whether or not python3 will be removed in 10.16. The release notes just say python will be removed in "Future versions of macOS", but don't say which future versions. If |
That explaination sounds plausible based on my limited understanding of the situation (not having any Apple system made writing and debugging that PR so much harder). cc @Mark-Simulacrum on what the best approach for bootstrap would be |
I'm pretty much down for any solution in bootstrap, detecting the macOS version sounds finicky but also reasonable. I am unlikely to invest time into fixing this myself, though I would be happy to review a PR. |
I'm also encountering this bug. Building rustc fails on Mojave 10.14 with the same error message. Just to get unstuck with developing rustc, is there a quick option to disable the affected tests? |
@golddranks What are you working on? I think most people do not run all tests, but instead run the specific test-suites that are relevant to what you are doing. I think you can also pass the |
@ehuss On stdlib. |
For my mac (macOS Mojave), the
--lldb-python
path is being set to/usr/bin/python3
, which doesn't exist.Furthermore,
/usr/bin
is immutable, so I cannot simply symlink to/usr/local/bin/python3
, the result ofwhich python3
.This is causing the
debuginfo
test suite to fail.Code
Meta
rust version:
Top of
master
, specifically:3dbade6
Error output
Backtrace
The text was updated successfully, but these errors were encountered: