-
Notifications
You must be signed in to change notification settings - Fork 223
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
Issue with math calculations with floats to serial port output #566
Comments
CC @Patryk27 |
update, adding |
I think this is going to be similar to #541, which is stuck on rust-lang/rust#125016 (tl;dr I've added a small fix to compiler_builtins, but we can't bump compiler_builtins within rustc at the moment, because it brings f16 & f128 as well, and those have missing support within the compiler...). Anyway, I'm watching the compiler_builtins bump and once it's done, I'll revisit this issue here (unless someone has a better lead, but that's my hunch for now). |
FYI f16 & f128 will be disabled in the distributed version of compiler_builtins by default, with an exception on platforms that are known to work (currently x86 and aarch64). There is also a flag to disable it if you have it as a direct dependency for some reason. I have a fix for the compiler builtins issue up and waiting for review, hopefully soonish. |
Status: seems to compile on the latest toolchain, but due to #571 (aka llvm/llvm-project#102436) the entire newest toolchain is unusable for AVR anyway, so the issue's stalled on that. |
Okie, it should work on the newest toolchain 🙂 |
seems to be getting error
I did see floats when being print out are an issue but with
ufmt_float
should solve the issue, but when i include the lineufmt::uwriteln!(&mut serial, "Pressure fixed: {}", f).unwrap()
this is where i get an error. I previously added# This is needed because of a known bug https://github.com/Rahix/avr-hal/issues/125#issuecomment-771578390 [profile.dev.package.compiler_builtins] overflow-checks = false
but this did not solve it. Unaware of this issue else where, nor do I see how to resolve this.Here is my cargo.toml file
Does this seem like a dependency version issue?
when i do
cargo tree -d
I get
but seems
_addsf3
is defined both in the AVR, and in the rust compiler_builtinsyou cant use both, so I'm lost to getting to have this not have conflicting crates.
The text was updated successfully, but these errors were encountered: