-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.Category: This is a bug.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.P-mediumMedium priorityMedium priorityT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Description
I was building Rust (branch master) from source. ./configure
and make
completed without any problems, however sudo make install
immediately fails with the following problem:
sudo make install
info: looks like you are running this command under `sudo`
and so in order to preserve your $HOME this will now
use vendored sources by default. Note that if this
does not work you should run a normal build first
before running a command like `sudo make install`
error: failed to load source for a dependency on `toml`
Caused by:
Unable to update registry https://github.com/rust-lang/crates.io-index
Caused by:
failed to update replaced source `registry https://github.com/rust-lang/crates.io-index`
Caused by:
failed to read root of directory source: /mnt/shared/Checkout/rust/src/vendor
To learn more, run the command again with --verbose.
Makefile:71: recipe for target 'install' failed
make: *** [install] Error 101
The error: failed to load source for a dependency on 'toml'
line is complaining about seemingly rangom things, such as cmake, toml or getopts. However the last line (failed to read root of directory source: /mnt/shared/Checkout/rust/src/vendor
) is odd as it doesn't have any src/vendor
folder and this kind of error is more likely on Rust projects using cargo.toml.
For reference, my build env:
- os: Ubuntu 16.04
- clang 3.8
- python 2.7
- make 4.1
- cmake 3.5.1
- curl 7.47
- git 2.7
I also have already installed via the official rustup script.
So far no luck getting closer to what would cause this. Do you have any idea where to look for?
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.Category: This is a bug.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.P-mediumMedium priorityMedium priorityT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)