#14265: Compile Python as C99
------------------------+---------------------------------------------------
Reporter: jdemeyer | Owner: tbd
Type: defect | Status: new
Priority: blocker | Milestone: sage-5.9
Component: packages | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors: Jeroen Demeyer
Merged in: | Dependencies:
Stopgaps: |
------------------------+---------------------------------------------------
The new doctesting framework (#12415) on Solaris gives lots of warnings
like
{{{
sage -t --long devel/sage/sage/plot/plot.py
**********************************************************************
File "devel/sage/sage/plot/plot.py", line 236, in sage.plot.plot
Failed example:
(g1+g2).show(ticks=pi/6, tick_formatter=pi) # show their sum, nicely
formatted
Expected nothing
Got:
Warning: invalid value encountered in isinf
Warning: invalid value encountered in isinf
Warning: invalid value encountered in isinf
[...]
Warning: invalid value encountered in isinf
Warning: invalid value encountered in isinf
Warning: invalid value encountered in isinf
}}}
These warnings are actually harmless and are indirectly caused by the fact
that Python doesn't find the `isinf()` C library function. From
`spkg/logs/python-2.7.3.p5.log`:
{{{
[...]
checking whether isinf is declared... no
checking whether isnan is declared... yes
checking whether isfinite is declared... no
[...]
}}}
These functions are defined by C99 and Python's `configure` does find
`isinf` and `isfinite` when compiled as C99. So we should add a compiler
flag to fix this.
'''spkg''':
[http://sage.math.washington.edu/home/jdemeyer/spkg/python-2.7.3.p6.spkg]
To test: build this spkg and rebuild numpy.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14265>
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.