Skip to content

cmd/compile: internal error: importsForRootNode err (type error) recorded as live on entry, p.Pc=1209 when building Kubernetes on ppc64le #17194

@laboger

Description

@laboger

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version devel +cddddbc Thu Sep 22 17:36:39 2016 +0000 linux/ppc64le

What operating system and processor architecture are you using (go env)?

Ubuntu 16.04

What did you do?

Tried to build Kubernetes for ppc64le with latest

What did you expect to see?

Successful build.

What did you see instead?

Build errors

This is needed to create go-bindata needed by the kubernetes build. Add go-bindata to your PATH:
go get -u github.com/jteeuwen/go-bindata/go-bindata

Use this patch to modify hack/lib/golang.sh so it will build ppc64le. It sets -x -work to save the tmp build files and see what's building.

kubscript.diff.txt

git clone https://github.com/kubernetes/kubernetes.git
cd kubernetes
apply the patch
make

This is the compile command that fails:
/home/boger/golang/latest/go/pkg/tool/linux_ppc64le/compile -o $WORK/k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/ginkgo/convert.a -trimpath $WORK -p k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/ginkgo/convert -complete -buildid 012aed0fb8b7f70a3adf3f0ea5a764bef88f917c -D _/home/boger/kublatest/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/github.com/onsi/ginkgo/ginkgo/convert -I $WORK -pack ./ginkgo_ast_nodes.go ./import.go ./package_rewriter.go ./test_finder.go ./testfile_rewriter.go ./testing_t_rewriter.go
./import.go:13: internal error: importsForRootNode err (type error) recorded as live on entry, p.Pc=1209

I didn't try the build on other platforms so I'm not sure if it fails elsewhere. This error didn't occur about 2 weeks ago because I've been doing this build regularly but I don't have an exact date as to when it last worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions