On Tue, 22 Dec 2015 14:37:43 -0800 (PST), sandro furieri wrote:
> Il giorno mercoledì 16 dicembre 2015 01:24:24 UTC+1,
>
linux...@gmail.com ha scritto:
>
>> On Tuesday, December 15, 2015 at 10:43:24 PM UTC+1,
>>
linux...@gmail.com wrote:
>>
>>> On Sunday, December 13, 2015 at 8:33:56 PM UTC+1, sandro furieri
>>> wrote:
>>>
>>>> happy testing
>>>
>>> On i386 two additional tests fail:
>>>
>>> FAIL: check_sql_stmt
>>> ====================
>>> ...
>>> Unexpected value at 1: 24.0|
>>> Expected value was : 22.0|
>>>
>>> FAIL: check_control_points
>>> ==========================
>>>
>>> Unexpected result E{-161.0000000000,1.0000000000,0.0000000000},
>>> N{-64.0000000000,-0.0000000000,1.0000000000}
>>> Expected: E{-161.0000000000,1.0000000000,-0.0000000000},
>>> N{-64.0000000000,-0.0000000000,1.0000000000}
>>
>> Full build log at:
>>
>
>
https://buildd.debian.org/status/fetch.php?pkg=spatialite&arch=i386&ver=4.4.0~rc0-1~exp1&stamp=1450220426
>> [1]
>
> Hi Bas,
>
> I'm unable to confirm any issue specifically related to i386.
>
> I've just set up a Debian 8 Jessie Virtual Machine (kernel:
> 3.16.0-4-686-pae) and
> all tests pass without any problem.
> Just to be absolutely sure I've tested both geos-4.2.0 and
> geos-4.5.0,
> and it
> works nicely in both configurations..
>
an interesting follow up.
I've performed yet another test, and this time I was finally able to
reproduce the failures you already detected, anyway what I've
discovered is completely unexpected and really puzzling.
1. compiling libspatialite passing to gcc the "-g -O0" flags (no
code optimization at all): full success
2. if instead we pass "-g -O2" (standard optimization) the test
coverage reports two failures.
it's probably interesting to note that on Win32 the MinGW compiler
(a strict gcc derivative) always returns the expected results even
when "-O2" is specified.
it seems to be an artifact specifically caused by the Debian i386
compiler, possibly because it's attempting to apply too aggressive
and unsafe code optimizations.
bye Sandro