$ clang -O2 -target bpf -c bpf_program.c -o bpf_program.o 2023-10-26 23:11:30
In file included from main.c:1:
In file included from /usr/include/linux/bpf.h:11:
/usr/include/linux/types.h:5:10: fatal error: 'asm/types.h' file not found
#include <asm/types.h>
^~~~~~~~~~~~~
1 error generated.
解決方法:
apt-get install -y gcc-multilib
這樣就可以了