Bug#733917: linbox FTBFS: build failed on post-compile-test on mips/mipsel

Dejan Latinovic Dejan.Latinovic at imgtec.com
Tue Dec 31 15:29:02 UTC 2013


Package: linbox
Version: 1.3.2-1
Severity: serious
Tags: sid patch
Justification: FTBFS


In an attempt to build libqb on mips/mipsel, 
build failed on testing:


<  PASS: test-charpoly
<  make[5]: *** Deleting file `test-det.log'
<  make[5]: *** [test-det.log] Terminated
<  make: *** [build-arch] Terminated
<  E: Caught signal ‘Terminated’: terminating immediately
<  make[4]: *** [check-TESTS] Terminated
<  make[1]: *** [check-recursive] Terminated
<  make[2]: *** [check-recursive] Terminated
<  make[3]: *** [check-am] Terminated
<  Terminated
<  Build killed with signal TERM after 300 minutes of inactivity

The full build logs are available from:
https://buildd.debian.org/status/fetch.php?pkg=linbox&arch=mips&ver=1.3.2-1&stamp=1379576905

Test test-det on i386 or amd64 successfully pass after a few iterations,
on mips this test has an enormous number of iterations
and build of the linbox package on buildd breaks after 300 minutes of inactivity.

The reason for this behavior is that in:
linbox/algorithms/rational-reconstruction-base.h
the way to calculate RecCounter is:
<  RecCounter = (size_t)((double)log((double)rbound_)/log(2.));//2^RecCounter < rbound_ <=2^(RecCounter+1)
For rbound_ is equal to zero the result of log function is -inf (double[8 bytes]).
When we cast -inf to size_t (unsigned int[4 bytes]) on i386 and amd64,
result is zero.
In the same situation on mips architecture, cast is done through
TRUNC.W.D instruction.
For this instraction, if the source value is Infinity, NaN, or rounds to an integer outside the range
-2^31 to 2^31-1, the result cannot be represented correctly and an IEEE Invalid Operation
condition exists. The result depends on the FP exception model currently active and the
default result is 2^31–1 (2147483647).


A patch fixing this issue is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-RR-RecCounter.patch
Type: text/x-patch
Size: 1240 bytes
Desc: fix-RR-RecCounter.patch
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20131231/7f3d14b1/attachment.bin>


More information about the debian-science-maintainers mailing list