Bug#836304: flint: flint-arb FTBFS on testing: add_si fails with Segmentation fault on mips and arm
Dejan Latinovic
Dejan.Latinovic at imgtec.com
Thu Sep 1 12:50:34 UTC 2016
Package: flint
Version: 2.5.2-8
Severity: importatnt
Tags: sid, patch
Justification: FTBFS
User: debian-mips at lists.debian.org
Usertags: mips-patch
Flint-arb FTBFS on mips and arm with following error:
> add_si....../Makefile.subdirs:84: recipe for target '../build/arf/test/t-add_si_RUN' failed
> make[2]: *** [../build/arf/test/t-add_si_RUN] Segmentation fault
Full log is available here:
https://buildd.debian.org/status/fetch.php?pkg=flint-arb&arch=mipsel&ver=2.8.1-2&stamp=1470100740
https://buildd.debian.org/status/fetch.php?pkg=flint-arb&arch=armel&ver=2.8.1-2&stamp=1470093777
This issue is related to count_leading_zeros implementation in longlong.h.
If the same implementation is used for i386 and amd64 (instead of existing arch specific implementation), the same issue will appear.
Reported issue with more details is available here:
https://github.com/fredrik-johansson/arb/issues/150
Solution is to use clz builtins.
I had proposed this solution to upstream and it was merged.
https://github.com/wbhart/flint2/issues/283
Patch that contains needed changes is attached.
If flit-arb is build against flit that is built with mentioned patch applied, all tests will pass.
Could you consider including attached patch?
Regards,
Dejan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-clz-builtins-for-mips.patch
Type: text/x-patch
Size: 2165 bytes
Desc: use-clz-builtins-for-mips.patch
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20160901/31a84aa7/attachment.bin>
More information about the debian-science-maintainers
mailing list