Skip to content

Issue running installation for perl 5.34.0 Time::HiRes test fails on RHEL 8.5 #19321

Closed
@MaintainUplift

Description

@MaintainUplift

Hello. I am working with a team on RHEL 8.5 and, to avoid package updates breaking our application, we are compiling our own perl 5.34.0 from source. We keep running into an issue with the testing of the Time::HiRes module:

dist/Time-HiRes/t/stat ........................................... #   Failed test at t/stat.t line 35.
#     Structures begin differing at:
#          $got->[8] = '1641238896.30675'
#     $expected->[8] = '1641238896.00375'
#   Failed test at t/stat.t line 35.
#     Structures begin differing at:
#          $got->[8] = '1641238896.61875'
#     $expected->[8] = '1641238896.30675'
#   Failed test at t/stat.t line 35.
#     Structures begin differing at:
#          $got->[8] = '1641238896.90775'
#     $expected->[8] = '1641238896.77775'
#   Failed test at t/stat.t line 35.
#     Structures begin differing at:
#          $got->[8] = '1641238897.14076'
#     $expected->[8] = '1641238897.02776'
# Looks like you failed 4 tests of 43.
FAILED at test 13

...

Failed 1 test out of 2459, 99.96% okay.
        ../dist/Time-HiRes/t/stat.t
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness
###   LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
Elapsed: 870 sec
u=10.14  s=9.41  cu=431.36  cs=97.55  scripts=2459  tests=1186017
make: *** [makefile:800: test] Error 1

I am aware that this has been reported as an issue with utime.t and usleep.t as Bug #122819 (https://rt.cpan.org/Public/Bug/Display.html?id=122819), and apparently Bug #116127 (https://rt.cpan.org/Public/Bug/Display.html?id=116127), but I have not seen it reported as a failure with stat.t.

I am also aware from running perl -V on our system perl that this has apparently been addressed in Fedora Patch58:
Fedora Patch58: Fix unreliable Time-HiRes tests (CPAN RT#122819)

However, since we are compiling from source and we are using the latest perl 5.34.0 directly from CPAN, AND we are still getting this bug, I have tried a number of things to fix it, and they have failed. It seems that there's a difference between the Time::HiRes packaged with perl 5.34.0 (1.9764) and the newest version on CPAN (1.9767), yet still this apparently does not address this Time::HiRes issue when compiling from src on RHEL 8.5.

Can someone kindly help me figure out how to get past this hurdle and patch the perl we are trying to install?

MANY THANKS!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions