Hello all,
(sorry for top-posting, it seems to be prevalent here..)
For the record, I'm doing this under cygwin. My gcc --version is cc
(GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125).
I'm having problems as well. Did perl -MCPAN -e shell and install
Math::Pari. The libpari.a build was successful but the Pari.xs in the
downloaded .tar.gz is faulty. I'll include last few lines from the
process:
gcc -c -I ../../../../pari-2.3.0/src -I../../../../pari-
2.3.0/src/headers -I../../../../pari-2.3.0/src/graph -I. -
DPERL_USE_SAFE_PU
TENV -fno-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -
O3 -DVERSION=\"\" -DXS_VERSION=\"\" -Derr=pari_err -DASMINLI
NE -DGCC_INLINE -DDYNAMIC_PLOTTING -o mpinl.o ../../../../pari-
2.3.0/src/kernel/none/mpinl.c
rm -f libPARI.a
ar cr libPARI.a es.o base5.o Flx.o bibli1.o buch2.o init.o gen1.o
galconj.o trans3.o intnum.o RgX.o buch4.o sumiter.o polarit2.o ge
n3.o Qfb.o alglin2.o stark.o errmsg.o default.o arith1.o buch1.o
nffactor.o galois.o subfield.o perm.o gen2.o highlvl.o arith2.o pol
arit1.o subcyclo.o subgroup.o elldata.o alglin1.o base2.o polarit3.o
ifactor1.o groupid.o plotport.o base1.o bibli2.o trans2.o trans
1.o kummer.o buch3.o part.o plotnull.o elliptic.o mpqs.o thue.o
members.o base4.o aprcl.o anal.o rootpol.o compat.o base3.o mp.o mpi
nl.o
: libPARI.a
make[1]: Leaving directory `/home/dogo/.cpan/build/Math-Pari-
2.010706/libPARI'
make[1]: Entering directory `/home/dogo/.cpan/build/Math-Pari-
2.010706/libPARI'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/dogo/.cpan/build/Math-Pari-
2.010706/libPARI'
/usr/bin/perl.exe /usr/lib/perl5/5.8/ExtUtils/xsubpp -
typemap /usr/lib/perl5/5.8/ExtUtils/typemap -typemap typemap Pari.xs
Show quoted text> Pari.xsc && mv Pari.xsc Pari.c
gcc -c -I ../../../pari-2.3.0/src -I../../../pari-2.3.0/src/headers -
I../../../pari-2.3.0/src -I./libPARI -DPERL_USE_SAFE_PUTENV -f
no-strict-aliasing -pipe -I/usr/local/include -DUSEIMPORTLIB -O3 -
DVERSION=\"2.010706\" -DXS_VERSION=\"2.010706\" "-I/usr/lib/per
l5/5.8/cygwin/CORE" -DPARI_VERSION_EXP=2003000 -DDEBUG_PARI -
DLSB_in_U32=0 -DLONG_SHORTER_THAN_IV -Derr=pari_err -DGCC_INLINE -DHAV
E_PARIPRIV -DNO_GRAPHICS_PARI Pari.c
Pari.xs: In function `findVariable':
Pari.xs:422: warning: cast to pointer from integer of different size
Pari.xs:438: warning: cast to pointer from integer of different size
Pari.xs:661:4: #error "LONG_SHORTER_THAN_IV not implemented"
Pari.xs: In function `my_UVtoi':
Pari.xs:667: error: parse error before ';' token
Pari.xs: In function `sv2pari':
Pari.xs:707: warning: cast to pointer from integer of different size
Pari.xs:713: warning: cast to pointer from integer of different size
Pari.xs: In function `resetSVpari':
Pari.xs:1093: warning: cast from pointer to integer of different size
Pari.xs: In function `moveoffstack_newer_than':
Pari.xs:1189: warning: cast to pointer from integer of different size
Pari.xs:1189: warning: cast from pointer to integer of different size
Pari.xs: In function `XS_Math__Pari_DESTROY':
Pari.xs:3770: warning: cast to pointer from integer of different size
make: *** [Pari.o] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Failed during this command:
ILYAZ/modules/Math-Pari-2.010706.tar.gz : make NO
I downloaded from
http://search.cpan.org/CPAN/authors/id/I/IL/ILYAZ/modules/Math-Pari-
2.010706.tar.gz and checked that the Pari.xs file has different number
of opening/closing parenthesises. Anyone can fix the line 667, but
tracing the GEN definition leads to file 'typemap' and typemap
shows 'GEN T_Pari' and either $var = sv2pari($arg) or setSVpari
($arg, $var, oldavma);. I have no clue what the casts should actually
be, so my road ends there.
Show quoted text> -----Original Message-----
> From: Ilya Zakharevich via RT [mailto:bug-Math-Pari@rt.cpan.org]
> Sent: Wednesday, May 31, 2006 5:05 PM
> To: James J. Perry
> Subject: Re: [rt.cpan.org #19621] Failure to compile with
automatically
Show quoted text> downloaded Pari version 2.3.0
>
>
> <URL:
http://rt.cpan.org/Ticket/Display.html?id=19621 >
>
> On Wed, May 31, 2006 at 01:55:00PM -0400, Guest via RT wrote:
> >
> > Wed May 31 13:54:59 2006: Request 19621 was acted upon.
> > Transaction: Ticket created by guest
> > Queue: Math-Pari
> > Subject: Failure to compile with automatically downloaded Pari
> version 2.3.0
> > Broken in: 2.010705
> > Severity: Critical
> > Owner: Nobody
> > Requestors: jjperry@water.com
> > Status: new
> > Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=19621 >
> >
> >
> > When doing both CPAN and manual installations of the Math::Pari
module
Show quoted text> > it failed with the error "Make: Don't know how to make
> > ../../../pari-2.3.0/src/kernel/none/level0.h. Stop." From reading
> the
> > README file I see that 2.010705 was last tested with version 2.1.7
of
Show quoted text> > Pari but the automatic CPAN and Perl scripts download Pari-2.3.0
from
Show quoted text> > ftp://megrez.math.u-bordeaux.fr/pub/pari.
> >
> > Downloading of Pari-2.1.7 resolved the compilation issue but all
> > versions tested via a CPAN install failed on multiple hosts OS. I
> > tested HP-UX 11.0, 11.11, RedHat Linux EL4 WS, and Fedora Core.
> >
> > Pari-2.3.0 was updated on May 15, 2006.
>
> Math::Pari was updated on May 30.
>
> Hope this helps,
> Ilya
>
>
Best regards,
--
Mikko Rantanen