#5847: Update GMP-ECM to 6.3
-------------------------------------------+--------------------------------
Reporter: mabshoff | Owner: leif
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.6.1
Component: packages | Keywords:
Author: Mike Hansen, Leif Leonhardy | Upstream: N/A
Reviewer: Leif Leonhardy | Merged:
Work_issues: |
-------------------------------------------+--------------------------------
Comment(by zimmerma):
in fact this bug is already fixed upstream (in revision 1516), see
https://gforge.inria.fr/tracker/index.php?func=detail&aid=10646&group_id=135&atid=623
The patch is the following:
{{{
--- configure.in (revision 1515)
+++ configure.in (revision 1516)
@@ -195,7 +195,7 @@
# asm_redc enabled by default for x86_64 and 64 bit PowerPC
if test "x$enable_asm_redc" = x; then
case $host in
- x86_64* | powerpc-apple-darwin* | powerpc64-*-linux*)
enable_asm_redc=yes;;
+ x86_64*-*-* | powerpc-apple-darwin* | powerpc64-*-linux*)
enable_asm_redc=yes;;
*) enable_asm_redc=no;;
esac
fi
@@ -203,8 +203,18 @@
if test "x$enable_asm_redc" = xyes; then
case $host in
pentium4-*-* | pentium3-*-* | viac7-*-* | i786-*-*)
ASMPATH=pentium4;;
- x86_64-*-*) ASMPATH=x86_64;;
- powerpc-apple-darwin*) ASMPATH=powerpc64;;
+ x86_64*-*-*) ASMPATH=x86_64;;
+# warning: with powerpc-apple-darwin* we can have ABI=32
+# see bug #10646 on the bug tracker, where config.guess says
+# powerpc-apple-darwin8.11.0 (this a 64-bit machine, but most
applications
+# are compiled in 32 bits). It works with --disable-asm-redc.
+ powerpc-apple-darwin*)
+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([
+#if defined(__ppc__)
+#error
+#endif])], [], [AC_MSG_NOTICE([32-bit PowerPC, disabling asm-redc])
+ enable_asm_redc=no])
+ ASMPATH=powerpc64;;
powerpc64-*-linux*)
ECM_INCLUDE([<"$srcdir"/powerpc64/powerpc-
defs.m4>])
ASMPATH=powerpc64;;
@@ -213,7 +223,9 @@
ASMPATH=athlon;;
*) AC_MSG_ERROR([[asm redc not available on this machine $host]]);;
esac
+fi
+if test "x$enable_asm_redc" = xyes; then
# do the necessary definitions and includes
AC_DEFINE([NATIVE_REDC],1,[Define to 1 to use asm redc])
test "x$CCAS" != x || CCAS="$CC -c"
}}}
Please can you check it works correctly with this patch?
Paul
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5847#comment:24>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.