Your message dated Wed, 03 Feb 2010 18:39:41 +0000
with message-id <[email protected]>
and subject line Bug#561475: fixed in libgcrypt11 1.4.5-2
has caused the Debian Bug report #561475,
regarding libgcrypt11/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.)


-- 
561475: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561475
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libgcrypt11
Version: 1.4.1-1
Severity: serious
Tags: patch
Justification: fails to build 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=libgcrypt11&arch=mipsel&ver=1.4.5-1&stamp=1260977092&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 have a look at:
http://gcc.gnu.org/gcc-4.4/changes.html

The patch below fixes the problem by implementing the solution
recommended by the previous web page. With it libgcrypt11 builds 
successfully.

--- libgcrypt11-1.4.5.orig/mpi/longlong.h
+++ libgcrypt11-1.4.5/mpi/longlong.h
@@ -714,7 +714,15 @@ extern USItype __udiv_qrnnd ();
  **************  MIPS  *****************
  ***************************************/
 #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" ((USItype)(w0)),                                      \
@@ -739,7 +747,16 @@ extern USItype __udiv_qrnnd ();
  **************  MIPS/64  **************
  ***************************************/
 #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" ((UDItype)(w0)),                                      \


-- 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=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



--- End Message ---
--- Begin Message ---
Source: libgcrypt11
Source-Version: 1.4.5-2

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

libgcrypt11-dbg_1.4.5-2_i386.deb
  to main/libg/libgcrypt11/libgcrypt11-dbg_1.4.5-2_i386.deb
libgcrypt11-dev_1.4.5-2_i386.deb
  to main/libg/libgcrypt11/libgcrypt11-dev_1.4.5-2_i386.deb
libgcrypt11-doc_1.4.5-2_all.deb
  to main/libg/libgcrypt11/libgcrypt11-doc_1.4.5-2_all.deb
libgcrypt11_1.4.5-2.debian.tar.gz
  to main/libg/libgcrypt11/libgcrypt11_1.4.5-2.debian.tar.gz
libgcrypt11_1.4.5-2.dsc
  to main/libg/libgcrypt11/libgcrypt11_1.4.5-2.dsc
libgcrypt11_1.4.5-2_i386.deb
  to main/libg/libgcrypt11/libgcrypt11_1.4.5-2_i386.deb



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.
Andreas Metzler <[email protected]> (supplier of updated libgcrypt11 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: RIPEMD160

Format: 1.8
Date: Wed, 03 Feb 2010 19:02:07 +0100
Source: libgcrypt11
Binary: libgcrypt11-doc libgcrypt11-dev libgcrypt11-dbg libgcrypt11
Architecture: source all i386
Version: 1.4.5-2
Distribution: unstable
Urgency: low
Maintainer: Debian GnuTLS Maintainers <[email protected]>
Changed-By: Andreas Metzler <[email protected]>
Description: 
 libgcrypt11 - LGPL Crypto library - runtime library
 libgcrypt11-dbg - LGPL Crypto library - debugger files
 libgcrypt11-dev - LGPL Crypto library - development files
 libgcrypt11-doc - LGPL Crypto library - documentation
Closes: 561475
Changes: 
 libgcrypt11 (1.4.5-2) unstable; urgency=low
 .
   * Fix FTBFS on mips(el). Thank you, Aurelien Jarno. Closes: #561475
Checksums-Sha1: 
 414b4b9fc4640c80c2265da4a4e97ed79d0b0f56 1585 libgcrypt11_1.4.5-2.dsc
 d1792728a941a0fcfd5ad4e9582d0329e0c1507a 12556 
libgcrypt11_1.4.5-2.debian.tar.gz
 a08ca2792e1936f6973ea829a8f36d8f618a8b4b 671550 libgcrypt11-doc_1.4.5-2_all.deb
 2be2e99e97fbea9fe0a852a4d29afa7eaa430697 361734 
libgcrypt11-dev_1.4.5-2_i386.deb
 148f353a08661acc52a294322ce9c9903c19a1a9 360472 
libgcrypt11-dbg_1.4.5-2_i386.deb
 35063a3a1a983ac21a3067331afa95dab91206e9 266444 libgcrypt11_1.4.5-2_i386.deb
Checksums-Sha256: 
 8fd5650665d7b1c65b72307de200e33d0c8aca5dc3e2c42ff3c0356c83e188af 1585 
libgcrypt11_1.4.5-2.dsc
 4ff05129d4683dc6567174875d48edf0b13864cd3bc52320d49b62bad22e836d 12556 
libgcrypt11_1.4.5-2.debian.tar.gz
 5010011d99851257b2cc1ca9b234b60c0ce77e2e6028734669a25a4e0d574dd3 671550 
libgcrypt11-doc_1.4.5-2_all.deb
 e609c14f992ee697e1ec8ea805206e93153e92bb75295675a3e538db0fa8c300 361734 
libgcrypt11-dev_1.4.5-2_i386.deb
 43fafdda61745b0d5afa87048c3b674c64e656a669f446b9d299458c98d4273c 360472 
libgcrypt11-dbg_1.4.5-2_i386.deb
 61d32a0ec424e901b113c23fce658c96e87759d532e9e4754f54ac8c280227aa 266444 
libgcrypt11_1.4.5-2_i386.deb
Files: 
 1a2b3bc6373ac09c1ad5374eb987c0df 1585 libs optional libgcrypt11_1.4.5-2.dsc
 859330e71fbf5ebceebaa6ef97e7c433 12556 libs optional 
libgcrypt11_1.4.5-2.debian.tar.gz
 6d8d8684b909f22147076b2ce0eafe04 671550 doc optional 
libgcrypt11-doc_1.4.5-2_all.deb
 128728d332a42154f45f76f9e2bbb66b 361734 libdevel optional 
libgcrypt11-dev_1.4.5-2_i386.deb
 d3c01e4ab8e6ba800728c9998e2cfded 360472 debug extra 
libgcrypt11-dbg_1.4.5-2_i386.deb
 6b687ecf0284d5efe44115c07198b159 266444 libs standard 
libgcrypt11_1.4.5-2_i386.deb

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

iEYEAREDAAYFAktpvNoACgkQHTOcZYuNdmNIqQCgrXSca2IM4aHNZQpuTorYTrOH
sskAoJnaPgjm1jTYfT/BUYTwaVs/iVi8
=2Uvs
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to