You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
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 -D__KERNEL__ -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
============
The text was updated successfully, but these errors were encountered:
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 -D__KERNEL__ -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
============
The text was updated successfully, but these errors were encountered: