On (04/25/20 14:56), Jesper Dangaard Brouer wrote: > > The kernel's samples/bpf/ should still builds with LLVM-9 (and lower). > Follow instructions in the README.rst file[1]. > > There are pre-build Debian and Ubuntu packages for LLVM-10 here: > https://apt.llvm.org/ thanks that helped me install llvm-10 However, after all my adventures, I end up with # ls /usr/bin/llc* /usr/bin/llc /usr/bin/llc-10 /usr/bin/llc-5.0 /usr/bin/llc-6.0 /usr/bin/llc-7 and the default points at 6.0 so I had to go and tweak Makefile to use clang-10 and llc-10 After that, samples builds and runs (thanks for that hint!). But not selftests. However, samples is good enough for my experiments, for now. > I suggest you start with the XDP-tutorial[2], it (still) works with older > LLVM versions: [2] https://github.com/xdp-project/xdp-tutorial will do. --Sowmini