xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

experiment01-tailgrow can't comipile succ

Open dark520xiang opened this issue 3 years ago • 1 comments

root@l406-tracker-02:/home/xdpopt/xdp-tutorial/experiment01-tailgrow# make clang -S
-target bpf
-D BPF_TRACING
-I../libbpf/src//build/usr/include/ -I../headers/
-Wall
-Wno-unused-value
-Wno-pointer-sign
-Wno-compare-distinct-pointer-types
-Werror
-O2 -emit-llvm -c -g -o xdp_prog_kern4.ll xdp_prog_kern4.c In file included from xdp_prog_kern4.c:5: ./xdp_data_access_helpers.h:49:10: error: unknown register name 'r1' in asm : "r1", "r2"); ^ ./xdp_data_access_helpers.h:75:10: error: unknown register name 'r1' in asm : "r1", "r2"); ^ 2 errors generated.

I can't solve the error.

dark520xiang avatar Dec 09 '20 03:12 dark520xiang

@netoptimizer I believe this one is yours :)

tohojo avatar Dec 09 '20 11:12 tohojo