Differences between revisions 30 and 37 (spanning 7 versions)
Revision 30 as of 2010-09-06 16:38:58
Size: 4765
Editor: jdemeyer
Comment:
Revision 37 as of 2010-09-07 08:37:00
Size: 4800
Editor: jdemeyer
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
 * [[http://trac.sagemath.org/sage_trac/ticket/9722|9722]]: PARI/GP build error on Fedora 13 (Merged into Sage 4.5.3.alpha2. I'm currently porting the changes to the PARI 2.4.3.svn-12577.p4 spkg. -Leif)
Line 9: Line 8:
 * [[http://trac.sagemath.org/sage_trac/ticket/9860|9860]]: Port changes in PARI 2.3.5.p4 (#9722) to current 2.4.3  * [[http://trac.sagemath.org/sage_trac/ticket/9860|9860]]: Port changes in PARI 2.3.5.p4 ([[http://trac.sagemath.org/sage_trac/ticket/9722|#9722]]) to current 2.4.3
Line 22: Line 21:
'''!!! Wait until the new prealpha is ready !!!'''.
* Download [[http://sage.math.washington.edu/home/jdemeyer/dist/sage-4.6.prealpha4.tar|sage-4.6.prealpha4.tar]], which is a complete Sage distribution based on sage-4.5.3.rc0. Just extract it, and type {{{make}}}. In this file, the following tickets have been merged:
 * Download [[http://sage.math.washington.edu/home/jdemeyer/dist/sage-4.6.prealpha4.tar|sage-4.6.prealpha4.tar]], which is a complete Sage distribution based on [[http://sage.math.washington.edu/home/release/sage-4.5.3.rc0/|sage-4.5.3.rc0]]. Just extract it, and type {{{make}}}. In this file, the following tickets have been merged:
Line 33: Line 31:
 * The main issue seems to be making sure it actually '''compiles'''.
   * Once
it compiles, you can run the '''PARI/GP test suite''' by doing
 * If it compiles, you can run the '''PARI/GP test suite''' and '''test tuning''' by doing
Line 36: Line 33:
     env SAGE_CHECK=yes ./sage -f pari-2.4.3.svn-12577.p5.spkg      env SAGE_CHECK=yes SAGE_TUNE_pari=yes ./sage -f pari-2.4.3.svn-12577.p5.spkg
Line 39: Line 36:
   * [[http://trac.sagemath.org/sage_trac/attachment/ticket/9343/pari_spkg.patch|PARI]]    * PARI: [[http://trac.sagemath.org/sage_trac/attachment/ticket/9343/pari_spkg.patch|part 1]], [[http://trac.sagemath.org/sage_trac/attachment/ticket/9860/trac_9860-pari-2.4.3.svn-12577.p4-p5.spkg.patch|part 2]], [[http://trac.sagemath.org/sage_trac/attachment/ticket/9860/pari.p5.patch|part 3]]

New version of PARI/GP: 2.4.3 svn-12577

Relevant tickets

  • 9343: PARI upgrade

  • 9591: genus2reduction

  • 9592: lcalc (see also #9845 for a later lcalc spkg based on this one)

  • 9756: Document SAGE_TUNE_pari in the Sage Installation Guide

  • 9860: Port changes in PARI 2.3.5.p4 (#9722) to current 2.4.3

Files

If you want to upgrade an existing Sage, you have to install 3 spkgs and apply 2 patches. Do this in order as in the list below. In particular, the genus2reduction spkg will not install without the new PARI spkg.

For reviewers

  • Download sage-4.6.prealpha4.tar, which is a complete Sage distribution based on sage-4.5.3.rc0. Just extract it, and type make. In this file, the following tickets have been merged:

    • 9343 (needs_review): PARI upgrade

    • 9860 (needs_review): Port changes in PARI 2.3.5.p4 (#9722) to current 2.4.3

    • 9591 (positive_review): genus2reduction

    • 9592 (needs_review): lcalc

    • 9845 (needs_review): lcalc doesn't build on cygwin due to missing time.h include

    • 9750 (positive_review): Document that PARI no longer assumes more than GRH.

    • 9636 (needs_review): Catch output from PARI in Sage.

    • 9400 (needs_review): Modify the NumberField constructor to pass in optional integer B such that all the internal PARI routines will replace the discriminant by its gcd with B, making some things massively faster.

      • This ticket is not strictly related to the PARI upgrade, but it changes a lot of code using PARI. It also fixes an issue with nfinit() and wraps some additional functions in sage/libs/pari/gen.pyx.

  • If it compiles, you can run the PARI/GP test suite and test tuning by doing

    •      env SAGE_CHECK=yes SAGE_TUNE_pari=yes ./sage -f pari-2.4.3.svn-12577.p5.spkg
  • For reference, these are the patches for the spkgs:

Debugging PARI/GP build errors

If the new PARI spkg doesn't build, you should try building PARI/GP stand-alone (i.e. outside of Sage). You should download pari-2.4.3.svn-12577.p4.spkg and then type the following in a shell:

tar xjf pari-2.4.3.svn-12577.p4.spkg
cd pari-2.4.3.svn-12577.p4/src
./Configure --graphic=none
make gp

If this works, there is a bug in Sage's build process for PARI/GP. If this gives errors, this indicates an upstream issue with PARI/GP. In any case, any errors should be reported on the Sage trac.

Known issues

  • None :-)