develooper Front page | perl.perl5.porters | Postings from July 2016

[perl #128598] Quadmath builds fail porting/libperl.t

Thread Previous
From:
Dan Collins
Date:
July 11, 2016 03:12
Subject:
[perl #128598] Quadmath builds fail porting/libperl.t
Message ID:
rt-4.0.18-21668-1468206711-1100.128598-75-0@perl.org
# New Ticket Created by  Dan Collins 
# Please include the string:  [perl #128598]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128598 >


Greetings,

Configuring blead with:

    ./Configure -Dusedevel -des -Dusequadmath

Results in a test failure in libperl.t:

    dcollins@nightshade64:~/perlquad$ ./perl -Ilib -V
    Summary of my perl5 (revision 5 version 25 subversion 3) configuration:
      Commit id: cf549b97af10073cdfe2efa120d97a5b53ecd85c
      Platform:
        osname=linux
        osvers=4.6.0-1-amd64
        archname=x86_64-linux-quadmath
        uname='linux nightshade64 4.6.0-1-amd64 #1 smp debian 4.6.1-1 (2016-06-06) x86_64 gnulinux '
        config_args='-Dusedevel -des -Dusequadmath'
        hint=recommended
        useposix=true
        d_sigaction=define
        useithreads=undef
        usemultiplicity=undef
        use64bitint=define
        use64bitall=define
        uselongdouble=undef
        usemymalloc=n
        bincompat5005=undef
      Compiler:
        cc='cc'
        ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
        optimize='-O2'
        cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
        ccversion=''
        gccversion='5.4.0 20160609'
        gccosandvers=''
        intsize=4
        longsize=8
        ptrsize=8
        doublesize=8
        byteorder=12345678
        doublekind=3
        d_longlong=define
        longlongsize=8
        d_longdbl=define
        longdblsize=16
        longdblkind=3
        ivtype='long'
        ivsize=8
        nvtype='__float128'
        nvsize=16
        Off_t='off_t'
        lseeksize=8
        alignbytes=16
        prototype=define
      Linker and Libraries:
        ld='cc'
        ldflags =' -fstack-protector-strong -L/usr/local/lib'
        libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
        libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -lquadmath
        perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -lquadmath
        libc=libc-2.22.so
        so=so
        useshrplib=false
        libperl=libperl.a
        gnulibc_version='2.22'
      Dynamic Linking:
        dlsrc=dl_dlopen.xs
        dlext=so
        d_dlsymun=undef
        ccdlflags='-Wl,-E'
        cccdlflags='-fPIC'
        lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'


    Characteristics of this binary (from libperl):
      Compile-time options:
        HAS_TIMES
        PERLIO_LAYERS
        PERL_COPY_ON_WRITE
        PERL_DONT_CREATE_GVSV
        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
        PERL_MALLOC_WRAP
        PERL_OP_PARENT
        PERL_PRESERVE_IVUV
        PERL_USE_DEVEL
        USE_64_BIT_ALL
        USE_64_BIT_INT
        USE_LARGE_FILES
        USE_LOCALE
        USE_LOCALE_COLLATE
        USE_LOCALE_CTYPE
        USE_LOCALE_NUMERIC
        USE_LOCALE_TIME
        USE_PERLIO
        USE_PERL_ATOF
        USE_QUADMATH
      Built under linux
      Compiled at Jul 10 2016 22:46:13
      %ENV:
        PERLBREW_BASHRC_VERSION="0.76"
        PERLBREW_HOME="/home/dcollins/.perlbrew"
        PERLBREW_ROOT="/home/dcollins/toolchain/perl5"
      @INC:
        lib
        /usr/local/lib/perl5/site_perl/5.25.3/x86_64-linux-quadmath
        /usr/local/lib/perl5/site_perl/5.25.3
        /usr/local/lib/perl5/5.25.3/x86_64-linux-quadmath
        /usr/local/lib/perl5/5.25.3
        .
    dcollins@nightshade64:~/perlquad$ ./perl -Ilib t/harness t/porting/libperl.t
    porting/libperl.t .. # Failed test 26 - uses no strcpy (locale.o) at porting/libperl.t line 551
    #      got "1"
    # expected "0"
    porting/libperl.t .. Failed 1/35 subtests

    Test Summary Report
    -------------------
    porting/libperl.t (Wstat: 0 Tests: 35 Failed: 1)
      Failed test:  26
    Files=1, Tests=35,  0 wallclock secs ( 0.00 usr  0.00 sys +  0.03 cusr  0.00 csys =  0.03 CPU)
    Result: FAIL

If this is relevant, in the locale.o section of `nm libperl.a` I found:

0000000000000000 t S_stdize_locale
                 U __stack_chk_fail
                 U stpcpy
                 U strchr
                 U strcmp
                 U strcpy
                 U strerror
                 U strlen
                 U strxfrm


-- 
Respectfully,
Dan Collins


Thread Previous


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