#5847: Update GMP-ECM to 6.3
-------------------------+--------------------------------------------------
Reporter: mabshoff | Owner: leif
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.6.1
Component: packages | Resolution:
Keywords: | Author: Mike Hansen, Leif Leonhardy, Jeroen
Demeyer
Upstream: N/A | Reviewer: Leif Leonhardy, Dima Pasechnik
Merged: | Work_issues:
-------------------------+--------------------------------------------------
Comment(by leif):
Replying to [comment:70 jdemeyer]:
> Sorry, but this will totally break C compilers which do not support
{{{-march=native}}}:
{{{
case "`uname -m`" in
i[3456]86|i86pc|x86_64|amd64)
# Only add it if CFLAGS do not already contain similar:
if ! (echo "$CFLAGS" | egrep -- '-march=|-mcpu=|-mtune='
>/dev/null);
then
CFLAGS="-march=native $CFLAGS"
fi;;
esac
}}}
Well, cite properly:
{{{
#!sh
...
if [ "$SAGE_FAT_BINARY" = yes ]; then
echo "Warning: SAGE_FAT_BINARY is currently not really supported by
this package."
# XXX Disable SSE2 on x86? (by passing '--enable-sse2=no' to
'configure')
# XXX Disable asm-redc? Or pass some "generic" '--host=...' to
'configure'?
else
# XXX We don't yet test if CC is really gcc here.
# gcc's "-march=native" only works on some platforms:
case "`uname -m`" in
i[3456]86|i86pc|x86_64|amd64)
# Only add it if CFLAGS do not already contain similar:
if ! (echo "$CFLAGS" | egrep -- '-march=|-mcpu=|-mtune='
>/dev/null);
then
CFLAGS="-march=native $CFLAGS"
fi;;
esac
fi
...
}}}
(There are also notes on this in both the changelog and the ''Special
Update/Build Instructions'', see above.)
What C compilers ''does'' Sage currently support (and will Sage support in
the near future)?
Cf. [comment:ticket:10252:20 this comment]:
''There's very little support for other compilers in Sage, and it's easy
to add a distinction when the day it gets necessary comes, though I could
add it now.''
Btw, if a user decides or has to set `CC` for some reason (which might
even be just to use a different `gcc`), GMP-ECM won't use MPIR's / GMP's
`CFLAGS` either. And MPIR isn't omniscient...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5847#comment:73>
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.