Skip to content

Install is failing on a Debian sid on failed to read /root/rust/src/tools/rust-installer/Cargo.toml #42030

@sylvestre

Description

@sylvestre

Trying to build following the documentation is failing on a Debian sid (aka unstable) in a chroot:

# ./x.py build && sudo ./x.py dist --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`
downloading https://static.rust-lang.org/dist/2017-04-25/rust-std-beta-x86_64-unknown-linux-gnu.tar.gz
######################################################################## 100.0%
extracting /root/rust/build/cache/2017-04-25/rust-std-beta-x86_64-unknown-linux-gnu.tar.gz
downloading https://static.rust-lang.org/dist/2017-04-25/rustc-beta-x86_64-unknown-linux-gnu.tar.gz
######################################################################## 100.0%
extracting /root/rust/build/cache/2017-04-25/rustc-beta-x86_64-unknown-linux-gnu.tar.gz
downloading https://static.rust-lang.org/dist/2017-04-25/cargo-beta-x86_64-unknown-linux-gnu.tar.gz
######################################################################## 100.0%
extracting /root/rust/build/cache/2017-04-25/cargo-beta-x86_64-unknown-linux-gnu.tar.gz
error: failed to read `/root/rust/src/tools/rust-installer/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
Build completed unsuccessfully in 0:00:56

Then, running

 git submodule update --init
./x.py build && sudo ./x.py dist --install

gives:

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 `gcc`

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: /root/rust/src/vendor

To learn more, run the command again with --verbose.
Build completed unsuccessfully in 0:00:00

/root/rust/src/vendor doesn't exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions