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

Build with --llvm-root=$DIR fails when Rust is already installed into $DIR #13421

Closed
omasanori opened this issue Apr 9, 2014 · 1 comment
Closed

Comments

@omasanori
Copy link
Contributor

I tried ./configure --llvm-root=/usr && make but it fails to build libstd. The error message is:

/home/omasanori/work/rust/src/libstd/lib.rs:74:1: 74:19 error: multiple dylib candidates for `libc` found
/home/omasanori/work/rust/src/libstd/lib.rs:74 extern crate libc;
                                               ^~~~~~~~~~~~~~~~~~
/home/omasanori/work/rust/src/libstd/lib.rs:74:1: 74:19 note: candidate #1: /usr/lib64/liblibc-3574b280-0.11-pre.so
/home/omasanori/work/rust/src/libstd/lib.rs:74 extern crate libc;
                                               ^~~~~~~~~~~~~~~~~~
/home/omasanori/work/rust/src/libstd/lib.rs:74:1: 74:19 note: candidate #2: /home/omasanori/work/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-3574b280-0.11-pre.so
/home/omasanori/work/rust/src/libstd/lib.rs:74 extern crate libc;
                                               ^~~~~~~~~~~~~~~~~~
error: aborting due to previous error
@omasanori
Copy link
Contributor Author

I've forgotten when it was fixed, but this error has disappeared. Can we close it?

bors added a commit to rust-lang-ci/rust that referenced this issue Oct 18, 2022
Update guide.md to reflect support for proc-macros
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 24, 2024
Initial impl of `unnecessary_first_then_check`

Fixes rust-lang#11212

Checks for `{slice/vec/Box<[]>}.first().is_some()` and suggests replacing the unnecessary `Option`-construct with a direct `{slice/...}.is_empty()`. Other lints guide constructs like `if let Some(_) = v.get(0)` into this, which end up as `!v.is_empty()`.

changelog: [`unnecessary_first_then_check`]: Initial implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants