Bug 1441078

Summary: golang-github-cznic-mathutil fails its test-suite with golang 1.8 on s390x
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: golangAssignee: Jakub Čajka <jcajka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, amurdaca, golang-updates, jcajka, lemenkov, renich, s, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: golang-1.8.1-2.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-02 15:57:46 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
Reduced reproducer none

Description Dan Horák 2017-04-11 07:56:41 UTC
Description of problem:
The golang-github-cznic-mathutil package fails its test-suite with golang 1.8, but passes with golang 1.7. For koji builds see https://s390.koji.fedoraproject.org/koji/packageinfo?packageID=23503


Version-Release number of selected component (if applicable):
golang-1.8-2.fc26
golang-github-cznic-mathutil-0-0.2.git1447ad2.fc27


How reproducible:
100%


Steps to Reproduce:
1. fedpkg local


Actual results:
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.o5kbGD
+ umask 022
+ cd /builddir/build/BUILD
+ cd mathutil-1447ad269d64ca91aa8d7079baa40b6fc8b965e7
+ export GOPATH=/builddir/build/BUILDROOT/golang-github-cznic-mathutil-0-0.2.git1447ad2.fc27.s390x//usr/share/gocode:/usr/share/gocode
+ GOPATH=/builddir/build/BUILDROOT/golang-github-cznic-mathutil-0-0.2.git1447ad2.fc27.s390x//usr/share/gocode:/usr/share/gocode
+ go test -compiler gc -ldflags '' github.com/cznic/mathutil -timeout 30m
--- FAIL: TestNextPrimeUint64 (0.00s)
	all_test.go:656: 1999999999999999999
FAIL
FAIL	github.com/cznic/mathutil	47.705s
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.o5kbGD (%check)
    Unknown option t in gotest()
    Bad exit status from /var/tmp/rpm-tmp.o5kbGD (%check)


Expected results:
%check passes as it does on F<=25

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.9qks53
+ /usr/lib/rpm/redhat/brp-java-repack-jars
+ umask 022
+ cd /builddir/build/BUILD
+ cd mathutil-1447ad269d64ca91aa8d7079baa40b6fc8b965e7
+ export GOPATH=/builddir/build/BUILDROOT/golang-github-cznic-mathutil-0-0.2.git1447ad2.fc25.s390x//usr/share/gocode:/usr/share/gocode
+ GOPATH=/builddir/build/BUILDROOT/golang-github-cznic-mathutil-0-0.2.git1447ad2.fc25.s390x//usr/share/gocode:/usr/share/gocode
+ go test -compiler gc -ldflags '' github.com/cznic/mathutil -timeout 30m
ok  	github.com/cznic/mathutil	96.800s
+ exit 0

Additional info:

Comment 1 Jakub Čajka 2017-04-12 13:57:53 UTC
Created attachment 1271163 [details]
Reduced reproducer

Comment 2 Jakub Čajka 2017-04-12 14:11:12 UTC
Probably golang compiler bug opened upstream issue https://github.com/golang/go/issues/19940.

Also most probably same issues as in BZ#1434337.

Comment 3 Jakub Čajka 2017-04-12 15:43:37 UTC
*** Bug 1434337 has been marked as a duplicate of this bug. ***

Comment 4 Jakub Čajka 2017-04-12 16:16:20 UTC
Upstream CL https://go-review.googlesource.com/c/40433/

Comment 5 Fedora Update System 2017-04-26 08:41:50 UTC
golang-1.8.1-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-e6ec8b8162

Comment 6 Fedora Update System 2017-04-26 21:52:31 UTC
golang-1.8.1-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-e6ec8b8162

Comment 7 Fedora Update System 2017-05-02 15:57:46 UTC
golang-1.8.1-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.