Skip to content

FTBFS on i686: "test_bline_length:98 - expected 2, but got 2" #2606

Open

Description

@onlyjob

Synfig 1.5.1 just had a hilarious FTBFS on i686 in Debian:

FAIL: bline
============================================
   Synfig Core 1.5.1: test/test-suite.log
============================================

# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: bline
===========

test_bline_length:98 - expected 2, but got 2
�[31msynfig(53443) [10:06:17] error: test_bline_length FAILED�[0m
�[31msynfig(53443) [10:06:17] error: Test finished with 1 errors and 0 exception�[0m
FAIL bline (exit status: 1)

============================================================================
Testsuite summary for Synfig Core 1.5.1
============================================================================
# TOTAL: 2
# PASS:  1
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================

See full build log here: https://buildd.debian.org/status/fetch.php?pkg=synfig&arch=i386&ver=1.5.1%2Bdfsg-1&stamp=1649585184&raw=0

Apparently it wanted 2 but got ... 2 so it is unhappy, like a child. ;)

Thanks.

Activity

  1. ice0 commented on Apr 11, 2022

    @ice0
    Collaborator

    @onlyjob
    Thank you for reporting.
    This looks like a floating precision issue. I will try to reproduce this problem locally.

  2. ice0 commented on Apr 12, 2022

    @ice0
    Collaborator

    @rodolforg

    std::cerr.precision(8) is just not enough to show the problem here.
    I changed it to 12 so now it shows more precise values:

    expected 2, but got 1.99999998097
    

    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-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.

    Any ideas?

  3. added a commit that references this issue on Apr 24, 2022
    2518b8d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions