#14265: Compile Python with -D__C99FEATURES__ on Solaris
----------------------------------+-----------------------------------------
       Reporter:  jdemeyer        |         Owner:  jdemeyer    
           Type:  defect          |        Status:  needs_review
       Priority:  blocker         |     Milestone:  sage-5.9    
      Component:  packages        |    Resolution:              
       Keywords:                  |   Work issues:              
Report Upstream:  N/A             |     Reviewers:              
        Authors:  Jeroen Demeyer  |     Merged in:              
   Dependencies:                  |      Stopgaps:              
----------------------------------+-----------------------------------------
Description changed by jdemeyer:

Old description:

> 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 with -D__C99FEATURES__. So we should
> add a compiler flag to fix this.
>
> '''spkg''':
> [http://boxen.math.washington.edu/home/jdemeyer/spkg/python-2.7.3.p6.spkg]
>
> To test: build this spkg, rebuild numpy (optionally: rebuild everything
> which depends on Python, including the Sage library).
>
> === python-2.7.3.p6 (Jeroen Demeyer, 19 March 2013) ===
>  * Trac #14265: Compile with -D__C99FEATURES__ on Solaris.
>  * Remove workaround for http://bugs.python.org/issue6954
>    (which is fixed upstream).
>  * Rename environment variable EXTRAFLAGS to PYTHON_CONFIGURE for
>    consistency with other packages and allow it to be set by the user.
>  * Add check that the ctypes and readline modules can be imported.
>  * Don't add the -fwrapv flag (no longer needed since Python-2.7.3 adds
>    this flag for Clang).

New description:

 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 with -D__C99FEATURES__. So we should
 add a compiler flag to fix this.

 '''spkg''':
 [http://boxen.math.washington.edu/home/jdemeyer/spkg/python-2.7.3.p6.spkg]

 To test: build this spkg, rebuild numpy (optionally: rebuild everything
 which depends on Python, including the Sage library).

 === python-2.7.3.p6 (Jeroen Demeyer, 24 March 2013) ===
  * Trac #14265: Compile with -D__C99FEATURES__ on Solaris.
  * Remove workaround for http://bugs.python.org/issue6954
    (which is fixed upstream).
  * Rename environment variable EXTRAFLAGS to PYTHON_CONFIGURE for
    consistency with other packages and allow it to be set by the user.
  * Add check that the ctypes and readline (required for IPython) and
    socket (required for setuptools) modules can be imported.
  * Don't add the -fwrapv flag (no longer needed since Python-2.7.3 adds
    this flag for Clang).

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14265#comment:49>
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.


Reply via email to