#10252: ecm does not compile on some 32-bit Linux systems
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: tbd
Type: defect | Status: new
Priority: blocker | Milestone: sage-4.6.1
Component: packages | Keywords: ecm spkg-install
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Comment(by zimmerma):
> I will try to find a fix.
with Pierrick Gaudry, we have analyzed and fixed the problem.
Long story: the asm volatile instructions without constraints in the
configure script compile fine without -msse2, but those from the
{{{spv.c}}} file, which have constraints, do not compile
without -msse2. The fix was to put instructions with constraints in
configure.
Short story: apply the following patch
{{{
--- configure.in (revision 1545)
+++ configure.in (revision 1546)
@@ -296,9 +296,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
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10252#comment:7>
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.