Skip to content
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

error: llvm-tools component is missing or empty #7

Closed
pravic opened this issue Jun 29, 2018 · 4 comments
Closed

error: llvm-tools component is missing or empty #7

pravic opened this issue Jun 29, 2018 · 4 comments

Comments

@pravic
Copy link
Contributor

pravic commented Jun 29, 2018

$ rustup component add llvm-tools --toolchain nightly
$ cargo +nightly install cargo-binutils

$ cargo +nightly size
error: llvm-tools component is missing or empty. Install it with rustup component add llvm-tools

$ rustup component list --toolchain nightly | grep tools
llvm-tools-x86_64-pc-windows-msvc (installed)

Version:

$ rustc +nightly -vV
rustc 1.28.0-nightly (cd494c1f0 2018-06-27)
binary: rustc
commit-hash: cd494c1f0915da00a63c03454a96d504afe764ff
commit-date: 2018-06-27
host: x86_64-pc-windows-msvc
release: 1.28.0-nightly
LLVM version: 6.0

@japaric
Copy link
Member

japaric commented Jun 29, 2018

@pravic can you check the directory $(rustc --print sysroot)/bin and see if llvm-size is in there?

My guess is that it is there but it's named llvm-size.exe. We'll need to update the search algorithm to account for this.

@pravic
Copy link
Contributor Author

pravic commented Jun 30, 2018

Yes, those tools are there and the rustup run nightly llvm-size does work.

@japaric
Copy link
Member

japaric commented Jun 30, 2018

rustup run nightly llvm-size does work.

That's not intended to work and will stop working when rust-lang/rust#51922 lands.

@pravic Could you try out #8?

@japaric
Copy link
Member

japaric commented Jul 15, 2018

Fixed in #8

@japaric japaric closed this as completed Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants