Skip to content

make install on top of an already installed rust results in breakage #2877

Description

@jwise

After doing a make install (of an early rust-0.3.tar.gz) on top of an already installed Rust (from git a few days ago), I now get the following error while compiling things:

joshua@icfp:~$ cat > hello.rs
fn main(args: ~[str]) {
    io::println("hello world from '" + args[0] + "'!");
}
joshua@icfp:~$ rustc hello.rs
hello.rs:1:0: 1:0 error: multiple matching crates for `core`
hello.rs:1 fn main(args: ~[str]) {
           ^
note: candidates:
note: path: /usr/local/lib/rustc/i686-unknown-linux-gnu/lib/libcore-d27e4777a53c3e50-0.2.so
note: meta: #[link(name = "core",
       vers = "0.2",
       uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
       url = "https://github.com/mozilla/rust/tree/master/src/libcore")]
note: path: /usr/local/lib/rustc/i686-unknown-linux-gnu/lib/libcore-d27e4777a53c3e50-0.3.so
note: meta: #[link(name = "core",
       vers = "0.3",
       uuid = "c70c24a7-5551-4f73-8e37-380b11d80be8",
       url = "https://github.com/mozilla/rust/tree/master/src/libcore")]
error: aborting due to previous error

There should be logic to override with newer versions, or otherwise warn about this sort of thing.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions