develooper Front page | perl.perl5.porters | Postings from March 2021

sprintf on HP-UX and AIX

Thread Next
From:
H.Merijn Brand
Date:
March 3, 2021 12:23
Subject:
sprintf on HP-UX and AIX
Message ID:
20210303132246.6254373f@pc09.procura.nl
I see that my current smokes for HP-UX and AIX both have a consistent
fail on op/sprintf2

On AIX 5.3.0.0/TL12-05  IBM,9115-505 PowerPC_POWER5/1898(2):

This is perl 5, version 33, subversion 8 (v5.33.8 (5f41fa466a67b5535aa8bcf4b814f242545ac7bd)) built for aix-thread-multi

op/sprintf2.t .. 1431/? # Failed test 1701 - sprintf( "%.54g", 0.3 ) renders correctly at op/sprintf2.t line 1197
#      got "0.29999999999999999"
# expected eq "0.299999999999999988897769753748434595763683319091796875"
op/sprintf2.t .. Failed 1/1701 subtests
        (less 98 skipped subtests: 1602 okay)

Test Summary Report
-------------------
op/sprintf2.t (Wstat: 0 Tests: 1701 Failed: 1)
  Failed test:  1701
Files=1, Tests=1701,  2 wallclock secs ( 0.23 usr  0.00 sys +  0.31 cusr  0.37 csys =  0.91 CPU)
Result: FAIL


On HP-UX 11.31/64 U  ia64 hp Integrity rx2800 i2/64 Itanium(R) 9320/1361(4) ia64:

This is perl 5, version 33, subversion 8 (v5.33.8 (5f41fa466a67b5535aa8bcf4b814f242545ac7bd)) built for IA64.ARCHREV_0-thread-multi

op/sprintf2.t .. 1401/? # Failed test 1701 - sprintf( "%.54g", 0.3 ) renders correctly at op/sprintf2.t line 1197
#      got "0.299999999999999988897769753748434596"
# expected eq "0.299999999999999988897769753748434595763683319091796875"
op/sprintf2.t .. Failed 1/1701 subtests
        (less 98 skipped subtests: 1602 okay)


t$ ./perl -I../lib -V:.*size.*
charsize='1';
d_chsize='undef';
d_malloc_good_size='undef';
d_malloc_size='undef';
d_malloc_usable_size='define';
doublesize='8';
fpossize='8';
gidsize='4';
i16size='2';
i32size='4';
i64size='8';
i8size='1';
intsize='4';
ivsize='4';
longdblsize='16';
longlongsize='8';
longsize='4';
lseeksize='8';
nvsize='8';
ptrsize='4';
shortsize='2';
sig_size='49';
sizesize='4';
sizetype='size_t';
socksizetype='int';
ssizetype='ssize_t';
st_ino_size='4';
u16size='2';
u32size='4';
u64size='8';
u8size='1';
uidsize='4';
uvsize='4';

Summary of my perl5 (revision 5 version 33 subversion 8) configuration:
  Snapshot of: -0700
  Platform:
    osname=hpux
    osvers=11.31
    archname=IA64.ARCHREV_0-thread-multi
    uname='hp-ux x2 b.11.31 u ia64 1894272509 unlimited-user license '
    config_args='-des -Dusedevel -Duseithreads -DDEBUGGING'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=undef
    use64bitall=undef
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
  Compiler:
    cc='cc'
    ccflags =' -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -Wp,-H150000 -DDEBUGGING +Z -z -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DDEBUGGING -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 '
    optimize='+O2 +Onolimit -g'
    cppflags='-Aa -D__STDC_EXT__ -DDEBUGGING +Z -z -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -Wp,-H150000 -DDEBUGGING +Z -z -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DDEBUGGING -I/pro/local/include'
    ccversion='B3910B A.06.28.02'
    gccversion=''
    gccosandvers=''
    intsize=4
    longsize=4
    ptrsize=4
    doublesize=8
    byteorder=4321
    doublekind=4
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=2
    ivtype='long'
    ivsize=4
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='/usr/bin/ld'
    ldflags ='-L/pro/local/lib -L/usr/lib/hpux32'
    libpth=/pro/local/lib /usr/lib/hpux32 /lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lcl -lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lsec -lc
    perllibs=-lcl -lpthread -lnsl -ldl -lm -lsec -lc
    libc=/usr/lib/hpux32/libc.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_hpux.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+Z'
    lddlflags='-b +vnocompatwarnings -L/pro/local/lib -L/usr/lib/hpux32'


Characteristics of this binary (from libperl):
  Compile-time options:
    DEBUGGING
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_TRACK_MEMPOOL
    PERL_USE_DEVEL
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under hpux
  Compiled at Mar  3 2021 12:51:46
  @INC:
    ../lib
    /pro/lib/perl5/site_perl/5.33.8/IA64.ARCHREV_0-thread-multi
    /pro/lib/perl5/site_perl/5.33.8
    /pro/lib/perl5/5.33.8/IA64.ARCHREV_0-thread-multi
    /pro/lib/perl5/5.33.8


-- 
H.Merijn Brand  https://tux.nl   Perl Monger   http://amsterdam.pm.org/
using perl5.00307 .. 5.33        porting perl5 on HP-UX, AIX, and Linux
https://tux.nl/email.html http://qa.perl.org https://www.test-smoke.org
                           

Thread Next


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