-
Notifications
You must be signed in to change notification settings - Fork 955
rustup run nightly cargo install
generates unexecutable executables
#350
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
Comments
|
That said I would expect |
Curiously, on another system setting How can I force static linking? I'd prefer it in general (I'd also like to build |
@jsgf Right now (and for the foreseeable future) rustc plugins require dynamic linking and rustc is always compiled with dynamic linking. It would be desirable to have static linked rustc's (for example for building against musl), but it would preclude use of plugins. |
I have a vague notion of how to support this scenario. And something like this will need to be solved as we expand the rust platform to include more toolchain-specific tools by default. Just like the |
I have a crate (xdrgen) which uses libsyntax, and so depends on nightly.
If I try to install it with:
rustup run nightly cargo install xdrgen
it generates an executable, but it can't find the libsyntax .so file:
Adding
RUSTFLAGS=-C rpath
doesn't help; theDT_RUNPATH
is added, but the paths don't match the executable's final home.I'm not sure if rustup should be explicitly adding an rpath, or maybe cargo should do it internally. Either way, "cargo install" should always install a working executable that doesn't need LD_LIBRARY_PATH to be set. Or perhaps it should always be static?
The text was updated successfully, but these errors were encountered: