Differences between revisions 13 and 15 (spanning 2 versions)
Revision 13 as of 2010-08-22 13:05:35
Size: 4409
Editor: jdemeyer
Comment:
Revision 15 as of 2010-08-24 19:47:58
Size: 4721
Editor: jdemeyer
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
 * PARI spkg: http://sage.math.washington.edu/home/jdemeyer/spkg/pari-2.4.3.svn-12577.p3.spkg  * PARI spkg: http://sage.math.washington.edu/home/jdemeyer/spkg/pari-2.4.3.svn-12577.p4.spkg
Line 19: Line 19:
 * Download [[http://sage.math.washington.edu/home/jdemeyer/dist/sage-4.6.prealpha2.tar|sage-4.6.prealpha2.tar]], which is a complete Sage distribution based on sage-4.5.3.alpha1. 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.prealpha3.tar|sage-4.6.prealpha3.tar]], which is a complete Sage distribution based on sage-4.5.3.alpha1. Just extract it, and type {{{make}}}. In this file, the following tickets have been merged:
Line 27: Line 27:
   * [[http://trac.sagemath.org/sage_trac/ticket/9703|9703]] (closed): Doctest failures caused by non-working sympow on 32-bit Solaris x86 and 32-bit OpenSolaris
   * [[http://trac.sagemath.org/sage_trac/ticket/9735|9735]] (closed): Numerical noise on sage/stats/hmm/chmm.pyx on both Solaris x86 and OpenSolaris x86
     * The above two tickets have nothing to with PARI, but they should make Sage work 100% on Solaris and OpenSolaris.
Line 30: Line 33:
     env SAGE_CHECK=yes ./sage -f pari-2.4.3.svn-12577.p3.spkg      env SAGE_CHECK=yes ./sage -f pari-2.4.3.svn-12577.p4.spkg
Line 52: Line 55:
 * It doesn't build on Solaris
   * ''jdemeyer'': I will have a look at this once I get a working account on such a machine.

New version of PARI/GP: 2.4.3 svn-12577

Relevant tickets

  • 9343: PARI upgrade

  • 9591: genus2reduction

  • 9592: lcalc (see also 9775 for a later version of lcalc)

  • 9722: PARI/GP build error on Fedora 13

Files

If you want to upgrade an existing Sage, you need the install 3 spkg's 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.prealpha3.tar, which is a complete Sage distribution based on sage-4.5.3.alpha1. Just extract it, and type make. In this file, the following tickets have been merged:

    • 9343 (needs_work): PARI upgrade

    • 9591 (needs_review): genus2reduction

    • 9592 (needs_review): lcalc

    • 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.

    • 9703 (closed): Doctest failures caused by non-working sympow on 32-bit Solaris x86 and 32-bit OpenSolaris

    • 9735 (closed): Numerical noise on sage/stats/hmm/chmm.pyx on both Solaris x86 and OpenSolaris x86

      • The above two tickets have nothing to with PARI, but they should make Sage work 100% on Solaris and OpenSolaris.

  • The main issue seems to be making sure it actually compiles.

    • Once it compiles, you can run the PARI/GP test suite by doing

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

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.p3.spkg and then type the following in a shell:

tar xjf pari-2.4.3.svn-12577.p3.spkg
cd pari-2.4.3.svn-12577.p3/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