leodido / traffico

Shape your traffic the BPF way
BSD 3-Clause "New" or "Revised" License
77 stars 2 forks source link

xmake error: cannot import module: main, not found! #13

Open shadychan opened 1 year ago

shadychan commented 1 year ago
root@linux:~/traffico# xmake f --generate-vmlinux=y
error: cannot import module: main, not found!

Can anyone tell how to solve this build error? thanks

fntlnz commented 1 year ago

strange, what is your xmake version? Also you should not run that as root, I remember xmake doens't allow you to do that by default.

fntlnz commented 1 year ago

can you run

 xmake -v -D f --generate-vmlinux=y