develooper Front page | perl.perl5.porters | Postings from October 2003

[perl #24091] Not OK: perl v5.8.1 on sgi6-irix-ld 6.5

From:
perlbug-followup
Date:
October 4, 2003 11:08
Subject:
[perl #24091] Not OK: perl v5.8.1 on sgi6-irix-ld 6.5
Message ID:
rt-24091-65573.11.3042945319735@rt.perl.org
# New Ticket Created by  jpl@research.att.com 
# Please include the string:  [perl #24091]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24091 >



This is a build failure report for perl from jpl@research.att.com,
generated with the help of perlbug 1.34 running under perl v5.8.1.


-----------------------------------------------------------------
[Please enter your report here]

stable 5.8.1 fails 5 tests on SGI box with -Duselongdouble.

t/op/pow.............................
# Failed at op/pow.t line 69
#      got '387420489'
# expected '387420489' (within '0')
# 387420489 - 387420489 = -3.30872245021211069948563476828e-24
# Failed at op/pow.t line 69
#      got '2541865828329'
# expected '2541865828329' (within '0')
# 2541865828329 - 2541865828329 = -2.710505431213761085018632002175e-20
# Failed at op/pow.t line 69
#      got '22876792454961'
# expected '22876792454961' (within '0')
# 22876792454961 - 22876792454961 = 2.16840434497100886801490560174e-19
FAILED at test 225

lib/Math/BigInt/t/bare_mbi...........
# Test 2140 got: '1' (../lib/Math/BigInt/t//bigintpm.inc at line 194 fail #1177)
#      Expected: '2'
FAILED at test 2140

lib/Math/BigInt/t/bigintc............
# Test 151 got: '2' (../lib/Math/BigInt/t/bigintc.t at line 205)
#     Expected: '3'
#  ../lib/Math/BigInt/t/bigintc.t line 205 is: ok (${$C->_str($C->_root($x,$n))},'3');
FAILED at test 151

lib/Math/BigInt/t/bigintpm...........
# Test 2080 got: '2' (../lib/Math/BigInt/t//bigintpm.inc at line 194 fail #1147)
#      Expected: '3'
FAILED at test 2080

lib/Math/BigInt/t/sub_mbi............
# Test 2080 got: '2' (../lib/Math/BigInt/t//bigintpm.inc at line 194 fail #1147)
#      Expected: '3'
FAILED at test 2080

Failed 5 test scripts out of 766, 99.35% okay.

==========

The pow.t tests are somewhat surprising to me,
knowing as little as I do about floating point.
As the snippet below shows, the results are spot
on for 17 through 27 *except* for 18 and 26 (for
which they are very, very close to correct).

ok 224 - -3 ** 17 got[-129140163] expect[-129140163]
not ok 225 - -3 ** 18 got[387420489] expect[387420489]
# Failed at t/op/pow.t line 69
#      got '387420489'
# expected '387420489' (within '0')
# 387420489 - 387420489 = -3.30872245021211069948563476828e-24
ok 226 - -3 ** 19 got[-1162261467] expect[-1162261467]
ok 227 - -3 ** 20 got[3486784401] expect[3486784401]
ok 228 - -3 ** 21 got[-10460353203] expect[-10460353203]
ok 229 - -3 ** 22 got[31381059609] expect[31381059609]
ok 230 - -3 ** 23 got[-94143178827] expect[-94143178827]
ok 231 - -3 ** 24 got[282429536481] expect[282429536481]
ok 232 - -3 ** 25 got[-847288609443] expect[-847288609443]
not ok 233 - -3 ** 26 got[2541865828329] expect[2541865828329]
# Failed at t/op/pow.t line 69
#      got '2541865828329'
# expected '2541865828329' (within '0')
# 2541865828329 - 2541865828329 = -2.710505431213761085018632002175e-20
ok 234 - -3 ** 27 got[-7625597484987] expect[-7625597484987]

If it's of any help, adding -Dusemorebits does *not* help,
you get exactly the same errors.  Without the uselongdouble,
the builds are flawless, with or without usemorebits.  -- jpl

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=install
    severity=none
---
Site configuration information for perl v5.8.1:

Configured by jpl at Thu Oct  2 06:37:45 EDT 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
  Platform:
    osname=irix, osvers=6.5, archname=sgi6-irix-ld
    uname='irix64 ent 6.5 07121148 ip27 '
    config_args='-Duselongdouble'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=define
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc -n32', ccflags ='-D_BSD_TYPES -D_BSD_TIME -woff 1184,1552 -DHAS_LDBL_SPRINTF_BUG -I/usr/local/include -DLANGUAGE_C',
    optimize='-O3 -OPT:Olimit=0:space=ON',
    cppflags='-DHAS_LDBL_SPRINTF_BUG -D_BSD_TYPES -D_BSD_TIME -DHAS_LDBL_SPRINTF_BUG -I/usr/local/include -DLANGUAGE_C'
    ccversion='MIPSpro Compilers: Version 7.3.1.3m', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8
    alignbytes=16, prototype=define
  Linker and Libraries:
    ld='cc -n32', ldflags =' -Wl,-woff,84 -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib32 /lib32 /lib /usr/lib
    libs=-ldb -lm -lc
    perllibs=-lm -lc
    libc=/usr/lib32/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-n32 -shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.1:
    lib
    /usr/local/lib/perl5/5.8.1/sgi6-irix-ld
    /usr/local/lib/perl5/5.8.1
    /usr/local/lib/perl5/site_perl/5.8.1/sgi6-irix-ld
    /usr/local/lib/perl5/site_perl/5.8.1
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.1:
    HOME=/home/jpl
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARYN32_PATH (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/jpl/perl/bin:/usr/common/dwb/bin:/home/jpl/IP27bin:/home/jpl/mips3bin:/home/jpl/bin:/usr/common/bin:/bin:/usr/local/bin:/usr/bin/X11:/etc:/usr/bsd:/usr/sbin:/usr/etc:.:/home/jpl/bzip
    PERLIB=/home/jpl/perl/lib/site_perl
    PERL_BADLANG (unset)
    SHELL=/bin/ksh




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About