-
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
using extern crate syntax
produces a binary dynamically linked to libstd.so that fails with "cannot open shared object file" when executed
#32996
Comments
Just in case, the output of
|
Ah yeah this is expected behavior. There's a nice big comment in
The logic changes subtly if libsyntax.rlib is available (as the compiler prefers static linking), but we don't ship rlibs of the host libraries as it'd just inflate our distribution size. Closing as intended, however, but I don't mind answering any questions about this as well! |
Thanks for the explanation. I have two further questions:
? when
? But I think the answer is that
|
Is that directory in
Yeah the compiler only looks for libraries in |
No, that's why it wasn't working. |
Yeah this is rarely run into precisely b/c we statically link everything. I suspect rustup doesn't want to do too much here because it's so "non standard", but it certainly could! |
STR
I was sort of expecting the compilation to fail because there is no
libsyntax.rlib
in~/.multirust
andrustc
produces binaries statically linked to all the Rust bits. But perhapssyntax
is special because of syntax extensions?Meta
cc @alexcrichton
The text was updated successfully, but these errors were encountered: