arm64: 'asm/types.h' file not found
Hi there,
I'm trying to use bcc tools 0.17.0-ad5b82a5 on a arm64. Python version is 3.9, Kernel version is 5.10.109, and I have the kernel headers installed on the file system.
When trying to use any tool, I'm getting the following error:
./tcptop
In file included from
Referring to issue #3731 I tried setting the environment variable BCC_KERNEL_SOURCE, but the result is the same. Anyway, this issue is relevant to x86-64, my case is arm64.
Can you advise?
Thanks,
Nir.
Hi,
any comment would be appreciated.
Have you tried all advices in #3731 ? I don't have a arm64 device to reproduce this.
Hi,
I tried all kinds of symbolic links like /usr/include/aarch64-linux-gnu/asm -> /usr/include/asm
I also tried setting the environment variable BCC_KERNEL_SOURCE pointing it to the kernel headers on my file system, /lib/modules/5.10.109-tq+g7545a39531f6-tq/build/
the result is always the same.
If possible, I'm looking for an elegant solution that doesn't involve editing the linux kernel headers or copying files from one directory to another.
Thanks,
Nir.
Does anybody have experience with using bcc tools on arm64?
I had met the same error before, but link /usr/include/asm to /usr/include$(uname -m)-linux-gnu/asm solved this. Maybe you need to check if asm/types.h exists or search on the system to find one. Just FYI.
I met the same problem when I using bcc tools on arm64.
When I connect debian with ssh on CentOS7(WSL), I met the same problem
But It won't happened on Ubuntu20.04(WSL)