I followed the instructions in the rustc-perf/collector readme and am getting these errors when it invokes rustc:
error: couldn't load codegen backend ".../rust-bench1/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so": "librustc_codegen_ssa-0282cbda462baeb6.so: cannot open shared object file: No such file or directory"
(I also get errors like this when trying to invoke the
rustc binary directly)
any advice for fixing this? I tried setting
LD_LIBRARY_PATH to a dir that contains the librustc_codegen_ssa so file, but for some reason this doesn't seem to work with the perf collector
@tmandry How did you build rustc?
x.py build src/librustc_codegen_llvm should be enough to fix that, I think
@simulacrum ah perfect, thanks
I built it using
src/libstd at first
If not then ping me and I can try and help more
then I did
dist and found that that works, but seems a little unnecessary :)
x.py build without any stage arguments should always be with src/librustc_codegen_llvm (we copy stage 1 anyway, so you're not really saving time by doing
x.py build src/libstd in stage 2
I was never sure what that did
er, I was building with
Yeah, that's equivalent to not saying anything
rustlib is the directory that crates rustc builds link against (e.g. std, core, etc.) so you need it to be able to run things
it also happens to -- somewhat confusingly -- include the codegen-backends dir which rustc links against
this is mostly for distro reasons IIRC
okay, makes sense, sort of :) I'll use that from now on, thanks!
@tmandry fwiw you probably want a --keep-stage 0 on that after you rebuild once post-rebase (or bootstrap compiler change, etc.)