Bug#793012: gmp-ecm: FTBFS on mipsel: bad assembly?

Jurica Stanojkovic Jurica.Stanojkovic at imgtec.com
Wed Aug 26 13:54:09 UTC 2015


Hello,

I was able to build package gmp-ecm_6.4.4+ds-2 with patch that is attached.

First part of patch is taken from upstream (file longlong.h)
I had to add second part (file sp.h) in order to build package successfully.
Patch is attached.

Alternatively, if  following code for umul_ppm is used, instead of upstream patch,
package also does build successfully.
#define umul_ppmm(w1, w0, u, v) \
   __asm__ ("multu %2,%3\n\tmflo %0\n\tmfhi %1"                         \
           : "=d" (w0), "=d" (w1) : "d" (u), "d" (v))

Thank you!

Regards,
Jurica

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20150826/05dfd980/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips_longlong_sp.patch
Type: text/x-patch
Size: 1512 bytes
Desc: mips_longlong_sp.patch
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20150826/05dfd980/attachment.bin>


More information about the debian-science-maintainers mailing list