Skip to content

Does not work with ~/.cargo/bin not being the most important path #475

@nagisa

Description

@nagisa

It manifests itself in two ways:

$ ~/.cargo/bin/rustup run nightly cargo build --release
   Compiling permutohedron v0.2.1
   Compiling itertools v0.4.13
   Compiling fixedbitset v0.1.0
error: the crate `std` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `core` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `collections` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `rustc_unicode` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `alloc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `rand` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `libc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `alloc_jemalloc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `std` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `core` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `collections` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `rustc_unicode` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `alloc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `rand` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `libc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `alloc_jemalloc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: aborting due to 8 previous errors
error: the crate `std` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `core` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `collections` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `rustc_unicode` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `alloc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `rand` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `libc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
error: the crate `alloc_jemalloc` has been compiled with rustc 1.10.0-nightly (d91f8ab0f 2016-05-07), which is incompatible with this version of rustc [E0514]
help: consider removing the compiled binaries and recompiling with your current version of rustc
Build failed, waiting for other jobs to finish...
error: aborting due to 8 previous errors
error: aborting due to 8 previous errors
error: Could not compile `permutohedron`.

To learn more, run the command again with --verbose.

when there’s a local copy of rustc in /usr/

and

$ ~/.cargo/bin/rustup run nightly rustc --version
rustc 1.10.0-nightly (5ebe41835 2016-05-15)                 
$ ~/.cargo/bin/rustup run nightly cargo --version
error: Could not execute process `rustc -vV` (never executed)

Caused by:
  No such file or directory (os error 2)

when the local copy is removed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions