Bug#665719: flint: FTBFS on mips/mipsel (impossible constraint in 'asm'

2013-10-25 Thread Dejan Latinovic
Hi,

gcc for mips/mipsel used in wheezy and jessie (sid) doesn't support
define_register_constraint h.


I have attached a patch solving the issue.

Cheers,
Dejan Latinovićdiff -uNr flint-1.011.orig/longlong.h flint-1.011/longlong.h
--- flint-1.011.orig/longlong.h	2008-06-16 03:31:56.0 +
+++ flint-1.011/longlong.h	2013-10-23 15:48:54.0 +
@@ -1011,27 +1011,17 @@
 #endif /* __m88000__ */
 
 #if defined (__mips)  W_TYPE_SIZE == 32
-#if __GNUC__  2 || __GNUC_MINOR__ = 7
-#define umul_ppmm(w1, w0, u, v) \
-  __asm__ (multu %2,%3 : =l (w0), =h (w1) : d (u), d (v))
-#else
 #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))
-#endif
 #define UMUL_TIME 10
 #define UDIV_TIME 100
 #endif /* __mips */
 
 #if (defined (__mips)  __mips = 3)  W_TYPE_SIZE == 64
-#if __GNUC__  2 || __GNUC_MINOR__ = 7
-#define umul_ppmm(w1, w0, u, v) \
-  __asm__ (dmultu %2,%3 : =l (w0), =h (w1) : d (u), d (v))
-#else
 #define umul_ppmm(w1, w0, u, v) \
   __asm__ (dmultu %2,%3\n\tmflo %0\n\tmfhi %1\
 	   : =d (w0), =d (w1) : d (u), d (v))
-#endif
 #define UMUL_TIME 20
 #define UDIV_TIME 140
 #endif /* __mips */

Bug#665719: flint: FTBFS on mips/mipsel (impossible constraint in 'asm'

2012-03-25 Thread Julien Cristau
Source: flint
Version: 1.011-2
Severity: serious
Tags: sid wheezy
Justification: fails to build from source (but built successfully in the past)

Hi,

flint FTBFS on mipsen, see the build logs linked from 
https://buildd.debian.org/status/package.php?p=flint

Cheers,
Julien


signature.asc
Description: Digital signature