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

not enough arguments in call to (_C2func_bcc_func_load) #314

Open
daurnimator opened this issue Sep 5, 2022 · 5 comments
Open

not enough arguments in call to (_C2func_bcc_func_load) #314

daurnimator opened this issue Sep 5, 2022 · 5 comments

Comments

@daurnimator
Copy link

When building a project (grafana-agent) which uses this library as a dependency, I get:

# github.com/iovisor/gobpf/bcc
/build/go/pkg/mod/github.com/iovisor/[email protected]/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)
$ pacman -Q libbcc
bcc 0.25.0-1
@zhangbo1882
Copy link

zhangbo1882 commented Sep 5, 2022 via email

@daurnimator
Copy link
Author

the bcc version does not match with gobpf version.

I do not see any more recent release of gobpf.

@Songrui625
Copy link

I encounter the same issue.

# github.com/iovisor/gobpf/bcc
../../../go/pkg/mod/github.com/iovisor/[email protected]/bcc/module.go:230:28: 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)

@daurnimator
Copy link
Author

As noted by @tpaschalis in grafana/agent#2113 (comment)

This seems to be another case of gobpf not yet being updated to match a recent bcc version; these new arguments were introduced in 1 and 2 which were part of v0.25.

@Songrui625
Copy link

As noted by @tpaschalis in grafana/agent#2113 (comment)

This seems to be another case of gobpf not yet being updated to match a recent bcc version; these new arguments were introduced in 1 and 2 which were part of v0.25.

Looks like this repo is no longer maintained.

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

3 participants