Bug 1392922
Summary: | Fedora - Unable to build Kubernetes with golang-1.7.3-1.fc26 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Chaloupka <jchaloup> |
Component: | golang | Assignee: | Jakub Čajka <jcajka> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | admiller, amurdaca, bugproxy, dan, golang-updates, hannsj_uhl, jcajka, lemenkov, renich, s, vbatts |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | ppc64le | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | kubernetes-1.4.7-1.fc26 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-01-02 19:50:42 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: | 1071880 |
Description
Jan Chaloupka
2016-11-08 13:43:16 UTC
------- Comment From hannsj_uhl.com 2016-11-29 03:10 EDT------- Comment from Lynn A. Boger 2016-11-28 14:24:30 CST This problem is due to a golang linker issue that happens when binaries get too big on RISC platforms like ppc64le and arm. With golang, linking can be done externally (i.e., system linker) or internally (golang linker), which means fixes are needed for both types of linking. The patch that had been provided for go 1.7 ppc64le fixes the external linking case. I currently do not have a patch for use with internal linking in go 1.7. The golang community did not accept a backport of these patches because they were considered too risky. Fixes for this problem for both internal and external linking are upstream and will be in go 1.8 when released in Feb. 2017. As a workaround with go 1.7.3-1.fc26, the setting of GOLDFLAGS='-linkmode=external' when doing the build could be used to force all binaries to be built with external linking, and that avoids the link error. Thanks, Lynn, with diff --git a/kubernetes.spec b/kubernetes.spec index 82e0b1e..ea9aed0 100644 --- a/kubernetes.spec +++ b/kubernetes.spec @@ -43,11 +43,11 @@ Name: kubernetes Version: %{kube_version} -Release: 3%{?dist} +Release: 3%{?dist}.2 Summary: Container cluster management License: ASL 2.0 URL: %{import_path} -ExclusiveArch: x86_64 aarch64 +ExclusiveArch: x86_64 aarch64 ppc64le Source0: https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz Source1: https://%{con_provider_prefix}/archive/%{con_commit}/%{con_repo}-%{con_shortcommit}.tar.gz Source3: kubernetes-accounting.conf @@ -880,6 +880,10 @@ export KUBE_GIT_COMMIT=%{commit} export KUBE_GIT_VERSION=%{kube_git_version} export KUBE_EXTRA_GOPATH=$(pwd)/Godeps/_workspace +# https://bugzilla.redhat.com/show_bug.cgi?id=1392922#c1 +%ifarch ppc64le +export GOLDFLAGS='-linkmode=external' +%endif make WHAT="--use_go_build cmd/hyperkube cmd/kube-apiserver" # convert md to man I get a successful build - http://koji.fedoraproject.org/koji/taskinfo?taskID=16679287 Thanks Lynn. kubernetes-1.4.7-1.fc26 for ppc64le is ready for testing. kubernetes-1.4.7-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-baff05c06d kubernetes-1.4.7-1.fc25 has been pushed to the Fedora 25 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-2016-baff05c06d kubernetes-1.4.7-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |