Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

unable to build the code base #44

Open
reachrkr opened this issue Jun 23, 2017 · 3 comments
Open

unable to build the code base #44

reachrkr opened this issue Jun 23, 2017 · 3 comments

Comments

@reachrkr
Copy link

reachrkr commented Jun 23, 2017

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

============

@schu
Copy link
Contributor

schu commented Jun 23, 2017

It requires another clang pragma; see c3113a6 which is part of #43

@reachrkr
Copy link
Author

thanks @schu so #43 is yet to be merged ?

@schu
Copy link
Contributor

schu commented Jun 23, 2017

so #43 is yet to be merged?

Yes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants