Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symlinked libraries after commit #12164 #12459

Closed
kuhsaft opened this Issue Feb 22, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@kuhsaft
Copy link

kuhsaft commented Feb 22, 2014

When compiling, rustc produces the error:

src/gen/main.rs:1:1: 1:1 error: multiple rlib candidates for `std` found
src/gen/main.rs:1 // Copyright 2013 The gl-rs developers. For a full listing of the authors,
                  ^
src/gen/main.rs:1:1: 1:1 note: candidate #1: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-966edb7e-0.10-pre.rlib
src/gen/main.rs:1 // Copyright 2013 The gl-rs developers. For a full listing of the authors,
                  ^
src/gen/main.rs:1:1: 1:1 note: candidate #2: /usr/lib/libstd-966edb7e-0.10-pre.rlib
src/gen/main.rs:1 // Copyright 2013 The gl-rs developers. For a full listing of the authors,
                  ^
src/gen/main.rs:1:1: 1:1 error: multiple dylib candidates for `std` found
src/gen/main.rs:1 // Copyright 2013 The gl-rs developers. For a full listing of the authors,
                  ^
src/gen/main.rs:1:1: 1:1 note: candidate #1: /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-966edb7e-0.10-pre.so
src/gen/main.rs:1 // Copyright 2013 The gl-rs developers. For a full listing of the authors,
                  ^
src/gen/main.rs:1:1: 1:1 note: candidate #2: /usr/lib/libstd-966edb7e-0.10-pre.so
src/gen/main.rs:1 // Copyright 2013 The gl-rs developers. For a full listing of the authors,
                  ^
error: aborting due to 2 previous errors

The libraries in /usr/lib/ are symlinked to the libraries in /usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/.

alexcrichton added a commit to alexcrichton/rust that referenced this issue Feb 22, 2014

rustc: Don't error on the rlib symlinks
This commit implements a layman's version of realpath() for metadata::loader to
use in order to not error on symlinks pointing to the same file.

Closes rust-lang#12459

bors added a commit that referenced this issue Feb 24, 2014

auto merge of #12474 : alexcrichton/rust/issue-12459, r=brson
This commit implements a layman's version of realpath() for metadata::loader to
use in order to not error on symlinks pointing to the same file.

Closes #12459

alexcrichton added a commit to alexcrichton/rust that referenced this issue Feb 25, 2014

rustc: Don't error on the rlib symlinks
This commit implements a layman's version of realpath() for metadata::loader to
use in order to not error on symlinks pointing to the same file.

Closes rust-lang#12459

jxs added a commit to jxs/rust that referenced this issue Apr 2, 2014

rustc: Don't error on the rlib symlinks
This commit implements a layman's version of realpath() for metadata::loader to
use in order to not error on symlinks pointing to the same file.

Closes rust-lang#12459

taralx added a commit to taralx/rust that referenced this issue Mar 16, 2016

Allow multiple libraries with the same hash.
Removes the need for canonicalization to prevent rust-lang#12459.

taralx added a commit to taralx/rust that referenced this issue Mar 17, 2016

Deduplicate libraries on hash instead of filename.
Removes the need for canonicalization to prevent rust-lang#12459.

bors added a commit that referenced this issue Apr 5, 2016

Auto merge of #32317 - taralx:master, r=alexcrichton
Deduplicate libraries on hash instead of filename.

Removes the need for canonicalization to prevent #12459.

(Now with passing tests!)

Canonicalization breaks certain environments where the libraries are symlinks to files that don't end in .rlib (e.g. /remote/cas/$HASH).

bors added a commit that referenced this issue Apr 7, 2016

Auto merge of #32317 - taralx:master, r=alexcrichton
Deduplicate libraries on hash instead of filename.

Removes the need for canonicalization to prevent #12459.

(Now with passing tests!)

Canonicalization breaks certain environments where the libraries are symlinks to files that don't end in .rlib (e.g. /remote/cas/$HASH).

bors added a commit that referenced this issue Apr 7, 2016

Auto merge of #32317 - taralx:master, r=alexcrichton
Deduplicate libraries on hash instead of filename.

Removes the need for canonicalization to prevent #12459.

(Now with passing tests!)

Canonicalization breaks certain environments where the libraries are symlinks to files that don't end in .rlib (e.g. /remote/cas/$HASH).

bors added a commit that referenced this issue Apr 15, 2016

Auto merge of #32317 - taralx:master, r=alexcrichton
Deduplicate libraries on hash instead of filename.

Removes the need for canonicalization to prevent #12459.

(Now with passing tests!)

Canonicalization breaks certain environments where the libraries are symlinks to files that don't end in .rlib (e.g. /remote/cas/$HASH).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.