Ticket #4794 (closed defect: duplicate)
[with spkg, needs work] Update pari to 2.4.3-svn
| Reported by: | mabshoff | Owned by: | mabshoff |
|---|---|---|---|
| Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
| Component: | packages: standard | Keywords: | |
| Cc: | ncalexan, boothby, craigcitro | Work issues: | |
| Report Upstream: | N/A | Reviewers: | |
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
Change History
comment:1 Changed 4 years ago by mabshoff
- Summary changed from Update pari to 2.3.4svb to Update pari to 2.3.4svn
comment:2 Changed 4 years ago by mabshoff
- Cc ncalexan, boothby, craigcitro added
- Status changed from new to assigned
- Milestone changed from sage-3.4.1 to sage-3.4
Ok, due to various people like Nick and Tom running into numerous problems with the current pari we will update this in Sage 3.4. This will require changes on top of the ReST patches.
I should post an spkg in the next 24 hours.
Cheers,
Michael
comment:3 Changed 4 years ago by mabshoff
- Summary changed from Update pari to 2.3.4svn to [with spkg, needs work] Update pari to 2.3.4svn
- Milestone changed from sage-3.4 to sage-3.4.1
The spkg at
http://sage.math.washington.edu/home/mabshoff/spkgs/pari-2.4.3-svn11590.spkg
contains today's development snapshot. Unfortunately gen.pyx does not build at the moment:
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/local//include -I/scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/local//include/csage -I/scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/devel//sage/sage/ext -I/scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/local/include/python2.5 -c sage/libs/pari/gen.c -o build/temp.linux-x86_64-2.5/sage/libs/pari/gen.o -w sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_3gen___hex__’: sage/libs/pari/gen.c:7100: error: ‘BYTES_IN_LONG’ undeclared (first use in this function) sage/libs/pari/gen.c:7100: error: (Each undeclared identifier is reported only once sage/libs/pari/gen.c:7100: error: for each function it appears in.) sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_3gen_idealred’: sage/libs/pari/gen.c:21573: error: too many arguments to function ‘idealred0’ sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_3gen_idealmul’: sage/libs/pari/gen.c:22203: error: too many arguments to function ‘idealmulred’ sage/libs/pari/gen.c:23069:361: error: macro "nfdiscf0" passed 3 arguments, but takes just 1 sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_3gen_nfdisc’: sage/libs/pari/gen.c:23069: error: ‘nfdiscf0’ undeclared (first use in this function) sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_3gen_qflll’: sage/libs/pari/gen.c:27453: error: too many arguments to function ‘qflll0’ sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_3gen_qflllgram’: sage/libs/pari/gen.c:27554: error: too many arguments to function ‘qflllgram0’ sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_3gen_algdep’: sage/libs/pari/gen.c:30284: error: too many arguments to function ‘algdep0’ sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_3gen_lindep’: sage/libs/pari/gen.c:30417: error: too many arguments to function ‘lindep0’ sage/libs/pari/gen.c: In function ‘__pyx_pf_4sage_4libs_4pari_3gen_12PariInstance_listcreate’: sage/libs/pari/gen.c:35975: error: too many arguments to function ‘listcreate’ sage/libs/pari/gen.c: In function ‘__pyx_f_4sage_4libs_4pari_3gen_fix_size’: sage/libs/pari/gen.c:37409: error: ‘BYTES_IN_LONG’ undeclared (first use in this function) error: command 'gcc' failed with exit status 1 sage: There was an error installing modified sage library code.
Ironically the doctests for gen.pyx pass:
mabshoff@sage:/scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special$ ./sage -t devel/sage/sage/libs/pari/gen.pyx sage -t "devel/sage/sage/libs/pari/gen.pyx" [2.4 s] ---------------------------------------------------------------------- All tests passed! Total time for all tests: 2.4 seconds
And we are linking against the correct development snapshot:
sage-3.3.alpha6-pari2.4.3-special$ ldd devel/sage/build/sage/libs/pari/gen.so linux-vdso.so.1 => (0x00007fff01ffe000) libcsage.so => /scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/local/lib/libcsage.so (0x00007f4af99f2000) libpari-gmp.so.2 => /scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/local/lib/libpari-gmp.so.2 (0x00007f4af94ad000) libgmp.so.3 => /scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/local/lib/libgmp.so.3 (0x00007f4af925c000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f4af8f40000) libntl-5.4.2.so => /scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/local/lib/libntl-5.4.2.so (0x00007f4af8b61000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f4af8945000) libc.so.6 => /lib/libc.so.6 (0x00007f4af85e3000) libpari-gmp-2.4.so.3 => /scratch/mabshoff/gp/sage-3.3.alpha6-pari2.4.3-special/local/lib/libpari-gmp-2.4.so.3 (0x00007f4af7f62000) libm.so.6 => /lib/libm.so.6 (0x00007f4af7ce1000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f4af7ad3000) libdl.so.2 => /lib/libdl.so.2 (0x00007f4af78ce000) /lib64/ld-linux-x86-64.so.2 (0x00007f4af9ece000)
comment:4 Changed 4 years ago by mabshoff
Remember to turn on relative number field in the ring tester once this spkg has made it - see #4779.
Cheers,
Michael
comment:5 Changed 4 years ago by cremona
What's the latest on this? We have code which uses the pari library and will not work until a pari bug fix (in their current svn) is in Sage too.
Isn't Alex Ghitza working on this? He is not on the CC list for this ticket though.
comment:6 Changed 3 years ago by jdemeyer
- Report Upstream set to N/A
- Milestone changed from sage-4.5.2 to sage-duplicate/invalid/wontfix
See #9343 instead.
comment:7 Changed 3 years ago by jdemeyer
- Status changed from needs_work to positive_review
Please close this ticket
