not enough arguments in call to (_C2func_bcc_func_load)

Viewed 27

I am getting an error not enough arguments in call to (_C2func_bcc_func_load) when compiling Go.

Go Version used: go version go1.19.1

How can I resolve this error? Would appreciate if anyone could help.

Error Message:

github.com/iovisor/gobpf/bcc
/home/jeremy/go/pkg/mod/github.com/iovisor/gobpf@v0.2.0/bcc/module.go:230:132: not enough arguments in call to (_C2func_bcc_func_load)
    have (unsafe.Pointer, _Ctype_int, *_Ctype_char, *_Ctype_struct_bpf_insn, _Ctype_int, *_Ctype_char, _Ctype_uint, _Ctype_int, *_Ctype_char, _Ctype_uint, nil)
    want (unsafe.Pointer, _Ctype_int, *_Ctype_char, *_Ctype_struct_bpf_insn, _Ctype_int, *_Ctype_char, _Ctype_uint, _Ctype_int, *_Ctype_char, _Ctype_uint, *_Ctype_char, _Ctype_int)

enter image description here

1 Answers

It seems that your dependency library github.com/iovisor was broken. Try to check out their github to see if there are any issues, or just do something like go get -u to update your project dependencies to the latest versions (probably some new version have been already released and the problem is fixed). The version can also be restricted in your go.mod file, so you may want to change it there.

Related