-
Notifications
You must be signed in to change notification settings - Fork 164
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
Kernel headers not found in /usr/src
#176
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On some distributions (e.g., my CentOS 7)
/lib/modules/$(uname -r)/build
is a symlink to the real kernel header directory in/usr/src/kernels/$(uname -r)
.Thus, #77 mounted
/usr/src
in the pod template to include the kernel headers. #103 later mounted the whole/usr/
to avoid potentially creating/usr/src
on the host./usr
is mounted as/usr-host
in the guest pod and a symlink is created in the pod from/usr/src
to/usr-host/src
, sobpftrace
can still find the kernel headers through the symlink.However, in #104 this symlink seems to be removed, leaving
/usr/src/
empty.Consequently,
bpftrace
is not able to find the kernel headers, which causes/bpftrace/include/clang_workarounds.h:14:10: fatal error: 'linux/types.h' file not found
. This repo has multiple issues regarding this error.I guess re-linking
/usr/src
to/usr-host
could fix this problem.The text was updated successfully, but these errors were encountered: