Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1442023

Summary: silent fail in linking during build
Product: [Fedora] Fedora Reporter: Dan Horák <dan>
Component: golangAssignee: Jakub Čajka <jcajka>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, amurdaca, fweimer, golang-updates, jcajka, lemenkov, renich, s, ttomecek, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-30 15:42:01 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
build.log none

Description Dan Horák 2017-04-13 10:37:19 UTC
Created attachment 1271409 [details]
build.log

golang 1.8.1 silently fails when linking a binary during build on s390x

...
cmd/compile
mkdir -p $WORK/cmd/compile/_obj/
mkdir -p $WORK/cmd/compile/_obj/exe/
cd /builddir/build/BUILD/go/src/cmd/compile
/builddir/build/BUILD/go/pkg/tool/linux_s390x/compile -o $WORK/cmd/compile.a -trimpath $WORK -p main -complete -buildid e6f92876594823080e59ecf270b97057b4f66e2a -D _/builddir/build/BUILD/go/src/cmd/compile -I $WORK -pack ./doc.go ./main.go
cd .
/builddir/build/BUILD/go/pkg/tool/linux_s390x/link -o $WORK/cmd/compile/_obj/exe/a.out -L $WORK -extld=gcc -buildmode=exe -buildid=e6f92876594823080e59ecf270b97057b4f66e2a $WORK/cmd/compile.a
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.AfYJLa (%build)
    Bad exit status from /var/tmp/rpm-tmp.AfYJLa (%build)
Child return code was: 1
EXCEPTION: [Error()]
...


Version-Release number of selected component (if applicable):
golang-1.8.1-1.fc27

Comment 1 Dan Horák 2017-06-30 15:42:01 UTC
it's latest binutils what makes the build crash, the issue was introduced with http://pkgs.fedoraproject.org/cgit/rpms/binutils.git/commit/?id=416e014455167094f9d8f8890e6ce31c0a48e4a4

Closing as duplicate of a bug with IBM bugzilla clone.

*** This bug has been marked as a duplicate of bug 1460254 ***