$ clang -O2 -target bpf -c bpf_program.c -o bpf_program.o 2023-10-26 23:11:30In 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
这样就可以了