Your message dated Wed, 09 Dec 2009 22:39:19 +0000
with message-id <[email protected]>
and subject line Bug#560221: fixed in mpfr 2.4.2-3
has caused the Debian Bug report #560221,
regarding mpfr/mips(el): FTBFS with gcc-4.4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
560221: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560221
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mpfr
Version: 2.4.2-2
Severity: serious
Tags: patch
Justification: no longer builds from source

mpfr fails to build on mips(el) with gcc-4.4. A full build log can be
found here:
https://buildd.debian.org/fetch.cgi?pkg=mpfr&arch=mipsel&ver=2.4.2-2&stamp=1260358474&file=log&as=raw

This is due to a change in GCC 4.4, the h asm constraint is not 
supported anymore on mips. For more details please see:
http://gcc.gnu.org/gcc-4.4/changes.html

The patch below fixes the problem by implementing the solution
recommended the previous web page. With it, mpfr builds and 
passes the testsuite.

--- mpfr-2.4.2.orig/mpfr-longlong.h
+++ mpfr-2.4.2/mpfr-longlong.h
@@ -1011,7 +1011,15 @@
 #endif /* __m88000__ */
 
 #if defined (__mips) && W_TYPE_SIZE == 32
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
+#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
+#define umul_ppmm(w1, w0, u, v) \
+  do {                                                                 \
+    UDItype _r;                                                        \
+    _r = (UDItype) u * v;                                              \
+    (w1) = _r >> 32;                                                   \
+    (w0) = (USItype) _r;                                               \
+  } while (0)
+#elif __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
@@ -1024,7 +1032,16 @@
 #endif /* __mips */
 
 #if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
+#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
+typedef unsigned int UTItype __attribute__ ((mode (TI)));
+#define umul_ppmm(w1, w0, u, v) \
+  do {                                                                 \
+    UTItype _r;                                                        \
+    _r = (UTItype) u * v;                                              \
+    (w1) = _r >> 64;                                                   \
+    (w0) = (UDItype) _r;                                               \
+  } while (0)
+#elif __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

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: mipsel (mips64)

Kernel: Linux 2.6.26-2-5kc-malta
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash



--- End Message ---
--- Begin Message ---
Source: mpfr
Source-Version: 2.4.2-3

We believe that the bug you reported is fixed in the latest version of
mpfr, which is due to be installed in the Debian FTP archive:

libmpfr-dev_2.4.2-3_amd64.deb
  to main/m/mpfr/libmpfr-dev_2.4.2-3_amd64.deb
libmpfr-doc_2.4.2-3_all.deb
  to main/m/mpfr/libmpfr-doc_2.4.2-3_all.deb
libmpfr1ldbl_2.4.2-3_amd64.deb
  to main/m/mpfr/libmpfr1ldbl_2.4.2-3_amd64.deb
mpfr_2.4.2-3.diff.gz
  to main/m/mpfr/mpfr_2.4.2-3.diff.gz
mpfr_2.4.2-3.dsc
  to main/m/mpfr/mpfr_2.4.2-3.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Laurent Fousse <[email protected]> (supplier of updated mpfr package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 09 Dec 2009 21:49:52 +0100
Source: mpfr
Binary: libmpfr1ldbl libmpfr-dev libmpfr-doc
Architecture: source all amd64
Version: 2.4.2-3
Distribution: unstable
Urgency: low
Maintainer: Laurent Fousse <[email protected]>
Changed-By: Laurent Fousse <[email protected]>
Description: 
 libmpfr-dev - multiple precision floating-point computation developers tools
 libmpfr-doc - multiple precision floating-point computation documentation
 libmpfr1ldbl - multiple precision floating-point computation
Closes: 560221
Changes: 
 mpfr (2.4.2-3) unstable; urgency=low
 .
   * Apply patch by Aurélien Jarno, fixing compilation problem
     on mips(el) with gcc-4.4 (closes: #560221).
Checksums-Sha1: 
 6ba66d7739fa322872768c909d40e2020094fff6 1207 mpfr_2.4.2-3.dsc
 1cf7a7935699b19ab529b568154b6d1385c7947b 8504 mpfr_2.4.2-3.diff.gz
 15fc34526f0a30ef55a26cbffbaed1eb88f0fc6a 665614 libmpfr-doc_2.4.2-3_all.deb
 fdd1aa319d4cf2bdabf064ea176766dc02068218 428106 libmpfr1ldbl_2.4.2-3_amd64.deb
 000d4474b449a5a4e5eb98fa18e00c8f121c42ef 470274 libmpfr-dev_2.4.2-3_amd64.deb
Checksums-Sha256: 
 f5a8c4abcac7e46292f3b86771518820192232a557cef3449275db4708d2be4b 1207 
mpfr_2.4.2-3.dsc
 172df0adbe6959487092266d97807c2e3f2860fe55129dee9bac2a9ceaf65a94 8504 
mpfr_2.4.2-3.diff.gz
 812ad4ee70eb01ac2818b91977df4867bbf18852790d49de6370c55a335d36f9 665614 
libmpfr-doc_2.4.2-3_all.deb
 a90c8d691ece50293b1d4cb69ea084156bf211ae6814f3b18699a61256f254c6 428106 
libmpfr1ldbl_2.4.2-3_amd64.deb
 97e3488eab7375cacc82c02130d9ca9b4574c184003c70061a959e6878595fba 470274 
libmpfr-dev_2.4.2-3_amd64.deb
Files: 
 c50da0cf4585c049becd4f8fba2fa6a8 1207 math optional mpfr_2.4.2-3.dsc
 35e04097b141621f52535219d15d96f3 8504 math optional mpfr_2.4.2-3.diff.gz
 63baf058883b25d7f8bf1276f2b272f3 665614 doc optional 
libmpfr-doc_2.4.2-3_all.deb
 0fe151b18ab392c519459a2bfda4cec1 428106 libs optional 
libmpfr1ldbl_2.4.2-3_amd64.deb
 679d69102c665a592631a16d4221af67 470274 libdevel optional 
libmpfr-dev_2.4.2-3_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAksgFcQACgkQRoAVF6FpbStMYwCgnHPfxZE5dq59FkfYw+miEm9Q
Qz0An3x5u/mxHEAfG10vqJKWco5deM/H
=RgVU
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to