solved finally (was Re: [ph-perl] any successfull installati…

Top Page
Author: Sherwin Daganato
To: ph-perl
Old-Topics: Re: [ph-perl] any successfull installation of Math::Pari?
Subject: solved finally (was Re: [ph-perl] any successfull installation of Math::Pari?)
On Wed, Apr 03, 2002 at 09:11:26PM +0800, Sherwin Daganato wrote:
>In ML 7.2 + perl-5.600-17mdk + gcc-2.95.2-12mdk,
>'perl Makefile.PL && make' went fine except for 'make test'.
>'make test' died with this error:
># -----
># make test
># -----
>t/nfields...........ok 23/161PARI:   ***   Warning: insufficient
>precision for fundamental units, not given.
>t/nfields...........ok 156/161PARI:   ***   Warning: not a fundamental
>discriminant in quadclassunit.
>t/nfields...........ok 161/161FAILED test 21
>        Failed 1/161 tests, 99.38% okay (-3 skipped tests: 157 okay,
>t/number............ok, 3/83 skipped: various reasons
>t/trans.............ok, 4/62 skipped: various reasons
>Failed Test  Status Wstat Total Fail  Failed  List of failed
>t/nfields.t                 161    1   0.62%  21
>1 test and 63 subtests skipped.
>Failed 1/14 test scripts, 92.86% okay. 1/804 subtests failed, 99.88%
>make: *** [test_dynamic] Error 29

Solved by stripping out -ffast-math from compile flags.

eval `perl -V:optimize`
optimize=`echo $optimize | sed -e "s/-ffast-math//"`
perl Makefile.PL
make OPTIMIZE="$optimize"
make test
make install

>In ML 8.1 + perl-5.601-6mdk + gcc-2.96-0.63.1mdk _or_
>building Math::Pari (i.e. perl Makefile.PL && make) _dies_ with this
># -----
># make
># -----
>cc -c -I../../pari-2.1.3/src/headers -I../../pari-2.1.3/src/graph -I.
>-fno-strict-aliasing -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro
>-march=i586 -ffast-math -fno-strength-reduce -DVERSION=\"0.10\"
>-DXS_VERSION=\"0.10\" -fPIC -Derr=pari_err -DASMINLINE
>-DDYNAMIC_PLOTTING -o mp.o ../../pari-2.1.3/src/kernel/none/mp.c
>{standard input}: Assembler messages:
>{standard input}:6269: Error: suffix or operands invalid for `div'
>make[1]: *** [mp.o] Error 1
>make[1]: Leaving directory
>make: *** [libPARI/libPARI.a] Error 2

This was solved by the author (Ilya Zakharevich).

$_=q:; # SHERWIN #
?=pack q$C$,hex$1;
ph-perl mailing list