#12319: OS X Lion: gsl fails self tests
--------------------------+-------------------------------------------------
Reporter: jhpalmieri | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: packages | Keywords: osx lion gsl darwin
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
--------------------------+-------------------------------------------------
Description changed by jhpalmieri:
Old description:
> As with pari (#12315), on OS X Lion, if you set SAGE_CHECK=yes and build
> gsl, some tests fail. If we set `SAGE_DEBUG=yes`, which uses `-O0`
> instead of `-O2` as a compiler flag, then self tests all pass. Modifying
> the spkg to use `-O1` instead of `-O2` also makes all tests pass. So a
> possible fix for spkg-install:
> {{{
> #!diff
> diff --git a/spkg-install b/spkg-install
> --- a/spkg-install
> +++ b/spkg-install
> @@ -27,6 +27,8 @@ fi
>
> if [ "x$SAGE_DEBUG" = xyes ] ; then
> CFLAGS="$CFLAGS -g -O0" # No optimisation, aids debugging.
> +elif [[ "$UNAME" = "Darwin" && `uname -r | sed 's/\([^.]*\)\..*/\1/'` =
> '11' ]]
> + CFLAGS="$CFLAGS -g -O1" # Lower level of optimisation for OS X Lion
> else
> CFLAGS="$CFLAGS -g -O2" # Normal optimisation.
> fi
> }}}
New description:
As with pari (#12315), on OS X Lion, if you set SAGE_CHECK=yes and build
gsl, some tests fail. If we set `SAGE_DEBUG=yes`, which uses `-O0`
instead of `-O2` as a compiler flag, then self tests all pass. Modifying
the spkg to use `-O1` instead of `-O2` also makes all tests pass. So a
possible fix for spkg-install:
{{{
#!diff
diff --git a/spkg-install b/spkg-install
--- a/spkg-install
+++ b/spkg-install
@@ -27,6 +27,8 @@ fi
if [ "x$SAGE_DEBUG" = xyes ] ; then
CFLAGS="$CFLAGS -g -O0" # No optimisation, aids debugging.
+elif [[ "$UNAME" = "Darwin" && `uname -r | sed 's/\([^.]*\)\..*/\1/'` =
'11' ]]
+ CFLAGS="$CFLAGS -g -O1" # Lower level of optimisation for OS X Lion --
see trac #12319
else
CFLAGS="$CFLAGS -g -O2" # Normal optimisation.
fi
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12319#comment:1>
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.