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

Add a USE flag to use system-wide LLVM #19

Closed
omasanori opened this issue Apr 11, 2014 · 9 comments
Closed

Add a USE flag to use system-wide LLVM #19

omasanori opened this issue Apr 11, 2014 · 9 comments

Comments

@omasanori
Copy link
Contributor

Finally rust-lang/rust#4259 is fixed, so we'll be able to use upstream LLVM. 😃

However, we can't use sys-devel/llvm right now because:

Anyway, we need an issue to track the progress of that.

@cnd
Copy link
Contributor

cnd commented Apr 11, 2014

@omasanori that's cool news

@jauhien
Copy link
Contributor

jauhien commented Jul 31, 2014

See rust-lang/rust#14729

@jauhien
Copy link
Contributor

jauhien commented Aug 3, 2014

@omasanori, so it is possible that rust will need downstream patched llvm again? Is it possible to know now how probable is it? Because if it's quit probable there's no sense to deal with llvm unbundling now, until we are less or more sure that upstream llvm can be used for a near time.

@omasanori
Copy link
Contributor Author

Probably we can use upstream LLVM. To make sure whether we could do so, ask core dev or use Git to check diff.

@jauhien
Copy link
Contributor

jauhien commented Aug 9, 2014

One more problem with using system-wide LLVM, when it is used, this linking flag is added:

 -L "/usr/lib64" 

And if you have rust already installed you get this:

rustc: x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/libsync
/home/jauhien/work/rust/rust/src/libsync/lib.rs:37:1: 37:21 error: multiple dylib candidates for `rustrt` found
/home/jauhien/work/rust/rust/src/libsync/lib.rs:37 extern crate rustrt;
                                                   ^~~~~~~~~~~~~~~~~~~~
/home/jauhien/work/rust/rust/src/libsync/lib.rs:37:1: 37:21 note: candidate #1: /home/jauhien/work/rust/rust/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustrt-4e7c5e5c.so
/home/jauhien/work/rust/rust/src/libsync/lib.rs:37 extern crate rustrt;
                                                   ^~~~~~~~~~~~~~~~~~~~
/home/jauhien/work/rust/rust/src/libsync/lib.rs:37:1: 37:21 note: candidate #2: /usr/lib64/librustrt-4e7c5e5c.so
/home/jauhien/work/rust/rust/src/libsync/lib.rs:37 extern crate rustrt;
                                                   ^~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
make: *** [x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib/stamp.sync] Error 101

@omasanori
Copy link
Contributor Author

@jauhien maybe it is related to rust-lang/rust#13421

@jauhien
Copy link
Contributor

jauhien commented Aug 10, 2014

@omasanori, yes, exactly this. I see you pointed it before. Thanks.

@jauhien
Copy link
Contributor

jauhien commented Nov 9, 2014

Solved, I will import it to the tree in a week.

@jauhien jauhien closed this as completed Nov 9, 2014
@omasanori
Copy link
Contributor Author

Great work! I'll test it tonight. 👍

cnd pushed a commit that referenced this issue Oct 8, 2015
dev-utils/racer: Remove vim and emacs plugins installation.
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

3 participants