You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
image will, reliably, fail at the function image::io::free_functions::load_decoder() with the message:
Both operands to a binary operator are not of the same type!
%7198 = xor i64 %7197, i32 4
in function _ZN5image2io14free_functions12load_decoder17h972a54ccb2943d7eE
LLVM ERROR: Broken function found, compilation aborted!
It appears to only happen when lto = true is chosen in the [profile.release] section of Cargo.toml.
Expected
The crate should compile.
Actual behaviour
Compilation stops with a broken function error.
Reproduction steps
Unfortunately, I do not own an aarch64 system, and cannot offer a minimal reproduction example. If someone could point out a way I could try going about that, I'd be more than willing to try.
I do not know whether I should bring this directly to the rust team themselves, but thought it was better to first try my luck here instead.
The text was updated successfully, but these errors were encountered:
I do not know whether I should bring this directly to the rust team themselves, but thought it was better to first try my luck here instead.
I believe so. This is an LLVM specific error which should be invisible behind the Rust language, so not at all related to any implementation details we're doing here. (We're not making use of any inline assembly etc.). This is a bug in rustc.
For more details, check this issue.
The gist of it is:
image
will, reliably, fail at the functionimage::io::free_functions::load_decoder()
with the message:It appears to only happen when
lto = true
is chosen in the[profile.release]
section ofCargo.toml
.Expected
The crate should compile.
Actual behaviour
Compilation stops with a broken function error.
Reproduction steps
Unfortunately, I do not own an aarch64 system, and cannot offer a minimal reproduction example. If someone could point out a way I could try going about that, I'd be more than willing to try.
I do not know whether I should bring this directly to the rust team themselves, but thought it was better to first try my luck here instead.
The text was updated successfully, but these errors were encountered: