Repository navigation
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Description
What version of Go are you using (go version)?
$ go version go version devel +e25040d162 Fri Feb 26 02:52:33 2021 +0000 linux/ppc64le
What operating system and processor architecture are you using (go env)?
Operating system: Linux
Architecture: ppc64le and amd64
What did you do?
Building targets for kubernetes using the latest golang in main branch
What did you expect to see?
Kubernetes binaries build without error
What did you see instead?
Below error:
-bash: build-log.txt: command not found
^C[root@rajalakshmi-workspace kubernetes]# make cross 2>&1 | tee build-log.txt
+++ [0226 08:39:26] Building go targets for linux/ppc64le:
./vendor/k8s.io/code-generator/cmd/prerelease-lifecycle-gen
Generating prerelease lifecycle code for 24 targets
+++ [0226 08:39:32] Building go targets for linux/ppc64le:
./vendor/k8s.io/code-generator/cmd/deepcopy-gen
Generating deepcopy code for 226 targets
+++ [0226 08:39:42] Building go targets for linux/ppc64le:
./vendor/k8s.io/code-generator/cmd/defaulter-gen
Generating defaulter code for 88 targets
+++ [0226 08:39:56] Building go targets for linux/ppc64le:
./vendor/k8s.io/code-generator/cmd/conversion-gen
Generating conversion code for 123 targets
+++ [0226 08:40:23] Building go targets for linux/ppc64le:
./vendor/k8s.io/kube-openapi/cmd/openapi-gen
Generating openapi code for KUBE
Generating openapi code for AGGREGATOR
Generating openapi code for APIEXTENSIONS
Generating openapi code for CODEGEN
Generating openapi code for SAMPLEAPISERVER
+++ [0226 08:40:43] Building go targets for linux/ppc64le:
./vendor/github.com/go-bindata/go-bindata/go-bindata
+++ [0226 08:40:45] Building go targets for linux/ppc64le:
cmd/kube-proxy
cmd/kube-apiserver
cmd/kube-controller-manager
cmd/kubelet
cmd/kubeadm
cmd/kube-scheduler
vendor/k8s.io/kube-aggregator
vendor/k8s.io/apiextensions-apiserver
cluster/gce/gci/mounter
+++ [0226 08:46:53] Building go targets for linux/ppc64le:
cmd/kube-proxy
cmd/kubeadm
cmd/kubelet
+++ [0226 08:47:19] Building go targets for linux/ppc64le:
cmd/kubectl
cmd/kubectl-convert
+++ [0226 08:47:49] Building go targets for linux/ppc64le:
cmd/gendocs
cmd/genkubedocs
cmd/genman
cmd/genyaml
cmd/genswaggertypedocs
cmd/linkcheck
vendor/github.com/onsi/ginkgo/ginkgo
test/e2e/e2e.test
cluster/images/conformance/go-runner
+++ [0226 08:51:42] Building go targets for linux/ppc64le:
cmd/kubemark
vendor/github.com/onsi/ginkgo/ginkgo
test/e2e_node/e2e_node.test
# k8s.io/kubernetes/test/e2e_node.test
k8s.io/kubernetes/vendor/go.etcd.io/etcd/etcdserver/api/v3client.New.func1·f: relocation target k8s.io/kubernetes/vendor/go.etcd.io/etcd/etcdserver/api/v3client.New.func1 not defined
!!! [0226 08:52:30] Call tree:
!!! [0226 08:52:30] 1: /root/kubernetes/hack/lib/golang.sh:875 kube::golang::build_binaries_for_platform(...)
!!! [0226 08:52:30] 2: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0226 08:52:30] Call tree:
!!! [0226 08:52:30] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
!!! [0226 08:52:30] Call tree:
!!! [0226 08:52:30] 1: hack/make-rules/build.sh:27 kube::golang::build_binaries(...)
make[1]: *** [Makefile:92: all] Error 1
make: *** [Makefile:508: cross] Error 1
[root@rajalakshmi-workspace kubernetes]#
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Activity
Rajalakshmi-Girish commentedon Feb 26, 2021
@mkumatag @laboger ^^
[-]Error while building targets for kubernetes with master go [/-][+]cmd/compile: relocation target ... not defined while building targets for kubernetes with go tip[/+]laboger commentedon Mar 1, 2021
@pmur
pmur commentedon Mar 1, 2021
Looking into this. I see a relocation to the missing function in the objdump from the build cache, but the function is missing. Looking it's name, it should be also be present in the same object file?
pmur commentedon Mar 1, 2021
Simple test case:
bar/b.go:
main.go:
foo/a.go:
ianlancetaylor commentedon Mar 2, 2021
@pmur Your test case builds for me with
GOARCH=ppc64le go build. How are you building it, and what error do you see? Thanks.pmur commentedon Mar 2, 2021
@ianlancetaylor Here are the other details I should have included too
go version devel +a400eb3261 Mon Mar 1 15:24:01 2021 +0000 linux/ppc64lego.mod:
ianlancetaylor commentedon Mar 2, 2021
This might be a dup of #44330, which was fixed since the revision that you are testing.
pmur commentedon Mar 2, 2021
@ianlancetaylor yes, this is a duplicate. I verified my test case and kubernetes compile after cherry-picking the commit in #44330. This issue can be closed. Thank you for pointing out that issue.