Ignore target feature test when LLVM fails to compile minicore - #161257
Ignore target feature test when LLVM fails to compile minicore#161257TimNN wants to merge 1 commit into
Conversation
|
|
|
What exactly happens when LLVM "rejects" these? |
|
In the linked CI failure we see |
|
If these are turning into hard errors in LLVM, I'd say it is time to make them hard errors in Rust so it's impossible to hit those LLVM errors via rustc. Would you be willing to look into that or do you just want to get the CI green ASAP? |
|
The main priority was getting CI green again, because it's annoying if multiple failures accumulate, but that was effectively achieved by applying the I don't have time to work on making this a hard error on the Rust side at the moment. (I assume it's going to be a bit of a process with crater + fcp). Ignoring the ARM version of the test on LLVM 24 seems like a reasonable interim solution, I'll update the PR tomorrow. @rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
Crater won't help here, but yes this will need FCP. |
|
Thanks! Thinking about it some more, if we make this a hard error I guess we'll have to remove the minicore anyway as otherwise the error occurs in the wrong spot. That's a bit annoying. Ideally we'd have a way for minicore to not inherit the flags from the test itself (#147881)... we'll cross that bridge when we get there. |
Ignore target feature test when LLVM fails to compile minicore llvm/llvm-project#111334 made LLVM reject certain target feature + ABI mismatches (ARM hard / soft float) which means that minicore now [fails to build](https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/48076/canvas?sid=01a00f60-fa22-4f35-a854-0b6d1c302123) with errors like `error: <unknown>:0:0: in function _RNvXsc_Cs4Af2OiBEA1T_8minicoreiNtB5_3Add3add i32 (i32, i32): calling convention is hard-float, but floating-point registers are unavailable` This PR ignores the test where this currently happens on LLVM 24, assuming that if LLVM is now rejecting this, we should turn the rust-side warning into an error as well. Created rust-lang#161276 to track that. r? @RalfJung (since you worked ~recently on these, including migrating them to minicore) @rustbot label llvm-main
Ignore target feature test when LLVM fails to compile minicore llvm/llvm-project#111334 made LLVM reject certain target feature + ABI mismatches (ARM hard / soft float) which means that minicore now [fails to build](https://buildkite.com/llvm-project/rust-llvm-integrate-prototype/builds/48076/canvas?sid=01a00f60-fa22-4f35-a854-0b6d1c302123) with errors like `error: <unknown>:0:0: in function _RNvXsc_Cs4Af2OiBEA1T_8minicoreiNtB5_3Add3add i32 (i32, i32): calling convention is hard-float, but floating-point registers are unavailable` This PR ignores the test where this currently happens on LLVM 24, assuming that if LLVM is now rejecting this, we should turn the rust-side warning into an error as well. Created rust-lang#161276 to track that. r? @RalfJung (since you worked ~recently on these, including migrating them to minicore) @rustbot label llvm-main
llvm/llvm-project#111334 made LLVM reject certain target feature + ABI mismatches (ARM hard / soft float) which means that minicore now fails to build with errors like
error: <unknown>:0:0: in function _RNvXsc_Cs4Af2OiBEA1T_8minicoreiNtB5_3Add3add i32 (i32, i32): calling convention is hard-float, but floating-point registers are unavailableThis PR ignores the test where this currently happens on LLVM 24, assuming that if LLVM is now rejecting this, we should turn the rust-side warning into an error as well. Created #161276 to track that.
r? @RalfJung (since you worked ~recently on these, including migrating them to minicore)
@rustbot label llvm-main