Skip to content

Bootstrap tries to use stage0 Cargo with local Rust/Cargo in config.toml #49741

Closed

Description

@abonander

In config.toml (I'm on Windows):

[build]
cargo = "C:/Users/my_user/.cargo/bin/cargo"
rustc = "C:/Users/my_user/.cargo/bin/rustc"

Then python x.py build yields:

Updating only changed submodules
Submodules updated in 0.42 seconds
   Compiling unicode-xid v0.1.0
   Compiling winapi v0.3.4
   Compiling cfg-if v0.1.2
   Compiling serde v1.0.37
   Compiling libc v0.2.40
   Compiling fixedbitset v0.1.9
   Compiling cc v1.0.9
   Compiling num-traits v0.2.2
   Compiling dtoa v0.4.2
   Compiling ordermap v0.3.5
   Compiling itoa v0.4.1
   Compiling getopts v0.2.17
   Compiling lazy_static v0.2.11
   Compiling build_helper v0.1.0 (file:///C:/Users/cyber/Rust/rust/src/build_helper)
   Compiling proc-macro2 v0.3.1
   Compiling filetime v0.1.15
   Compiling num_cpus v1.8.0
   Compiling petgraph v0.4.12
   Compiling cmake v0.1.29
   Compiling quote v0.5.1
   Compiling serde_json v1.0.13
   Compiling toml v0.4.5
   Compiling syn v0.13.1
   Compiling time v0.1.39
   Compiling serde_derive_internals v0.23.0
   Compiling serde_derive v1.0.37
   Compiling bootstrap v0.0.0 (file:///C:/Users/cyber/Rust/rust/src/bootstrap)
    Finished dev [unoptimized] target(s) in 55.32 secs


failed to execute command: "C:\\Users\\my_user\\Rust\\rust\\build\\x86_64-pc-windows-msvc\\stage0/bin\\cargo.exe" "metadata" "--format-version" "1" "--manifest-path" "C:\\Users\\my_user\\Rust\\rust\\src/libstd\\Cargo.toml"
error: The system cannot find the file specified. (os error 2)


failed to run: C:\Users\my_user\Rust\rust\build\bootstrap\debug\bootstrap build
Build completed unsuccessfully in 0:00:58

Activity

  1. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    C-bugCategory: This is a bug.
    on Apr 7, 2018
  2. ishitatsuyuki commented on Apr 7, 2018

    @ishitatsuyuki
    Contributor

    @Mark-Simulacrum You seem to recently modified the bootstrap. Can this be #48913?

  3. ollie27 commented on Apr 7, 2018

    @ollie27
    Contributor

    #49759 should fix this

  4. added a commit that references this issue on Apr 8, 2018
    7327d9d
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

      Issue actions