Stream: t-compiler

Topic: Could not document alloc


detrumi (Dec 25 2018 at 09:35, on Zulip):

Hi! So I'm trying to run ./x.py doc --stage 1, and I'm getting this error:

error: couldn't load codegen backend "$path/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so": "librustc_codegen_ssa-aff88005442ed60f.so: cannot open shared object file: No such file or directory"
detrumi (Dec 25 2018 at 09:36, on Zulip):

Building stage 1 works fine, and AFAIK you should be able to get docs in stage 1, right?

nagisa (Dec 25 2018 at 10:44, on Zulip):

This seems more like a x.py issue rather than a rustc/rustdoc one. I believe that behind the scenes x.py sets the appropriate $LD_LIBRARY_PATH (which explains system where to look for dynamic libraries) and it might be neglecting to do so for rustdoc?

detrumi (Dec 25 2018 at 12:28, on Zulip):

Ah. Hmm, building stage 2 fixed the problem at least

nagisa (Dec 25 2018 at 12:51, on Zulip):

Quite possibly a dependency graph issue

Last update: Nov 22 2019 at 05:00UTC