Open reachrkr opened 7 years ago
It requires another clang pragma; see https://github.com/weaveworks/tcptracer-bpf/pull/43/commits/c3113a625af78739f8e117b3b1198b937cace795 which is part of #43
thanks @schu so #43 is yet to be merged ?
so #43 is yet to be merged?
Yes.
hi ,
I am unable to build code base . it fails with following errors Any pointers . Are their any pre setup needed ?
Successfully tagged weaveworks/tcptracer-bpf-builder:latest docker run --rm -e DEBUG=1 \ -e CIRCLE_BUILD_URL= \ -v /tmp/tcptracer-bpf:/src:ro \ -v /tmp/tcptracer-bpf/ebpf:/dist/ \ --workdir=/src \ weaveworks/tcptracer-bpf-builder \ make -f ebpf.mk build clang -DKERNEL -D__ASM_SYSREG_H \ -DCIRCLE_BUILD_URL=\"\" \ -Wno-unused-value \ -Wno-pointer-sign \ -Wno-compare-distinct-pointer-types \ -Wunused \ -Wall \ -Werror \ -O2 -emit-llvm -c tcptracer-bpf.c \ -I /usr/src/kernels/4.11.5-200.fc25.x86_64/arch/x86/include -I /usr/src/kernels/4.11.5-200.fc25.x86_64/arch/x86/include/generated -I /usr/src/kernels/4.11.5-200.fc25.x86_64/include -I /usr/src/kernels/4.11.5-200.fc25.x86_64/include/generated/uapi -I /usr/src/kernels/4.11.5-200.fc25.x86_64/arch/x86/include/uapi -I /usr/src/kernels/4.11.5-200.fc25.x86_64/include/uapi \ -o - | llc -march=bpf -filetype=obj -o "/dist/tcptracer-ebpf.o" In file included from tcptracer-bpf.c:14: In file included from /usr/src/kernels/4.11.5-200.fc25.x86_64/include/net/sock.h:51: In file included from /usr/src/kernels/4.11.5-200.fc25.x86_64/include/linux/netdevice.h:48: In file included from /usr/src/kernels/4.11.5-200.fc25.x86_64/include/net/netprio_cgroup.h:17: In file included from /usr/src/kernels/4.11.5-200.fc25.x86_64/include/linux/cgroup.h:26: /usr/src/kernels/4.11.5-200.fc25.x86_64/include/linux/cgroup-defs.h:327:16: error: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] struct cgroup cgrp; ^ 1 error generated. ebpf.mk:6: recipe for target 'build' failed make: [build] Error 1 make: [Makefile:17: build-ebpf-object] Error 2
============== My linux env :
[rajesh@rkr tcptracer-bpf]$ uname -a Linux rkr 4.9.25-1-lts #1 SMP Thu Apr 27 16:42:36 CEST 2017 x86_64 GNU/Linux
[rajesh@rkr tcptracer-bpf]$ docker --version Docker version 17.05.0-ce, build 89658bed64
============