compile error: invalid application of 'sizeof' to incomplete type 'btf_ext_vendored:
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 3
Description
Hello,
I tried to compile bcc but I have this error in console:
bcc_btf.cc:178:33: error: invalid application of 'sizeof' to incomplete type 'btf_ext_vendored::btf_ext_setup_core_relos(btf_ext_vendored::btf_ext*)::bpf_core_relo'
| 178 | .min_rec_size = sizeof(struct bpf_core_relo),
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compilation exit.
I tried to search online but I didn't find any solution.
Thank you so much everybody.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the compilation failure and inspect bcc_btf.cc around line 178, along with the declaration of bpf_core_relo referenced there. Identify why that type is incomplete in the build configuration, then verify that BCC compiles successfully with the affected configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100