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 extern llvm fails #14729

Closed
jauhien opened this issue Jun 7, 2014 · 9 comments
Closed

Build with extern llvm fails #14729

jauhien opened this issue Jun 7, 2014 · 9 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

Comments

@jauhien
Copy link
Contributor

jauhien commented Jun 7, 2014

I have this issue:

I have the last llvm from the live ebuild on Gentoo installed (it means I have compiled the last version from llvm upstream git).

I try to compile rust using this llvm with commands

./configure --prefix=/usr --llvm-root=/usr --enable-clang
make

And I have this error:

jauhien@zcj rust % make
cfg: build triple x86_64-unknown-linux-gnu
cfg: host triples x86_64-unknown-linux-gnu
cfg: target triples x86_64-unknown-linux-gnu
cfg: enabling more debugging (CFG_ENABLE_DEBUG)
cfg: host for x86_64-unknown-linux-gnu is x86_64
cfg: os for x86_64-unknown-linux-gnu is unknown-linux-gnu
cfg: using CC=clang (CFG_CC)
cfg: using CXX=clang++ (CFG_CXX)
cfg: no pdflatex found, deferring to xelatex
cfg: no xelatex found, deferring to lualatex
cfg: no lualatex found, disabling LaTeX docs
cfg: no pandoc found, omitting PDF and EPUB docs
cfg: no llnextgen found, omitting grammar-verification
failed to run llconfig: args = `['/usr/bin/llvm-config', '--libs', '--system-libs', 'x86', 'arm', 'mips', 'ipo', 'bitreader', 'bitwriter', 'linker', 'asmparser', 'jit', 'mcjit', 'interpreter', 'instrumentation']`
llvm-config: unknown component name: arm

make: *** [/home/jauhien/work/rust/rust/src/librustc/lib/llvmdeps.rs] Error 1

What can be the reason for this? Is this something bad with rust or with my setup?

I'm trying to compile the version of rust from the commit 8e9e484

@alexcrichton
Copy link
Member

This probably indicates that the copy of LLVM you installed did not have arm support built in. When building LLVM in-tree we configure ARM/x86/MIPS platforms simultaneously, which system LLVM distributions are not guaranteed to provide.

@jauhien
Copy link
Contributor Author

jauhien commented Jun 7, 2014

How can I disable not relevant playforms in rust configure?

@jauhien
Copy link
Contributor Author

jauhien commented Jun 7, 2014

Ok, I've found line 228 in mk/main.mk

Could disabling of these platforms be somehow added to configure?

@alexcrichton
Copy link
Member

As I think you discovered in #14732, I suspect that disabling certain archs will require some finesse not only in the configure but also in the code itself. It's certainly all doable, however! I'd be fine with support being added.

@steveklabnik
Copy link
Member

Triage: is this still relevant today?

@cardoe
Copy link
Contributor

cardoe commented Mar 23, 2016

@steveklabnik: I'm trying to build Rust 1.7.0 on Gentoo with the system LLVM which happens to be 3.7.1. This issue is not occurring but its failing for another reason.

@ustcscgy
Copy link

ustcscgy commented Jul 11, 2016

Hello everyone, I just build rust 1.10.0 on Gentoo with llvm-3.8.0-r3(-multitarget), without errors.

BTW, currently build rust with clang on Gentoo has another bug (already on gentoo bug tracker).

@cardoe
Copy link
Contributor

cardoe commented Jul 11, 2016

Yes. I've got support in Gentoo for Rust building against the Gentoo provided LLVM for some time now. This issue can be closed.

@alexcrichton
Copy link
Member

Yay!

bors added a commit to rust-lang-ci/rust that referenced this issue Jun 5, 2023
…albasi

Sort rust dependencies in vscode tree view

Sorts alphabetically based on dependency name. Fixes rust-lang#14729
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
Projects
None yet
Development

No branches or pull requests

5 participants