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

Build error with GCC git head (Nov 2021) #27

Open
paulfloyd opened this issue Nov 24, 2021 · 0 comments
Open

Build error with GCC git head (Nov 2021) #27

paulfloyd opened this issue Nov 24, 2021 · 0 comments

Comments

@paulfloyd
Copy link

Running buildcmd.sh gives me

[ 14%] Building C object CMakeFiles/bpf.dir/lib/bpf/src/libbpf_errno.c.o
.../dwarves/lib/bpf/src/gen_loader.c: In function 'get_ksym_desc':
.../dwarves/lib/bpf/src/gen_loader.c:585:2: error: 'for' loop initial declarations are only allowed in C99 mode
  for (int i = 0; i < gen->nr_ksyms; i++) {
  ^
.../dwarves/lib/bpf/src/gen_loader.c:585:2: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [CMakeFiles/bpf.dir/lib/bpf/src/gen_loader.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
.../dwarves/lib/bpf/src/btf_dump.c: In function 'btf_dump_dump_type_data.isra.24':
.../dwarves/lib/bpf/src/btf_dump.c:2274:5: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (err < 0)
     ^

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