#8664: Upgrade Sage's MPIR spkg to version 2.1.3
---------------------------------------------------------------------------------------------------------+
    Reporter:  was                                                              
                         |         Owner:  GeorgSWeber                      
        Type:  enhancement                                                      
                         |        Status:  needs_review                     
    Priority:  major                                                            
                         |     Milestone:  sage-4.7.1                       
   Component:  packages                                                         
                         |    Resolution:                                   
    Keywords:  GMP ECM execstack Fedora 14 extension module library 
dependencies Darwin 11 MacOS X 10.7  |   Work_issues:                           
        
    Upstream:  N/A                                                              
                         |      Reviewer:  Leif Leonhardy, Dmitrii Pasechnik
      Author:  Mike Hansen, Leif Leonhardy                                      
                         |        Merged:                                   
Dependencies:  #5847                                                            
                         |  
---------------------------------------------------------------------------------------------------------+
Changes (by leif):

  * keywords:  GMP ECM execstack Fedora 14 extension module library
               dependencies => GMP ECM execstack Fedora 14
               extension module library dependencies Darwin
               11 MacOS X 10.7
  * status:  needs_work => needs_review
  * work_issues:  Use MPIR's optimized CFLAGS =>


Old description:

> {{{
> Hi,
>
> OK, after all this, the build finally completed.  The only changes I made
> were:
>
> * Updated mpir to rc3
> * patched ecm as explained here:
>     http://lists.gforge.inria.fr/pipermail/ecm-
> discuss/2009-August/004070.html
>    (Though this had to be slightly modified -- just search for the same
> command, which moved.)
>

> I then ran the long Sage test suite, and some tests fail.
>
> http://sage.math.washington.edu/home/wstein/build/mpir2/sage-4.3.5/testlong.log
>
> ----------------------------------------------------------------------
> The following tests failed:
>

>         sage -t  -long "devel/sage/doc/en/tutorial/tour_numtheory.rst"
>         sage -t  -long "devel/sage/doc/fr/tutorial/tour_numtheory.rst"
>         sage -t  -long "devel/sage/sage/modular/cusps.py"
>         sage -t  -long "devel/sage/sage/modular/modsym/boundary.py"
>         sage -t  -long "devel/sage/sage/modular/modsym/ambient.py"
>         sage -t  -long "devel/sage/sage/libs/pari/gen.pyx"
>         sage -t  -long "devel/sage/sage/rings/arith.py"
>         sage -t  -long "devel/sage/sage/rings/integer.pyx"
>         sage -t  -long
> "devel/sage/sage/rings/polynomial/multi_polynomial_ideal.py"
>         sage -t  -long "devel/sage/sage/tests/book_stein_ent.py"
>         sage -t  -long
> "devel/sage/sage/schemes/elliptic_curves/heegner.py"
> Total time for all tests: 7170.6 seconds
>
> --
>
> I looked and it appears that maybe all of these are the result of the
> XGCD behavior in MPIR changing again.  Has it changed to be like GMP now?
> That would be convenient.
>
> william
> }}}
>

> ----
>
> New spkg: [http://spkg-upload.googlecode.com/files/mpir-2.1.3.p1.spkg]
>
> Testing distribution (including #5847):
> [http://sage.math.washington.edu/home/jdemeyer/release/sage-4.6.1.alpha2-mpir/sage-4.6.1.alpha2-mpir.tar]
>
> ----
>
> See comment(s) below on how to ''"manually"'' install and test the new
> packages. (ECM has to be updated, too.)
>
> ----
>
> #9522 can be closed as invalid / duplicate once this ticket has been
> merged.

New description:

 {{{
 Hi,

 OK, after all this, the build finally completed.  The only changes I made
 were:

 * Updated mpir to rc3
 * patched ecm as explained here:
     http://lists.gforge.inria.fr/pipermail/ecm-
 discuss/2009-August/004070.html
    (Though this had to be slightly modified -- just search for the same
 command, which moved.)


 I then ran the long Sage test suite, and some tests fail.

 http://sage.math.washington.edu/home/wstein/build/mpir2/sage-4.3.5/testlong.log

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t  -long "devel/sage/doc/en/tutorial/tour_numtheory.rst"
         sage -t  -long "devel/sage/doc/fr/tutorial/tour_numtheory.rst"
         sage -t  -long "devel/sage/sage/modular/cusps.py"
         sage -t  -long "devel/sage/sage/modular/modsym/boundary.py"
         sage -t  -long "devel/sage/sage/modular/modsym/ambient.py"
         sage -t  -long "devel/sage/sage/libs/pari/gen.pyx"
         sage -t  -long "devel/sage/sage/rings/arith.py"
         sage -t  -long "devel/sage/sage/rings/integer.pyx"
         sage -t  -long
 "devel/sage/sage/rings/polynomial/multi_polynomial_ideal.py"
         sage -t  -long "devel/sage/sage/tests/book_stein_ent.py"
         sage -t  -long
 "devel/sage/sage/schemes/elliptic_curves/heegner.py"
 Total time for all tests: 7170.6 seconds

 --

 I looked and it appears that maybe all of these are the result of the XGCD
 behavior in MPIR changing again.  Has it changed to be like GMP now?  That
 would be convenient.

 william
 }}}


 ----

 '''New spkg: [http://spkg-
 upload.googlecode.com/files/mpir-2.1.3.p4.spkg]'''

 '''md5sum:''' `f84278504f4e1b696030c41cac6e4719  mpir-2.1.3.p4.spkg`

 '''Apply''' [attachment:trac_8664-fix_extmod_deps_for_MPIR_generically-
 sagelib-rebased_to_4.7.1.alpha4.patch] '''to the Sage library''' (after
 installation of the spkgs and a rebuild of dependent packages).

 ----

 See comment(s) below on how to ''"manually"'' install and test the new
 packages. (ECM has to be updated, too, package is at #5847.)

 ----

 #9522 can be closed as invalid / duplicate once this ticket has been
 merged.

--

Comment:

 New spkg is up:

  http://spkg-upload.googlecode.com/files/mpir-2.1.3.p4.spkg

  md5sum: `f84278504f4e1b696030c41cac6e4719  mpir-2.1.3.p4.spkg`

 From a user's view, fixes the "`CFLAGS` issue", adds support for MacOS X
 10.7 and some messages.

 Installation instructions remain the same; I'll perhaps put them into the
 description later.

 ----

 === mpir-2.1.3.p4 (Leif Leonhardy, July 19th, 2011) ===
  * #8664: Upgrade Sage's MPIR spkg to version 2.1.3
  * Do not delete old GMP/MPIR shared libraries as Sage's versions of
 libraries
    used by GCC might still refer to them, such that their deletion would
 break
    GCC inside Sage. (PPL e.g. refers to libgmpxx; MPFR and MPC are equally
    dangerous, since they're [also] used by recent versions of GCC.)
  * Some more messages (e.g on rebuilding the Sage library and other
 packages
    after installation) and comments added.
  * "Patches" section added.
  * Also refreshed the patched gmp-h.in for SunOS. ;-)

 === mpir-2.1.3.p3 (Leif Leonhardy, July 18th, 2011) ===
  * #8664: Upgrade Sage's MPIR spkg to version 2.1.3
  * Support MacOS 10.7 (Darwin 11) and later.
  * Add warning if SAGE_DEBUG=yes since we then disable optimization.

 === mpir-2.1.3.p2 (Leif Leonhardy, November 24th, 2010) ===
  * #8664: Upgrade Sage's MPIR spkg to version 2.1.3
  * Further improvements:
    - Let MPIR select CPU-specific code generation parameters (for CFLAGS)
 even
      if we (also) pass our own (or user-specified) CC and CFLAGS; these
 might
      be used by MPFR and GMP-ECM later, too, since MPIR's settings are
 recorded
      in 'gmp.h' / 'mpir.h'.
      Don't override user-settings (and respect SAGE_FAT_BINARY, SAGE_DEBUG
      etc.) though. Add '-march-native' if appropriate and supported.
   * Recognize also lower-case 'power*' arch (from 'uname -m').
   * Major restructuring / reformatting; more comments and messages added.

 (Changes I made relative to the p1 which already had positive review, but
 got unmerged later.)

 ----

 Further upstream upgrade to MPIR 2.4.0 (or 2.3.1 if more upstream issues
 should arise) will come soon ''on another ticket''. We IMHO first should
 get this well-tested upstream release in.

 Please build, test and review...

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