Skip to content

Build fails with external LLVM with ARM backend disabled #23971

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

Closed
pcercuei opened this issue Apr 2, 2015 · 3 comments
Closed

Build fails with external LLVM with ARM backend disabled #23971

pcercuei opened this issue Apr 2, 2015 · 3 comments
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.

Comments

@pcercuei
Copy link

pcercuei commented Apr 2, 2015

When compiling with an external LLVM toolchain (using --llvm-root) that does not support the ARM backend, the compilation of the Rust compiler will fail.

I traced it to mk/main.mk:270:

LLVM_COMPONENTS=x86 arm aarch64 mips powerpc ipo bitreader bitwriter linker asmparser mcjit interpreter instrumentation

This causes the link step to fail, as "llvm-config" issues an error as it does not recognize the "arm" and "aarch64" components.

@pcercuei
Copy link
Author

pcercuei commented Apr 2, 2015

Actually this is not enouch since the LLVM_LIBS_* and LLVM_LDFLAGS_* are set in mk/main.mk but don't seem to be used elsewhere.
When adding those variables inside mk/target.mk for the linking step, I still get errors as Rustc seems to use ARM-specific symbols from the LLVM libraries.

@steveklabnik steveklabnik added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-build labels Apr 3, 2015
@tamird
Copy link
Contributor

tamird commented Jun 1, 2015

Dupe of #14729?

@alexcrichton
Copy link
Member

Looks like it!

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

4 participants