Open TimKotowski opened 1 month ago
CC @Patryk27
update, adding rustflags = ["-C", "link-arg=-Wl,--allow-multiple-definition"]
allows the error to go away and to do calculations. Just heads up i basically just took the template that was generated, i didn't do any thing that I can think of that would cause this to error.
I think this is going to be similar to https://github.com/Rahix/avr-hal/issues/541, which is stuck on https://github.com/rust-lang/rust/pull/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).
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...).
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 https://github.com/Rahix/avr-hal/issues/571 (aka https://github.com/llvm/llvm-project/issues/102436) the entire newest toolchain is unusable for AVR anyway, so the issue's stalled on that.
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 getbut seems
_addsf3
is defined both in the AVR, and in the rust compiler_builtins you cant use both, so I'm lost to getting to have this not have conflicting crates.