Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1405587

Summary: build golang for ppc64le and s390x
Product: Red Hat Enterprise Linux 7 Reporter: Neil Horman <nhorman>
Component: golangAssignee: Jakub Čajka <jcajka>
Status: CLOSED ERRATA QA Contact: Martin Cermak <mcermak>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.4CC: hannsj_uhl, jcajka, jistone, jwboyer, lkocman, mcermak, mnewsome, nhorman, peterm, sbest, skumari, snagar, yselkowi
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: golang-1.7.4-4.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 20:21:21 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: 1414500    
Bug Blocks: 1344553, 1344554, 1344590, 1344592, 1344596, 1344598, 1405448, 1406046, 1406053, 1406054, 1406090, 1406137, 1406139, 1411763, 1418480, 1418899, 1419713, 1419739, 1419752, 1419763    
Attachments:
Description Flags
spec file update for golang support none

Description Neil Horman 2016-12-16 18:59:12 UTC
IBM Is requesting that we have stack parity on ppc64le ni RHEL7.4 and Pegas, which includes support for docker and kubernetes.  golang is a needed prerequisite for that support.  Please add golang to our ppc64le build environment

Comment 1 Neil Horman 2016-12-16 19:02:43 UTC
Created attachment 1232733 [details]
spec file update for golang support

Here is the modified spec file I used to build golang for ppc64le here:
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=12248586

I've subsequently used this package to build docker, which also works, so I'm reasonably confident it works well.

Please note, that since gcc-go is not up to version 5 in RHEL7, I can't bootstrap with that package. As such, I've instead included the upstream go binary tarball in the spec file to act as a bootstrap compiler.  Once we get golang built and into a collection that can be removed.

Comment 3 Neil Horman 2016-12-20 17:09:34 UTC
Addendum: please also backport upstream commit b4efd09d1880793e33fbb191ccfe1657bfeba0c9 when enabling ppc64le on golang.  This commit is needed to support larger relocations when linking, which will be needed to build kubernetes as part of this effort

Comment 6 Neil Horman 2017-01-05 15:53:39 UTC
yeah, sure.  Please also note the need for the upstream commit in comment 3 Jakub.  Thanks!

Comment 24 errata-xmlrpc 2017-08-01 20:21:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:1859