failed to run examples
yuzhichang opened this issue · comments
Zhichang Yu commented
I tried several examples, none runs.
eoi@ck16:/data01/zhichyu/ebpf-manager/examples/tests_and_benchmarks$ uname -a
Linux ck16 3.10.0-1160.66.1.el7.x86_64 #1 SMP Wed May 18 16:02:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
eoi@ck16:/data01/zhichyu/ebpf-manager/examples/tests_and_benchmarks$ clang --version
clang version 14.0.5 (https://github.com/llvm/llvm-project.git c12386ae247c0d46e1d513942e322e3a0510b126)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
eoi@ck16:/data01/zhichyu/ebpf-manager/examples/tests_and_benchmarks$ make
mkdir -p ebpf/bin
clang -D__KERNEL__ -D__ASM_SYSREG_H \
-Wno-unused-value \
-Wno-pointer-sign \
-Wno-compare-distinct-pointer-types \
-Wunused \
-Wall \
-Werror \
-I/lib/modules/$(uname -r)/build/include \
-I/lib/modules/$(uname -r)/build/include/uapi \
-I/lib/modules/$(uname -r)/build/include/generated/uapi \
-I/lib/modules/$(uname -r)/build/arch/x86/include \
-I/lib/modules/$(uname -r)/build/arch/x86/include/uapi \
-I/lib/modules/$(uname -r)/build/arch/x86/include/generated \
-O2 -emit-llvm \
ebpf/main.c \
-c -o - | llc -march=bpf -filetype=obj -o ebpf/bin/probe.o
go-bindata -pkg main -prefix "ebpf/bin" -o "probe.go" "ebpf/bin/probe.o"
go build -o bin/main .
sudo bin/main
FATA[0000] couldn't find asset: Asset /probe.o not found
make: *** [run] Error 1
Bryce Kahle commented
@yuzhichang Are you potentially getting a compilation error? If so, can you post it here.
Bryce Kahle commented
I'm going to close this, since a lot has changed since you opened this issue. If you still have a problem building, please open a new issue.