Closed
Description
bootstrap.py --stage {1,2} --step doc-rustc
fails with:
'failed to copy `$PWD/build/x86_64-unknown-linux-gnu/stage1-test/x86_64-unknown-linux-gnu/doc/.stamp` to `$PWD/build/x86_64-unknown-linux-gnu/doc/.stamp`: No such file or directory (os error 2)', $RUST/src/bootstrap/build/util.rs:46
Note that there is no doc
directory in $PWD/build/x86_64-unknown-linux-gnu/
Creating that directory fixes this problem but leads to another problem:
'fs::remove_dir_all(&out_dir) failed with No such file or directory (os error 2)', $RUST/src/bootstrap/build/doc.rs:183
This is because there is no doc
directory in $PWD/build/x86_64-unknown-linux-gnu/stage1-rustc/x86_64-unknown-linux-gnu/
, which the tool tries to lstat
(checked with strace
).
Creating that directory fixes the problem.
Note that for stage 2, all directories starting at stage2-rustc
needed to be created.