Closed LocutusOfBorg closed 5 years ago
Hmm, I can reproduce this on i586-unknown-linux-gnu
, but not on i686. The main difference is in the default target features, where Rust i686 assumes fxsr,sse,sse2
, and this could certainly have an effect on the accuracy that this test is looking for.
But I can see in your log that it did build for i686 -- unless Debian patched out the SSE features? (Not all i686 CPUs really have SSE2, after all.) What does rustc --print cfg
say?
I can reproduce on i686 with RUSTFLAGS='-Ctarget-feature=-sse'
, so I suspect this is it.
Anyway, the test is probably just too tight with comparing EPSILON
, "the difference between 1.0 and the next largest representable number." The true decimal result is 46.4, so EPSILON is already out of the range of significant bits, and we're effectively comparing for equality.
Hello, looks like a test is failing on i386 since the begin (at least since version 2)
Do you have any idea?
Full build log: https://buildd.debian.org/status/fetch.php?pkg=rust-num-traits&arch=i386&ver=0.2.8-1&stamp=1562573322&raw=0