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
{{ message }}
Repository navigation
FTBFS on i686: "test_bline_length:98 - expected 2, but got 2" #2606
This can be fixed by adding the -ffloat-store flag to g++, but I'm not sure if this is a good solution. At least I didn't find such a flag for the clang compiler.
Activity
ice0 commentedon Apr 11, 2022
@onlyjob
Thank you for reporting.
This looks like a floating precision issue. I will try to reproduce this problem locally.
ice0 commentedon Apr 12, 2022
@rodolforg
std::cerr.precision(8)is just not enough to show the problem here.I changed it to
12so now it shows more precise values:The problem is in different float/double precision on i386 and x64. More details here:
https://stackoverflow.com/questions/10808601/different-behaviour-or-sqrt-when-compiled-with-64-or-32-bits
This can be fixed by adding the
-ffloat-storeflag to g++, but I'm not sure if this is a good solution. At least I didn't find such a flag for the clang compiler.Any ideas?
Fixed bline test on i386 arch