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

Top Page
Author: Sherwin Daganato
Date:  
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
># -----
>
><Output>
>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,
>97.52%)
>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%
>okay.
>make: *** [test_dynamic] Error 29
></Output>


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

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_
>gcc3.0-3.0.1-1.1mdk,
>building Math::Pari (i.e. perl Makefile.PL && make) _dies_ with this
>error:
>
># -----
># make
># -----
>
><Output>
>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
>`/home/sherwin/tmp/Math-Pari-2.010303/libPARI'
>make: *** [libPARI/libPARI.a] Error 2
></Output>


This was solved by the author (Ilya Zakharevich).

http://www.parigp-home.de/lists/200204/01aab
http://www.parigp-home.de/lists/200204/08aab

--
$_=q:; # SHERWIN #
70;72;69;6e;74;20;
27;4a;75;73;74;20;
61;6e;6f;74;68;65;
72;20;50;65;72;6c;
20;6e;6f;76;69;63;
65;27;:;;s=~?(..);
?=pack q$C$,hex$1;
;;;=egg;;;;eval;;;
_______________________________________________
ph-perl mailing list
ph-perl@???
http://lists.q-linux.com/mailman/listinfo/ph-perl