Hi, I'll take a look later this morning; off the top of my head I'm not sure what the issue might be. Question: are you building with modules enabled? Thanks ,Than
On Mon, Jul 8, 2019 at 11:05 PM Yuan Ting <yuant...@ict.ac.cn> wrote: > Hi, I'm working on converting some Go projects to llvm IR for static > analysis. When I build kubernetes with gollvm, an unexpected error occurred > as : > > I0709 10:48:29.158892 16573 deepcopy.go:266] Type > k8s.io/apimachinery/pkg/apis/meta/v1.map_StatusDetails is not copyable > I0709 10:48:29.158899 16573 deepcopy.go:266] Type > k8s.io/apimachinery/pkg/apis/meta/v1.map_TypeMeta is not copyable > I0709 10:48:29.158906 16573 deepcopy.go:266] Type > k8s.io/apimachinery/pkg/apis/meta/v1.map_UpdateOptions is not copyable > I0709 10:48:29.158915 16573 deepcopy.go:266] Type > k8s.io/apimachinery/pkg/apis/meta/v1.scheme is not copyable > I0709 10:48:29.158922 16573 deepcopy.go:266] Type > k8s.io/apimachinery/pkg/apis/meta/v1.skipGenerated is not copyable > I0709 10:48:29.158929 16573 deepcopy.go:266] Type > k8s.io/apimachinery/pkg/apis/meta/v1.sovGenerated is not copyable > I0709 10:48:29.158937 16573 deepcopy.go:266] Type > k8s.io/apimachinery/pkg/apis/meta/v1.sozGenerated is not copyable > I0709 10:48:29.158944 16573 deepcopy.go:266] Type > k8s.io/apimachinery/pkg/apis/meta/v1.valueToStringGenerated is not > copyable > F0709 10:48:29.165681 16573 deepcopy.go:866] Hit an unsupported type > invalid type. > !!! Error in ./hack/run-in-gopath.sh:33 > Error in ./hack/run-in-gopath.sh:33. '"${@}"' exited with status 255 > Call stack: > 1: ./hack/run-in-gopath.sh:33 main(...) > Exiting with status 1 > Makefile.generated_files:152: recipe for target 'gen_deepcopy' failed > make[1]: *** [gen_deepcopy] Error 1 > Makefile:523: recipe for target 'generated_files' failed > make: *** [generated_files] Error 2 > > The commands I have used are > > go get -d k8s.io/kubernetes # In this step I'm using the main Go compiler > cd $GOPATH/src/k8s.io/kubernetes > KUBE_VERBOSE=4 <http://k8s.io/kubernetesKUBE_VERBOSE=4> DBG_CODEGEN=1 make > GOFLAGS="-x -work" # In this step I switched to gollvm > > my gollvm version is > > go version go1.12.2 gollvm LLVM 9.0.0svn linux/amd64 > > The fatal error raised at > https://github.com/kubernetes/kubernetes/blob/master/vendor/k8s.io/gengo/examples/deepcopy-gen/generators/deepcopy.go#L866 > > Is this an error caused by using gollvm (while the main Go compiler works > fine), or an error due to other misalignments? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/c9572f0e-1db2-4407-8b68-bd904c928699%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/c9572f0e-1db2-4407-8b68-bd904c928699%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2BUr55HhdycdxjED36JbANpGfFzX%2Bp1Y_PT2Q-y8RQkn9dfv9g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.