Bug 1197767

Summary: perl-Math-Int64 FTBFS on s390 due to failing test
Product: [Fedora] Fedora Reporter: Jakub Čajka <jcajka>
Component: perl-Math-Int64Assignee: David Dick <ddick>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ddick, perl-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-10 09:45:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    
Attachments:
Description Flags
Possible fix none

Description Jakub Čajka 2015-03-02 14:59:09 UTC
Created attachment 997110 [details]
Possible fix

Build fails probably due to overflow in Math-Int64.t with:
.
.
.
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/as_int64.t ............ ok
t/die_on_overflow.t ..... ok
t/Math-Int64-Native.t ... ok
#   Failed test 'max int64 >> 63'
#   at t/Math-Int64.t line 183.
#          got: '0'
#     expected: '1'
#   Failed test 'max int64 >>= 63'
#   at t/Math-Int64.t line 187.
#          got: '0'
#     expected: '1'
# Looks like you failed 2 tests of 1139.
t/Math-Int64.t .......... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/1139 subtests 
t/Math-UInt64-Native.t .. ok
t/Math-UInt64.t ......... ok
t/MSC.t ................. ok
t/pods.t ................ skipped: Only the author needs to check that POD docs are right
t/pow.t ................. ok
t/storable.t ............ ok
Test Summary Report
-------------------
t/Math-Int64.t        (Wstat: 512 Tests: 1139 Failed: 2)
  Failed tests:  1138-1139
  Non-zero exit status: 2
Files=10, Tests=2511,  0 wallclock secs ( 0.14 usr  0.01 sys +  0.33 cusr  0.02 csys =  0.50 CPU)
Result: FAIL
.
.
.

Using int64 in ipow sub-routine seems to make test pass. In attachment is patch with this change. Could you please review this patch and forward it to upstream if correct.

Failed build:

http://s390.koji.fedoraproject.org/koji/buildinfo?buildID=304185

Comment 1 David Dick 2015-03-10 09:45:34 UTC
Fixed by upstream (Salvador Fandiño García).

Sample build can be seen at http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1751203

committed to master.