[gmp-ecm] 50/77: Fix SSE2-related FTBFS (patch from ubuntu sent by Michael Terry).

Jerome Benoit calculus-guest at moszumanska.debian.org
Sat Jun 6 12:33:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

calculus-guest pushed a commit to branch master
in repository gmp-ecm.

commit 7428801ed62d725698229246e732b28434cebd09
Author: Laurent Fousse <laurent at komite.net>
Date:   Sat Dec 3 14:11:48 2011 +0100

    Fix SSE2-related FTBFS (patch from ubuntu sent by Michael Terry).
---
 debian/patches/0004-Fix-SSE2-support.patch | 50 ++++++++++++++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 51 insertions(+)

diff --git a/debian/patches/0004-Fix-SSE2-support.patch b/debian/patches/0004-Fix-SSE2-support.patch
new file mode 100644
index 0000000..b04a34e
--- /dev/null
+++ b/debian/patches/0004-Fix-SSE2-support.patch
@@ -0,0 +1,50 @@
+Description: Fix compilation with SSE2 by passing -msse2
+Origin: https://gforge.inria.fr/scm/viewvc.php?view=rev&root=ecm&revision=1546
+
+Index: gmp-ecm-6.3/configure.in
+===================================================================
+--- gmp-ecm-6.3.orig/configure.in	2010-07-28 03:24:22.000000000 -0400
++++ gmp-ecm-6.3/configure.in	2011-11-30 13:41:13.285859861 -0500
+@@ -275,9 +275,9 @@
+   AC_MSG_CHECKING([for SSE2 support])
+   m4_define([SSE2_TEST_PROG], [AC_LANG_PROGRAM([], dnl
+ [#if (defined(__GNUC__) || defined(__ICL)) && defined(__i386__)
+-/* When there are no constraints, registers are referred to by
+-   single % sign, not double. Argh */
+-asm volatile ("pmuludq %xmm2, %xmm0");
++/* On some machines, a program without constraints may pass without -msse2 but
++   those with constraints in spv.c fail, thus we test with constraints here. */
++asm volatile ("pmuludq %%xmm2, %%xmm0" : : :"%xmm0");
+ #else
+ #error
+ #IRIXdoesnotexitaterrordirective
+Index: gmp-ecm-6.3/configure
+===================================================================
+--- gmp-ecm-6.3.orig/configure	2011-11-30 13:24:16.000000000 -0500
++++ gmp-ecm-6.3/configure	2011-11-30 13:47:47.545864034 -0500
+@@ -11844,9 +11844,9 @@
+ main ()
+ {
+ #if (defined(__GNUC__) || defined(__ICL)) && defined(__i386__)
+-/* When there are no constraints, registers are referred to by
+-   single % sign, not double. Argh */
+-asm volatile ("pmuludq %xmm2, %xmm0");
++/* On some machines, a program without constraints may pass without -msse2 but
++   those with constraints in spv.c fail, thus we test with constraints here. */
++asm volatile ("pmuludq %%xmm2, %%xmm0" : : :"%xmm0");
+ #else
+ #error
+ #IRIXdoesnotexitaterrordirective
+@@ -11868,9 +11868,9 @@
+ main ()
+ {
+ #if (defined(__GNUC__) || defined(__ICL)) && defined(__i386__)
+-/* When there are no constraints, registers are referred to by
+-   single % sign, not double. Argh */
+-asm volatile ("pmuludq %xmm2, %xmm0");
++/* On some machines, a program without constraints may pass without -msse2 but
++   those with constraints in spv.c fail, thus we test with constraints here. */
++asm volatile ("pmuludq %%xmm2, %%xmm0" : : :"%xmm0");
+ #else
+ #error
+ #IRIXdoesnotexitaterrordirective
diff --git a/debian/patches/series b/debian/patches/series
index 9b8aece..a445bd8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-Link-libecm.so-against-libgmp.patch
 0002-Disable-assembly-on-mips.patch
 0003-Rerun-autoreconf.patch
+0004-Fix-SSE2-support.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gmp-ecm.git



More information about the debian-science-commits mailing list