cilium / packer-ci-build

Contains the scripts and data for building the Cilium CI testing VM.
10 stars 17 forks source link

`bpftrace` doesn't work due to `fatal error: 'generated/autoconf.h' file not found` #271

Open christarazi opened 3 years ago

christarazi commented 3 years ago

I tried running bpftrace on the dev VMs on net-next, but was unable to due to:

$ sudo bpftrace xfrm_policy_kprobe.bpf
/lib/modules/5.12.0-rc4+/build/include/linux/kconfig.h:5:10: fatal error: 'generated/autoconf.h' file not found

It seems that that file is missing. Maybe we opt to not save it during the build?

pchaigno commented 3 years ago

Did you test with an image other than the net-next one?

christarazi commented 3 years ago

@pchaigno The file is available on the 'cilium/ubuntu-dev' (v199) box:

vagrant@runtime1:~$ ls /lib/modules/*/build/include/generated
/lib/modules/4.15.0-112-generic/build/include/generated:
asm-offsets.h  autoconf.h  autoksyms.h  bounds.h  compile.h  timeconst.h  uapi  utsrelease.h

/lib/modules/4.9.258-0409258-generic/build/include/generated:
asm-offsets.h  autoconf.h  autoksyms.h  bounds.h  compile.h  timeconst.h  uapi  utsrelease.h
pchaigno commented 3 years ago

Same issue with bcc scripts :cry: