Hi!
I'm building Rust 1.38.0 from source. LLVM target is X86, triples are "amd64-unknown-linux-gnu" and "i686-unknown-linux-gnu". I'm also building cargo with ./x.py install cargo as stated on Github.
Rust builds and installs file, but testing (./x.py test) fails on three tests:
The errors are all related to missing ARM targets, here's one of them:
error[E0463]: can't find crate for `std`
- |
- = note: the `thumbv6m-none-eabi` target may not be installed
+ error: Could not create LLVM TargetMachine for triple: thumbv6m-none-eabi: No available targets are compatible with triple "thumbv6m-none-unknown-eabi"
The other errors are identical, excect for the triple that is thumbv7em-none-eabihf. To me it's pretty obvious that ARM targets are missing, since I'm building for x86. Can you help me?
Wouldn't that result in a bigger llvm? I'm building Rust for a distro that only supports x86 machines, we don't need other archs. Keeping packages in the repo small is also a big plus.
It is not about which architectures Rust run on. Rust is expected to be able to cross compile, so cross compilation is tested by the test suite. Rust built with targets = "X86" can't cross compile, so it naturally fails those tests.