Subject: | make test fails on 5.10 |
I am using the patch provided at http://perlmonks.org/?node_id=672924 to
get Math::Pari running on 5.10.
On 5.10 (and blead, patchlevel 33445) Math::Pari fails its test suite
strangely:
$ /opt/perl-5.10.0/bin/perl5.10.0 Makefile.PL
...
$ make
...
$ make test
cd libPARI && make LIBPERL_A="libperl.a" LINKTYPE="dynamic"
OPTIMIZE="-O2" PREFIX="/opt/perl-5.10.0" PASTHRU_DEFINE="" PASTHRU_INC=""
make[1]: Entering directory
`/home/fw/.cpan/build/Math-Pari-2.010709-ahtbDo/libPARI'
make[1]: Leaving directory
`/home/fw/.cpan/build/Math-Pari-2.010709-ahtbDo/libPARI'
make[1]: Entering directory
`/home/fw/.cpan/build/Math-Pari-2.010709-ahtbDo/libPARI'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/home/fw/.cpan/build/Math-Pari-2.010709-ahtbDo/libPARI'
PERL_DL_NONLAZY=1 /opt/perl-5.10.0/bin/perl5.10.0
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/00_Pari..........ok
t/55_analyz........ok
t/55_elliptic......ok
t/55_graph.........# Can't locate Term/Gnuplot.pm in @INC, ignoring plotting
t/55_graph.........ok
t/55_linear........ok
t/55_nfields.......1/161 PARI: *** Warning: insufficient precision
for fundamental units, not given.
t/55_nfields.......122/161 PARI: *** Warning: not a fundamental
discriminant in quadclassunit.
t/55_nfields.......ok
t/55_number........ok
t/55_objets........ All 62 subtests passed
t/55_ploth.........# Can't locate Term/Gnuplot.pm in @INC, ignoring plotting
t/55_ploth.........ok
t/55_polyser.......ok
t/55_program.......ok
t/55_sumiter.......ok
t/55_trans.........ok
t/PlotRect.........# Can't locate Term/Gnuplot.pm in @INC, ignoring the test
t/PlotRect.........skipped: Can't locate Term/Gnuplot.pm in @INC
t/zz_leak..........ok
Test Summary Report
-------------------
Files=15, Tests=1245, 7 wallclock secs ( 0.26 usr 0.02 sys + 7.01
cusr 0.09 csys = 7.38 CPU)
Result: FAIL
Failed 1/15 test programs. 0/1245 subtests failed.
make: *** [test_dynamic] Error 255
Please note that there are no failing subtests. I reduced the problem
down to t/55_objets.t with the following pari-2.1.7/src/test/32/objets:
realprecision = 38 significant digits
echo = 1 (on)
? truncate(1.7,&e)
1
? \p57
realprecision = 57 significant digits
? length(divisors(1000))
16
? \q
Now we run the test by hand:
$ PERL_DL_NONLAZY=1 /opt/perl-5.10.0/bin/perl5.10.0
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/55_objets.t
t/55_objets...... All 3 subtests passed
Test Summary Report
-------------------
Files=1, Tests=3, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.05 cusr
0.00 csys = 0.06 CPU)
Result: FAIL
Failed 1/1 test programs. 0/3 subtests failed.
I got the same behaviour using bleadperl (33445). Maybe it's not even a
bug in Math::Pari.
Some versions:
Test::Harness (3.10)
ExtUtils::MakeMaker (6.44)
$ /opt/perl-5.10.0/bin/perl5.10.0 -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.22-14-generic, archname=i686-linux
uname='linux hal 2.6.22-14-generic #1 smp tue feb 12 07:42:25 utc
2008 i686 gnulinux '
config_args='-de -Dusedevel -Dprefix=/opt/perl-5.10.0/ -Dmad'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.6.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.6.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MAD PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Mar 9 2008 09:08:23
@INC:
/opt/perl-5.10.0/lib/5.10.0/i686-linux
/opt/perl-5.10.0/lib/5.10.0
/opt/perl-5.10.0/lib/site_perl/5.10.0/i686-linux
/opt/perl-5.10.0/lib/site_perl/5.10.0