Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 662800

Summary: dev-lang/perl-5.24.3-r1 on arm64 fails test utime.t
Product: Gentoo Linux Reporter: eroen <erikdenstore+gbugs>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: kentnl
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.bz2

Description eroen 2018-08-04 19:57:32 UTC
I have not been able to reproduce this on amd64.

../dist/Time-HiRes/t/usleep.t ..................................... ok  
===(  154101;663  1988/2252  153/163  163/279   1/18 )==================
#   Failed test 'atime set correctly'
#   at t/utime.t line 72.
#          got: '1'
#     expected: '1.111111111'

#   Failed test 'mtime set correctly'
#   at t/utime.t line 73.
#          got: '2'
#     expected: '2.222222222'

#   Failed test 'atime set correctly'
#   at t/utime.t line 81.
#          got: '1'
#     expected: '1.111111111'

#   Failed test 'mtime set correctly'
#   at t/utime.t line 82.
#          got: '2'
#     expected: '2.222222222'

#   Failed test 'File 1 atime set correctly'
#   at t/utime.t line 92.
#          got: '1'
#     expected: '1.111111111'

#   Failed test 'File 1 mtime set correctly'
#   at t/utime.t line 93.
#          got: '2'
#     expected: '2.222222222'

#   Failed test 'File 2 atime set correctly'
#   at t/utime.t line 97.
#          got: '1'
#     expected: '1.111111111'

#   Failed test 'File 2 mtime set correctly'
#   at t/utime.t line 98.
#          got: '2'
#     expected: '2.222222222'

#   Failed test 'File 1 atime set correctly'
#   at t/utime.t line 112.
#     '0.953129053115845'
#         <
#     '0.1'

#   Failed test 'File 1 mtime set correctly'
#   at t/utime.t line 113.
#     '0.953129053115845'
#         <
#     '0.1'

#   Failed test 'File 2 atime set correctly'
#   at t/utime.t line 117.
#     '0.953129053115845'
#         <
#     '0.1'

#   Failed test 'File 2 mtime set correctly'
#   at t/utime.t line 118.
#     '0.953129053115845'
#         <
#     '0.1'
# Looks like you failed 12 tests of 18.
../dist/Time-HiRes/t/utime.t ...................................... Dubious, test returned 12 (wstat 3072, 0xc00)
Failed 12/18 subtests 

...

Test Summary Report
-------------------
../dist/Time-HiRes/t/utime.t                                    (Wstat: 3072 Tests: 18 Failed: 12)
  Failed tests:  2-3, 5-6, 8-11, 13-16
  Non-zero exit status: 12
Files=2412, Tests=851411, 869 wallclock secs (534.89 usr 38.12 sys + 1982.42 cusr 179.97 csys = 2735.40 CPU)
Result: FAIL
make: *** [makefile:850: test_harness] Error 12
 * ERROR: dev-lang/perl-5.24.3-r1::gentoo failed (test phase):
 *   test failed
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_test
 *   environment, line 2783:  Called die
 * The specific snippet of code:
 *       TEST_JOBS="$(makeopts_jobs)" make test_harness || die "test failed"
Comment 1 eroen 2018-08-04 19:58:08 UTC
Created attachment 542380 [details]
build.log.bz2
Comment 2 eroen 2018-08-04 19:59:26 UTC
pine64-a ~ # emerge --info '=dev-lang/perl-5.24.3-r1::gentoo'
Portage 2.3.40 (python 2.7.14-final-0, default/linux/arm64/13.0, gcc-7.3.0, glibc-2.26-r7, 3.10.102-2-pine64-longsleep aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.102-2-pine64-longsleep-aarch64-with-gentoo-2.4.1
KiB Mem:     2036496 total,    467964 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 04 Aug 2018 17:00:01 +0000
Head commit of repository gentoo: d381f6e4ebd9f79e122c9d33bb1a580697a68662
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.30-r2::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-Os -g -pipe -mcpu=cortex-a53 -mfix-cortex-a53-843419"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -g -pipe -mcpu=cortex-a53 -mfix-cortex-a53-843419"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -mfix-cortex-a53-843419"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc modules multilib ncurses nls nptl openmp pam pcre readline seccomp ssl tcpd unicode xattr zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

pine64-a ~ # emerge -pqv '=dev-lang/perl-5.24.3-r1::gentoo'
[ebuild     U ] dev-lang/perl-5.24.3-r1 [5.24.1-r1] USE="berkdb gdbm -debug -doc -ithreads" 
[ebuild  N    ] perl-core/File-Path-2.130.0 
[ebuild  N    ] virtual/perl-File-Path-2.130.0
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-08-06 03:26:26 UTC
Just out of curiosity, can you see if you can replicate this issue with either 5.26 or 5.28? ( using ebuild /path/here.ebuild test should be all that's needed to see ).

Start with 5.26, and if it fails, try 5.28.

That way we'll have some idea if upstream know about, and have fixed, this issue already.

Though if I ad to guess, I'd say its *this* dog turd soup: 

hhttps://metacpan.org/changes/distribution/Time-HiRes#L123

https://rt.cpan.org/Ticket/Display.html?id=116127

However, corelist suggests 5.28 and only 5.28 will have a chance of avoiding this:

corelist -a Time::HiRes | grep '5.2[468]'
  v5.24.0    1.9733    
  v5.24.1    1.9733    
  v5.24.2    1.9733    <---- previous version
  v5.24.3    1.9741    <---- your version
  v5.24.4    1.9741    
  v5.26.0    1.9741    
  v5.26.1    1.9741    
  v5.26.2    1.9741    
  v5.28.0    1.9759    <---- greater version with indicated fixes


I'm not sure the nature of this failure really warrants action ( it requires sizeable patching to avoid )
Comment 4 eroen 2018-08-06 20:07:38 UTC
5.26.2 has the same failure. In addition, alarm.t fails:

../dist/Time-HiRes/t/alarm.t ....................................... 6/10 
#   Failed test at t/alarm.t line 203.

#   Failed test at t/alarm.t line 210.
../dist/Time-HiRes/t/alarm.t ....................................... 8/10 # Looks like you failed 2 tests of 10.
../dist/Time-HiRes/t/alarm.t ....................................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/10 subtests 


5.28.0 passes both these tests, with a message for utime.t:

../dist/Time-HiRes/t/utime.t ....................................... skipped: No subsecond file timestamps
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2019-10-11 20:02:04 UTC
(In reply to eroen from comment #4)
> 5.26.2 has the same failure. In addition, alarm.t fails:
> 
> ../dist/Time-HiRes/t/alarm.t ....................................... 6/10 
> #   Failed test at t/alarm.t line 203.
> 
> #   Failed test at t/alarm.t line 210.
> ../dist/Time-HiRes/t/alarm.t ....................................... 8/10 #
> Looks like you failed 2 tests of 10.
> ../dist/Time-HiRes/t/alarm.t .......................................
> Dubious, test returned 2 (wstat 512, 0x200)
> Failed 2/10 subtests 
> 
> 
> 5.28.0 passes both these tests, with a message for utime.t:
> 
> ../dist/Time-HiRes/t/utime.t .......................................
> skipped: No subsecond file timestamps

... and all failing versions are now masked.