#11226: Sympow spkg fails with gcc 4.6.0
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:  mariah                               
    
       Type:  defect    |         Status:  needs_review                         
    
   Priority:  major     |      Milestone:  sage-4.7.1                           
    
  Component:  packages  |       Keywords:  sympow                               
    
Work_issues:            |       Upstream:  Reported upstream. Little or no 
feedback.
   Reviewer:            |         Author:  Mariah Lenox                         
    
     Merged:            |   Dependencies:                                       
    
------------------------+---------------------------------------------------
Changes (by newvalueoldvalue):

  * status:  new => needs_review
  * upstream:  N/A => Reported upstream. Little or no feedback.
  * author:  => Mariah Lenox


Old description:

> On Linux Itanium (ia64) systems, sympow builds with gcc 4.6.0 but fails
> doctests.
> Example from cleo (RHEL 5.3 ia64 Itanium 2):
> {{{
> sage -t -long  -force_lib devel/sage/sage/lfunctions/sympow.py
> **********************************************************************
> File
> "/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/devel
> /sage-main/sage/lfunctions/sympow.py", line 213:
>     sage: sympow.modular_degree(EllipticCurve('11a'))
> Exception raised:
>     Traceback (most recent call last):
>       File
> "/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/local/bin/ncadoctest.py",
> line 1231, in run_one_test
>         self.run_one_example(test, example, filename, compileflags)
>       File
> "/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/local/bin/sagedoctest.py",
> line 38, in run_one_example
>         OrigDocTestRunner.run_one_example(self, test, example, filename,
> compileflags)
>       File
> "/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/local/bin/ncadoctest.py",
> line 1172, in run_one_example
>         compileflags, 1) in test.globs
>       File "<doctest __main__.example_6[2]>", line 1, in <module>
>         sympow.modular_degree(EllipticCurve('11a'))###line 213:
>     sage: sympow.modular_degree(EllipticCurve('11a'))
>       File
> "/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/local/lib/python
> /site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
>         raise RuntimeError, "failed to compute modular degree"
>     RuntimeError: failed to compute modular degree
> **********************************************************************
>
> [...]
>
> The following tests failed:
>
>         sage -t -long  -force_lib
> devel/sage/sage/modular/hecke/submodule.py # 1 doctests failed
>         sage -t -long  -force_lib devel/sage/sage/modular/abvar/abvar.py
> # 1 doctests failed
>         sage -t -long  -force_lib devel/sage/sage/lfunctions/sympow.py #
> 13 doctests failed
>         sage -t -long  -force_lib
> devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py # 17
> doctests failed
> ----------------------------------------------------------------------
> }}}
>
> Starting up the `sympow` executable simply gives
> {{{
> sympow 1.018 RELEASE  (c) Mark Watkins -**ERROR** QD_check failed at x[0]
> }}}
>
> For other issues related to gcc 4.6.0 see #11216

New description:

 On Linux Itanium (ia64) systems, sympow builds with gcc 4.6.0 but fails
 doctests.
 Example from cleo (RHEL 5.3 ia64 Itanium 2):
 {{{
 sage -t -long  -force_lib devel/sage/sage/lfunctions/sympow.py
 **********************************************************************
 File
 "/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/devel
 /sage-main/sage/lfunctions/sympow.py", line 213:
     sage: sympow.modular_degree(EllipticCurve('11a'))
 Exception raised:
     Traceback (most recent call last):
       File
 
"/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 
"/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 
"/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_6[2]>", line 1, in <module>
         sympow.modular_degree(EllipticCurve('11a'))###line 213:
     sage: sympow.modular_degree(EllipticCurve('11a'))
       File
 
"/home/buildbot/build/sage/cleo-1/cleo_full/build/sage-4.7.alpha5/local/lib/python
 /site-packages/sage/lfunctions/sympow.py", line 229, in modular_degree
         raise RuntimeError, "failed to compute modular degree"
     RuntimeError: failed to compute modular degree
 **********************************************************************

 [...]

 The following tests failed:

         sage -t -long  -force_lib
 devel/sage/sage/modular/hecke/submodule.py # 1 doctests failed
         sage -t -long  -force_lib devel/sage/sage/modular/abvar/abvar.py #
 1 doctests failed
         sage -t -long  -force_lib devel/sage/sage/lfunctions/sympow.py #
 13 doctests failed
         sage -t -long  -force_lib
 devel/sage/sage/schemes/elliptic_curves/ell_rational_field.py # 17
 doctests failed
 ----------------------------------------------------------------------
 }}}

 Starting up the `sympow` executable simply gives
 {{{
 sympow 1.018 RELEASE  (c) Mark Watkins -**ERROR** QD_check failed at x[0]
 }}}

 A revised package, which works around the gcc-4.6.0 bug by compiling QD.c
 with -O1 is
 [http://boxen.math.washington.edu/home/mariah/spkg/sympow-1.018.1.p9.spkg]

 For other issues related to gcc 4.6.0 see #11216

--

Comment:

 gcc-4.6.0 optimization regression of src/QD.c reported to gcc bugzilla
 [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48823]

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

Reply via email to