Skip to content

can not install local rustc #48771

Closed
Closed
@UncP

Description

@UncP

I want to build a local 2018-01-12 rustc. This is what I do:

git clone https://github.com/rust-lang/rust

git checkout 73ac5d6

./x.py build && sudo ./x.py install

However, it generate such errors after ./x.py build:

➜  rust git:(73ac5d6) ✗ sudo ./x.py 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`
Updating submodules
error: failed to load source for a dependency on `cc`

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: /home/xxx/uncp/rust/src/vendor

Caused by:
  No such file or directory (os error 2)
failed to run: /home/xxx/uncp/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo build --manifest-path /home/xxx/uncp/rust/src/bootstrap/Cargo.toml --frozen
Build completed unsuccessfully in 0:00:02

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions