Open Des333 opened 3 years ago
Hello @Des333
Thank you for filing this issue.
You can avoid this issue by passing a KERENL_VERSION environment variable.
In ubuntu 20.04
$ KERNEL_VERSION=5.4.0-81-generic cargo build
In ubuntu 18.04
$ KERNEL_VERSION=4.19.5-041905-generic cargo build
While building redbpf-probe
, its build script tries to find the Linux kernel
headers of the currently running Linux kernel version. To find the headers,
it calls uname
system call and gets information about the kernel. But in
the docker container the uname
system call returns the information about a host
kernel and the build script of redbpf-probes
can not correctly locate the
kernel headers in /lib/modules
directory.
In this case, users can fix this problem by setting KERNEL_VERSION
environment variable.
I think that redbpf-probes
should emit different error messages to give users
more transparent hint.. I'll consider a better method for this case.
Thank you
Hi!
I have successfully build docker image from https://github.com/foniod/build-images:
Then I run docker image:
And tried to build the release:
Build failed with:
And a few dozen similar errors, see full build log in attach: cargo-build.log
The following combinations ended with a similar error:
Host kernel: