#14392: Domain error with tgammal when using FreeBSD
----------------------------+-----------------------------------------------
Reporter: stephen | Owner: pjeremy
Type: defect | Status: new
Priority: minor | Milestone: sage-5.9
Component: porting: BSD | Keywords: cephes, FreeBSD
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
----------------------------+-----------------------------------------------
I tested sage-5.9.beta2 and got errors like this:
{{{
"sage -t devel/sage/sage/plot/plot.py"
**********************************************************************
File "devel/sage/sage/plot/plot.py", line 942, in sage.plot.plot.plot
Failed example:
plot(gamma, (-3, 4), detect_poles = True).show(ymin = -5, ymax = 5)
Expected nothing
Got:
<BLANKLINE>
tgammal domain error
**********************************************************************
File "devel/sage/sage/plot/plot.py", line 946, in sage.plot.plot.plot
Failed example:
plot(gamma, (-3, 4), detect_poles = 'show').show(ymin = -5, ymax = 5)
Expected nothing
Got:
<BLANKLINE>
tgammal domain error
}}}
This is because FreeBSD uses the cephes math libraries. These output
error messages to stdout when they shouldn't.
The following patch removes all the print statements from files called
mtherror.c in cephes.
{{{
--- cephes-2.8.p1/spkg-install-orig 2013-03-30 20:48:35.000000000
+0000
+++ cephes-2.8.p1/spkg-install 2013-03-30 20:48:57.000000000 +0000
@@ -24,6 +24,8 @@
fi
done
+sed -i .orig 's|.*printf|//&1|' */mtherr.c
+
echo "Building Cephes..."
$MAKE
if [ $? -ne 0 ]; then
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14392>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.