Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can execute "make install" #8

Open
matthewei opened this issue May 9, 2024 · 0 comments
Open

Can execute "make install" #8

matthewei opened this issue May 9, 2024 · 0 comments

Comments

@matthewei
Copy link

Step 1: clone code from github
Step2: execute make install
we can't execute make install

go run sigs.k8s.io/controller-tools/cmd/[email protected] crd rbac:roleName=dnsmasq-controller paths="./..." output:crd:artifacts:config=config/crd/bases
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa0c04f]

goroutine 60 [running]:
go/types.(*Checker).handleBailout(0xc00001f200, 0xc000efdd40)
        /usr/local/go/src/go/types/check.go:367 +0x88
panic({0xbb8e00?, 0x1297d10?})
        /usr/local/go/src/runtime/panic.go:770 +0x132
go/types.(*StdSizes).Sizeof(0x0, {0xdad4d8, 0x12a0740})
        /usr/local/go/src/go/types/sizes.go:228 +0x30f
go/types.(*Config).sizeof(...)
        /usr/local/go/src/go/types/sizes.go:333
go/types.representableConst.func1({0xdad4d8?, 0x12a0740?})
        /usr/local/go/src/go/types/const.go:76 +0x9e
go/types.representableConst({0xdb39a0, 0x126c5c0}, 0xc00001f200, 0x12a0740, 0xc000efd4b0)
        /usr/local/go/src/go/types/const.go:92 +0x192
go/types.(*Checker).representation(0xc00001f200, 0xc000e24e00, 0x12a0740)
        /usr/local/go/src/go/types/const.go:256 +0x65
go/types.(*Checker).implicitTypeAndValue(0xc00001f200, 0xc000e24e00, {0xdad500, 0xc000210930})
        /usr/local/go/src/go/types/expr.go:375 +0x2d7
go/types.(*Checker).assignment(0xc00001f200, 0xc000e24e00, {0xdad500, 0xc000210930}, {0xc85fa6, 0x14})
        /usr/local/go/src/go/types/assignments.go:52 +0x2e5
go/types.(*Checker).initConst(0xc00001f200, 0xc000d5d4a0, 0xc000e24e00)
        /usr/local/go/src/go/types/assignments.go:126 +0x2c5
go/types.(*Checker).constDecl(0xc00001f200, 0xc000d5d4a0, {0xdb0198, 0xc000b2fa80}, {0xdb0198, 0xc000b2faa0}, 0x0)
        /usr/local/go/src/go/types/decl.go:490 +0x311
go/types.(*Checker).objDecl(0xc00001f200, {0xdb9000, 0xc000d5d4a0}, 0x0)
        /usr/local/go/src/go/types/decl.go:191 +0xa49
go/types.(*Checker).packageObjects(0xc00001f200)
        /usr/local/go/src/go/types/resolver.go:693 +0x4dd
go/types.(*Checker).checkFiles(0xc00001f200, {0xc0009ad110, 0x5, 0x5})
        /usr/local/go/src/go/types/check.go:408 +0x1a5
go/types.(*Checker).Files(...)
        /usr/local/go/src/go/types/check.go:372
sigs.k8s.io/controller-tools/pkg/loader.(*loader).typeCheck(0xc00024ef90, 0xc00079bb00)
        /home/matthew/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/loader/loader.go:283 +0x36a
sigs.k8s.io/controller-tools/pkg/loader.(*Package).NeedTypesInfo(0xc00079bb00)
        /home/matthew/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/loader/loader.go:96 +0x39
sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check(0xc000d04a80, 0xc00079bb00)
        /home/matthew/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/loader/refs.go:263 +0x2b7
sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check.func1(0x53?)
        /home/matthew/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/loader/refs.go:257 +0x53
created by sigs.k8s.io/controller-tools/pkg/loader.(*TypeChecker).check in goroutine 66
        /home/matthew/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/loader/refs.go:255 +0x1c5
exit status 2
make: *** [Makefile:52: manifests] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant