-
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
rustc-dev does not contain enough to link against rustc libraries #75247
Comments
This is a duplicate of #72564 which was closed as "expected breakage". IMO it makes sense to keep this open as there's clearly a bug here -- most of Maybe it would make sense to move that library to |
The problem is that (AFAIK) we can't duplicate the library without preventing installation of both. Currently llvm-tools-preview is much smaller than rustc-dev, and more likely for end users to install. I see a couple of options:
I am open to suggestions on other ways of fixing this or thoughts on which option is best. Cc @kinnison as this is related to rustup |
Adding component interdependencies will be very difficult at this time. Not impossible; but if we want to do it we'll need to organise quite a bit. How large is this particular LLVM file? If it's not more than a few megabytes (i.e. less than 10) it may make sense to move it to a more core component such as rustc for minimum pain right now. However if it's large then that is less good. Another option is to have it present in two names, one used by We could select a stop-gap measure until we can define and implement inter-component dependencies in the manifests, however if this is the only use-case for dependencies then it's debateable if we should bother. If you want me to start defining component dependency support, let me know and I can give it a go. |
The current solution of installing But I think this is still worth tracking, i.e., I disagree with the old issue being closed. Hence me opening a new one. |
In 2020-08-08 nightly-x86_64-unknown-linux-gnu, The rest of |
The LLVM library in question is 85 MB, but it's also duplicated with an identical file in the lib/ directory. tarball size likely wouldn't be affected by putting it in the rustc component (which has the
|
Component dependencies is not that hard, yes we'll need to put it in the channel data, but I've written dependency interpreters more times than I care to think about now. Lets put a heuristic in now to unbreak this and work on declarative dependencies in channel data for the long term. |
Ever since #72000, it is not sufficient to install
rustc-dev
to obtain a toolchain where one can link against private rustc libraries (for tools like Miri or Clippy). One has to also installllvm-dev
. This subverts the purpose ofrustc-dev
; from what I can see, that package on its own is basically useless now.The text was updated successfully, but these errors were encountered: