iovisor / iovisor/bcc

compile error: invalid application of 'sizeof' to incomplete type 'btf_ext_vendored:

Open
#5,188 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.