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

Activity

added
T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
C-bugCategory: This is a bug.
on Mar 6, 2018
added 2 commits that reference this issue on Jul 11, 2019

Auto merge of #62549 - ehuss:update-cargo-vendor, r=alexcrichton

Auto merge of #62549 - ehuss:update-cargo-vendor, r=alexcrichton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @pietroalbini@UncP

        Issue actions

          can not install local rustc · Issue #48771 · rust-lang/rust