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?
I was building Rust (branch master) from source.
./configureandmakecompleted without any problems, howeversudo make installimmediately fails with the following problem: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 anysrc/vendorfolder and this kind of error is more likely on Rust projects using cargo.toml.For reference, my build env:
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?