[opensuse-kubic] how to handle kubernetes build error cannot import package ../../../../vendor/... ?
With new kubernetes 1.17; there is a build failure for ppc64le (1), how to handle the error: "cannot import package ../../../../vendor/k8s.io/api/apps/v1" ? I basically checked the presence of related path in tarball: === kubernetes-1.17.0/vendor/k8s.io/api -> ../../staging/src/k8s.io/api kubernetes-1.17.0/staging/src/k8s.io/api/apps/v1 === But do not know what do do from there. (1) https://build.opensuse.org/package/live_build_log/devel:kubic/kubernetes/ope... === [ 85s] +++ [1212 13:58:43] Building go targets for linux/ppc64le: [ 85s] ./vendor/k8s.io/kube-openapi/cmd/openapi-gen [ 95s] # k8s.io/kubernetes/vendor/github.com/go-bindata/go-bindata/go-bindata [ 95s] loadinternal: cannot find runtime/cgo [ 122s] F1212 13:59:20.792808 5701 defaulter.go:288] cannot import package ../../../../vendor/k8s.io/api/apps/v1 [ 122s] make[1]: *** [Makefile.generated_files:248: gen_defaulter] Error 1 === -- Michel Normand -- To unsubscribe, e-mail: opensuse-kubic+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kubic+owner@opensuse.org
On Fri, 2019-12-13 at 15:13 +0100, Normand wrote:
loadinternal: cannot find runtime/cgo
I think the above error is the core problem https://go-review.googlesource.com/c/go/+/146898 would suggest there was some effort to fix this for ppc64 big endian but if it's not available for ppc64le then I suspect lots of things requiring cgo will break.. -- Richard Brown Linux Distribution Engineer - Future Technology Team Phone +4991174053-361 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, D-90409 Nuernberg (HRB 36809, AG Nürnberg) Geschäftsführer: Felix Imendörffer -- To unsubscribe, e-mail: opensuse-kubic+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kubic+owner@opensuse.org
On 12/13/19 3:25 PM, Richard Brown wrote:
On Fri, 2019-12-13 at 15:13 +0100, Normand wrote:
loadinternal: cannot find runtime/cgo
I think the above error is the core problem
https://go-review.googlesource.com/c/go/+/146898 would suggest there was some effort to fix this for ppc64 big endian but if it's not available for ppc64le then I suspect lots of things requiring cgo will break..
But this message was already present while building version 1.16.3 on Factory:PowerPC (2) but clearly not critical for build process. What is new with 1.17.0 is the F1212 13:59:20.792808 5701 defaulter.go:288] cannot import package ../../../../vendor/k8s.io/api/apps/v1 (2) https://build.opensuse.org/package/show/openSUSE:Factory:PowerPC/kubernetes === [ 102s] +++ [1203 13:07:52] Building go targets for linux/ppc64le: [ 102s] ./vendor/k8s.io/code-generator/cmd/defaulter-gen [ 109s] # k8s.io/kubernetes/vendor/github.com/go-bindata/go-bindata/go-bindata [ 109s] loadinternal: cannot find runtime/cgo [ 160s] +++ [1203 13:08:50] Building go targets for linux/ppc64le: [ 160s] cmd/kube-apiserver [ 160s] cmd/kube-controller-manager [ 160s] cmd/kube-scheduler [ 160s] cmd/kube-proxy [ 160s] cmd/kubelet [ 160s] cmd/kubectl [ 160s] cmd/kubeadm [ 160s] test/e2e/e2e.test [ 368s] # k8s.io/kubernetes/cmd/kube-proxy [ 368s] loadinternal: cannot find runtime/cgo [ 390s] # k8s.io/kubernetes/cmd/kubectl ... [ 2039s] ### VM INTERACTION END ### [ 2039s] build: extracting built packages... [ 2039s] RPMS/ppc64le/kubernetes-kubelet-1.16.3-1.1.ppc64le.rpm ... === -- Michel Normand -- To unsubscribe, e-mail: opensuse-kubic+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kubic+owner@opensuse.org
participants (2)
-
Normand
-
Richard Brown