<div dir="ltr">Yes, please do. <br>
</div><span>
</span><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 29, 2016, 1:52 PM Tobias Hansen <<a href="mailto:thansen@debian.org">thansen@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11/29/2016 06:01 PM, Tobias Hansen wrote:<br class="gmail_msg">
> On 11/29/2016 03:53 PM, Doug Torrance wrote:<br class="gmail_msg">
>> Control: reassign -1 src:givaro<br class="gmail_msg">
>><br class="gmail_msg">
>> On 11/29/2016 09:58 AM, Tobias Hansen wrote:<br class="gmail_msg">
>>> I think I figured out at least the test failures with "Illegal<br class="gmail_msg">
>>> instruction" on i386. The problem is that givaro is built using cpu<br class="gmail_msg">
>>> extensions that are not allowed.<br class="gmail_msg">
>>><br class="gmail_msg">
>>> Jerome figured out in [1] that the problem happens when givaro code is<br class="gmail_msg">
>>> called. And sure enough:<br class="gmail_msg">
>>><br class="gmail_msg">
>>> objdump -S /usr/lib/i386-linux-gnu/libgivaro.so.9.0.0 | grep<br class="gmail_msg">
>>> '\b\(ymm\|zmm\|vfm\)'<br class="gmail_msg">
>>>     15411:    c4 e3 79 6b 8b a4 29     vfmaddsd<br class="gmail_msg">
>>> %xmm2,-0x1d65c(%ebx),%xmm0,%xmm1<br class="gmail_msg">
>>>     154d1:    c4 e3 69 6b 8b ac 29     vfmaddsd<br class="gmail_msg">
>>> %xmm0,-0x1d654(%ebx),%xmm2,%xmm1<br class="gmail_msg">
>>><br class="gmail_msg">
>>> And in the i386 build logs for givaro there are these flags:<br class="gmail_msg">
>>> -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -msse4a -mavx<br class="gmail_msg">
>>> -mfma4 -mfpmath=sse<br class="gmail_msg">
>>><br class="gmail_msg">
>>> Do you have time in the next days to disable these flags? Otherwise I<br class="gmail_msg">
>>> can do it. (I'm not sure if some of these flags (mmx, sse ?) are allowed<br class="gmail_msg">
>>> on i386 and didn't find that info. Ximin, do you know this?)<br class="gmail_msg">
>><br class="gmail_msg">
>> Sure, I can take a look.  I think it should be a simple --disable-simd<br class="gmail_msg">
>> in d/rules (we did the same in fflas-ffpack).<br class="gmail_msg">
>><br class="gmail_msg">
>> Doug<br class="gmail_msg">
><br class="gmail_msg">
> Thanks! I tried building it but now there seems to be an issue similar<br class="gmail_msg">
> to [1]:<br class="gmail_msg">
><br class="gmail_msg">
> FAIL: test-ringarith<br class="gmail_msg">
> ====================<br class="gmail_msg">
><br class="gmail_msg">
> 997167681959697!=997167682008849 failed (at line 123)<br class="gmail_msg">
> x y failed !<br class="gmail_msg">
> MEDmax failed !<br class="gmail_msg">
> FAIL test-ringarith (exit status: 255)<br class="gmail_msg">
><br class="gmail_msg">
> And it even fails when setting the flag -ffp-contract=off .<br class="gmail_msg">
> Note that now the failure seems to be related to ModularExtended<double><br class="gmail_msg">
> instead of ModularExtended<float> (MEDmax instead of MEFmax in the error<br class="gmail_msg">
> message).<br class="gmail_msg">
><br class="gmail_msg">
> Best,<br class="gmail_msg">
> Tobias<br class="gmail_msg">
><br class="gmail_msg">
> [1] <a href="https://github.com/linbox-team/givaro/issues/25" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/linbox-team/givaro/issues/25</a><br class="gmail_msg">
<br class="gmail_msg">
Ok, a workaround is to set -ffloat-store (like the Fedora package). I<br class="gmail_msg">
pushed this change to the git repo. Can I upload this?<br class="gmail_msg">
<br class="gmail_msg">
Best,<br class="gmail_msg">
Tobias<br class="gmail_msg">
</blockquote></div>