-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
libcore fails to compile for thumbv6m-none-eabi #62932
Comments
I wasn't able to reproduce this based on your instructions. Though for me there is no attempt to even build core, it just builds libc. |
Weird. The first thing |
See the exact build failure in libc's CI which mentions the exact same |
I suspect that it doesn't build libcore because it's already distributed by rustup (and removing the rustup target makes compilation fail with libcore not found). Maybe something needs to be done to force building of libcore even for a non-custom target? |
I don't really follow. |
AFAIK, we do not ship a rust-std component for this particular target. |
|
@gnzlbg can you try to bisect the regression -- ideally to a specific PR? The https://github.com/rust-lang-nursery/cargo-bisect-rustc tool may be of use! I'm marking this as P-high so that we check in on it but it seems like it's not yet clear whether this is a compiler bug exactly or what. |
I think it would be helpful if somebody else can reproduce this issue first. Following the instructions that I posted in the OP, I can reproduce this both on a x86_64-unknown-linux-gnu and a x86_64-apple-darwin host, with the current nightly (rustc 1.38.0-nightly (03f19f7 2019-07-24)). @nikic which host are you on ? |
@nikomatsakis PR wise we started seeing this right after #62592 was merged. I'm afraid that on my home laptop compiling rustc twice to test will take me... days. |
This comment has been minimized.
This comment has been minimized.
@gnzlbg I was able to reproduce after doing a |
Ah, indeed! |
So I do indeed have nightly as my default Rust toolchain, and on libc's CI this is the case as well for that build job. I'll report this to xargo upstream. |
There's a couple of places that can throw this error, the one we hit is https://github.com/llvm/llvm-project/blob/930df11a0d00c467b17c76f2b782a96bf721599b/llvm/lib/MC/MCStreamer.cpp#L354-L355. The symbol in question is |
Finally managed to get a reproducer (turns out this only crashes llc at |
I've opened an LLVM bug at https://bugs.llvm.org/show_bug.cgi?id=42760. |
FYI rust-lang/stdarch game boy advance build job is affected by this as well. |
Fixed upstream in llvm/llvm-project@4f8259b and backported to LLVM 9 in llvm/llvm-project@4e21661. LLVM submodule update pending in #63302. |
Update LLVM submodule This pulls in a newer version of the LLVM 9 release branch. Fixes rust-lang#62932. r? @alexcrichton
Update LLVM submodule This pulls in a newer version of the LLVM 9 release branch. Fixes #62932. r? @alexcrichton
The libc crate cron job has started failing to build on master for the target
thumbv6m-none-eabi
. To reproduce:errors with
libcore failing to build for the target is bad - that it prevents to build the libc crate for the target is a sideeffect of that.
The text was updated successfully, but these errors were encountered: