Started by upstream project "bcc-pr" build number 802 originally caused by: GitHub pull request #3225 of commit 1459fc2e86c99dac3f5ace47db66d9b9d87f3240, no merge conflicts. Running as SYSTEM Building remotely on ubuntu1804-slave-8a8 (ubuntu1804) in workspace /home/iovisor/jenkins/workspace/bcc-pr/label/ubuntu1804 No credentials specified Cloning the remote Git repository Cloning repository https://github.com/iovisor/bcc.git > git init /home/iovisor/jenkins/workspace/bcc-pr/label/ubuntu1804 # timeout=10 Fetching upstream changes from https://github.com/iovisor/bcc.git > git --version # timeout=10 > git fetch --tags --progress -- https://github.com/iovisor/bcc.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/iovisor/bcc.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/iovisor/bcc.git # timeout=10 Fetching upstream changes from https://github.com/iovisor/bcc.git > git fetch --tags --progress -- https://github.com/iovisor/bcc.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://wiki.jenkins.io/display/JENKINS/Remove+Git+Plugin+BuildsByBranch+BuildData Checking out Revision e17631db073c42ddc5e2f8e5e6e8284e2299af52 (refs/remotes/origin/pr/3225/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f e17631db073c42ddc5e2f8e5e6e8284e2299af52 # timeout=10 Commit message: "Merge 1459fc2e86c99dac3f5ace47db66d9b9d87f3240 into 1cb5026e6f1d8dc7ca115cae579be4c53bec0c9e" First time build. Skipping changelog. Run condition [Execute Shell] enabling prebuild for step [Execute shell] Run condition [Execute Shell] enabling prebuild for step [Execute shell] [ubuntu1804] $ /bin/sh -xe /tmp/CommandInterpreterCondition7871977064987610612.sh + grep -q ^ID=fedora /etc/os-release Run condition [Execute Shell] preventing perform for step [Execute shell] [ubuntu1804] $ /bin/sh -xe /tmp/CommandInterpreterCondition353088396967928242.sh + grep -q ^ID=ubuntu /etc/os-release Run condition [Execute Shell] enabling perform for step [Execute shell] [ubuntu1804] $ /bin/sh -xe /tmp/jenkins1028331726414298368.sh + git clean -df + seq 1 30 + sudo fuser /var/lib/dpkg/lock + break + sudo dpkg -r bcc-tools libbcc libbcc-examples python-bcc bcc-lua dpkg: warning: ignoring request to remove bcc-tools which isn't installed dpkg: warning: ignoring request to remove libbcc which isn't installed dpkg: warning: ignoring request to remove libbcc-examples which isn't installed dpkg: warning: ignoring request to remove python-bcc which isn't installed dpkg: warning: ignoring request to remove bcc-lua which isn't installed + rm -rf build + ./scripts/build-deb.sh test + set -e + PARALLEL=2 ++ mktemp -d /tmp/debuild.XXXXXX + TMP=/tmp/debuild.4DH9i0 + trap cleanup EXIT + git submodule update --init --recursive Submodule 'src/cc/libbpf' (https://github.com/libbpf/libbpf.git) registered for path 'src/cc/libbpf' Cloning into '/home/iovisor/jenkins/workspace/bcc-pr/label/ubuntu1804/src/cc/libbpf'... Submodule path 'src/cc/libbpf': checked out '33b017498543167b65fa948d3a0267794c78787f' + . scripts/git-tag.sh +++ git describe --tags --abbrev=0 ++ git_tag_latest=v0.18.0 +++ git rev-list v0.18.0.. --count ++ git_rev_count=5 ++ git_rev_count=6 +++ git log --pretty=%s -n 1 ++ git_subject='Merge 1459fc2e86c99dac3f5ace47db66d9b9d87f3240 into 1cb5026e6f1d8dc7ca115cae579be4c53bec0c9e' ++ release=6 ++ [[ 6 != \1 ]] +++ git log --pretty=%h -n 1 ++ release=6.git.e17631db ++ revision=0.18.0 + git archive HEAD --prefix=bcc/ --format=tar -o /tmp/debuild.4DH9i0/bcc_0.18.0.orig.tar + pushd src/cc/libbpf ~/jenkins/workspace/bcc-pr/label/ubuntu1804/src/cc/libbpf ~/jenkins/workspace/bcc-pr/label/ubuntu1804 + git archive HEAD --prefix=bcc/src/cc/libbpf/ --format=tar -o /tmp/debuild.4DH9i0/bcc_libbpf_0.18.0.orig.tar + popd ~/jenkins/workspace/bcc-pr/label/ubuntu1804 + pushd /tmp/debuild.4DH9i0 /tmp/debuild.4DH9i0 ~/jenkins/workspace/bcc-pr/label/ubuntu1804 + tar -A -f bcc_0.18.0.orig.tar bcc_libbpf_0.18.0.orig.tar + gzip bcc_0.18.0.orig.tar + tar xf bcc_0.18.0.orig.tar.gz + cd bcc + debuild=debuild + [[ test = \t\e\s\t ]] + debuild+=' --preserve-envvar PATH' + echo -e '#!/bin/bash\nexec /usr/bin/dpkg-deb -z1 "$@"' + sudo tee /usr/local/bin/dpkg-deb #!/bin/bash exec /usr/bin/dpkg-deb -z1 "$@" + sudo chmod +x /usr/local/bin/dpkg-deb + dch -b -v 0.18.0-6.git.e17631db 'Merge 1459fc2e86c99dac3f5ace47db66d9b9d87f3240 into 1cb5026e6f1d8dc7ca115cae579be4c53bec0c9e' + [[ test = \n\i\g\h\t\l\y ]] + DEB_BUILD_OPTIONS='nocheck parallel=2' + debuild --preserve-envvar PATH -us -uc dpkg-buildpackage -rfakeroot -us -uc -ui dpkg-buildpackage: info: source package bcc dpkg-buildpackage: info: source version 0.18.0-6.git.e17631db dpkg-buildpackage: info: source distribution UNRELEASED dpkg-buildpackage: info: source changed by Yonghong Song <iovisor@ubuntu1804-slave-8a8.c.io-visor.internal> dpkg-source --before-build bcc dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean dh clean --buildsystem=cmake --parallel --with python2,python3 dh_auto_clean -O--buildsystem=cmake -O--parallel dh_clean -O--buildsystem=cmake -O--parallel dpkg-source -b bcc dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building bcc using existing ./bcc_0.18.0.orig.tar.gz dpkg-source: info: building bcc in bcc_0.18.0-6.git.e17631db.debian.tar.xz dpkg-source: info: building bcc in bcc_0.18.0-6.git.e17631db.dsc debian/rules build dh build --buildsystem=cmake --parallel --with python2,python3 dh_update_autotools_config -O--buildsystem=cmake -O--parallel debian/rules override_dh_auto_configure make[1]: Entering directory '/tmp/debuild.4DH9i0/bcc' dh_auto_configure -- -DREVISION_LAST=0.18.0 -DREVISION=0.18.0 -DLLVM_DEFINITIONS="-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" -DPYTHON_CMD="python2;python3" cd obj-x86_64-linux-gnu && cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DREVISION_LAST=0.18.0 -DREVISION=0.18.0 "-DLLVM_DEFINITIONS=-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS" -DPYTHON_CMD=python2\;python3 -- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Revision is 0.18.0 -- Performing Test HAVE_NO_PIE_FLAG -- Performing Test HAVE_NO_PIE_FLAG - Success -- Performing Test HAVE_REALLOCARRAY_SUPPORT -- Performing Test HAVE_REALLOCARRAY_SUPPORT - Success -- Found LLVM: /usr/lib/llvm-6.0/include 6.0.0 -- Found BISON: /usr/bin/bison (found version "3.0.4") -- Found FLEX: /usr/bin/flex (found version "2.6.4") -- Found LibElf: /usr/lib/x86_64-linux-gnu/libelf.so -- Performing Test ELF_GETSHDRSTRNDX -- Performing Test ELF_GETSHDRSTRNDX - Success -- Using static-libstdc++ -- Found LuaJIT: /usr/lib/x86_64-linux-gnu/libluajit-5.1.a;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY -- Build files have been written to: /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu make[1]: Leaving directory '/tmp/debuild.4DH9i0/bcc' dh_auto_build -O--buildsystem=cmake -O--parallel cd obj-x86_64-linux-gnu && make -j2 -O make[1]: Entering directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' /usr/bin/cmake -H/tmp/debuild.4DH9i0/bcc -B/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0 make[1]: Leaving directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' make[1]: Entering directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' /usr/bin/cmake -E cmake_progress_start /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/CMakeFiles /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/CMakeFiles/progress.marks make[1]: Leaving directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' make -f CMakeFiles/Makefile2 all make -f src/cc/CMakeFiles/bpf-shared.dir/build.make src/cc/CMakeFiles/bpf-shared.dir/depend make -f src/cc/CMakeFiles/bpf-static.dir/build.make src/cc/CMakeFiles/bpf-static.dir/depend make[3]: Entering directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' cd /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/debuild.4DH9i0/bcc /tmp/debuild.4DH9i0/bcc/src/cc /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc/CMakeFiles/bpf-static.dir/DependInfo.cmake --color= Scanning dependencies of target bpf-static make[3]: Leaving directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' make[3]: Entering directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' cd /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/debuild.4DH9i0/bcc /tmp/debuild.4DH9i0/bcc/src/cc /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc/CMakeFiles/bpf-shared.dir/DependInfo.cmake --color= Scanning dependencies of target bpf-shared make[3]: Leaving directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' make -f src/cc/CMakeFiles/bpf-shared.dir/build.make src/cc/CMakeFiles/bpf-shared.dir/build make -f src/cc/CMakeFiles/bpf-static.dir/build.make src/cc/CMakeFiles/bpf-static.dir/build make[3]: Entering directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' [ 0%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o cd /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc && /usr/bin/cc -Dbpf_shared_EXPORTS -I/usr/lib/llvm-6.0/include/../tools/clang/include -I/tmp/debuild.4DH9i0/bcc/src -I/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src -I/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc -I/tmp/debuild.4DH9i0/bcc/src/cc -I/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc/frontends/b -I/tmp/debuild.4DH9i0/bcc/src/cc/frontends/b -I/tmp/debuild.4DH9i0/bcc/src/cc/frontends/clang -I/usr/lib/llvm-6.0/include -I/tmp/debuild.4DH9i0/bcc/src/cc/libbpf/include -I/tmp/debuild.4DH9i0/bcc/src/cc/libbpf/include/uapi -g -O2 -fdebug-prefix-map=/tmp/debuild.4DH9i0/bcc=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -fPIC -Wno-unused-result -fPIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/bpf-shared.dir/libbpf.c.o -c /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c In file included from /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:49:0: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.h:147:40: warning: ‘union bpf_iter_link_info’ declared inside parameter list will not be visible outside of this definition or declaration int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info, ^~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_prog_load_xattr’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:603:30: error: ‘BPF_TRACE_FENTRY’ undeclared (first use in this function); did you mean ‘BPF_PROBE_ENTRY’? expected_attach_type = BPF_TRACE_FENTRY; ^~~~~~~~~~~~~~~~ BPF_PROBE_ENTRY /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:603:30: note: each undeclared identifier is reported only once for each function it appears in /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:606:30: error: ‘BPF_TRACE_FEXIT’ undeclared (first use in this function); did you mean ‘BPF_TRACE_FENTRY’? expected_attach_type = BPF_TRACE_FEXIT; ^~~~~~~~~~~~~~~ BPF_TRACE_FENTRY /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:609:30: error: ‘BPF_LSM_MAC’ undeclared (first use in this function); did you mean ‘BPF_LDX_MEM’? expected_attach_type = BPF_LSM_MAC; ^~~~~~~~~~~ BPF_LDX_MEM /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:612:30: error: ‘BPF_TRACE_ITER’ undeclared (first use in this function); did you mean ‘BPF_TRACE_FEXIT’? expected_attach_type = BPF_TRACE_ITER; ^~~~~~~~~~~~~~ BPF_TRACE_FEXIT /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:615:28: error: ‘BPF_PROG_TYPE_TRACING’ undeclared (first use in this function); did you mean ‘BPF_PROG_TYPE_TRACEPOINT’? if (attr->prog_type == BPF_PROG_TYPE_TRACING || ^~~~~~~~~~~~~~~~~~~~~ BPF_PROG_TYPE_TRACEPOINT /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:616:28: error: ‘BPF_PROG_TYPE_LSM’ undeclared (first use in this function); did you mean ‘BPF_PROG_TYPE_XDP’? attr->prog_type == BPF_PROG_TYPE_LSM) { ^~~~~~~~~~~~~~~~~ BPF_PROG_TYPE_XDP /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:617:13: warning: implicit declaration of function ‘libbpf_find_vmlinux_btf_id’ [-Wimplicit-function-declaration] ret = libbpf_find_vmlinux_btf_id(attr->name + name_offset, ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:628:11: error: ‘struct bpf_load_program_attr’ has no member named ‘attach_btf_id’ attr->attach_btf_id = ret; ^~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_prog_load’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:756:20: error: ‘BPF_PROG_TYPE_TRACING’ undeclared (first use in this function); did you mean ‘BPF_PROG_TYPE_TRACEPOINT’? if (prog_type != BPF_PROG_TYPE_TRACING && prog_type != BPF_PROG_TYPE_EXT) ^~~~~~~~~~~~~~~~~~~~~ BPF_PROG_TYPE_TRACEPOINT /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:756:58: error: ‘BPF_PROG_TYPE_EXT’ undeclared (first use in this function); did you mean ‘BPF_PROG_TYPE_XDP’? if (prog_type != BPF_PROG_TYPE_TRACING && prog_type != BPF_PROG_TYPE_EXT) ^~~~~~~~~~~~~~~~~ BPF_PROG_TYPE_XDP /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_new_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1457:12: warning: implicit declaration of function ‘ring_buffer__new’ [-Wimplicit-function-declaration] return ring_buffer__new(map_fd, sample_cb, ctx, NULL); ^~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1457:12: warning: return makes pointer from integer without a cast [-Wint-conversion] return ring_buffer__new(map_fd, sample_cb, ctx, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_free_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1462:5: warning: implicit declaration of function ‘ring_buffer__free’ [-Wimplicit-function-declaration] ring_buffer__free(rb); ^~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_add_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1469:12: warning: implicit declaration of function ‘ring_buffer__add’ [-Wimplicit-function-declaration] return ring_buffer__add(rb, map_fd, sample_cb, ctx); ^~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_poll_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1476:12: warning: implicit declaration of function ‘ring_buffer__poll’ [-Wimplicit-function-declaration] return ring_buffer__poll(rb, timeout_ms); ^~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_consume_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1483:12: warning: implicit declaration of function ‘ring_buffer__consume’ [-Wimplicit-function-declaration] return ring_buffer__consume(rb); ^~~~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: At top level: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1486:40: warning: ‘union bpf_iter_link_info’ declared inside parameter list will not be visible outside of this definition or declaration int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info, ^~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1486:5: error: conflicting types for ‘bcc_iter_attach’ int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info, ^~~~~~~~~~~~~~~ In file included from /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:49:0: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.h:147:5: note: previous declaration of ‘bcc_iter_attach’ was here int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info, ^~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_iter_attach’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1489:5: warning: implicit declaration of function ‘DECLARE_LIBBPF_OPTS’ [-Wimplicit-function-declaration] DECLARE_LIBBPF_OPTS(bpf_link_create_opts, link_create_opts); ^~~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1489:25: error: ‘bpf_link_create_opts’ undeclared (first use in this function); did you mean ‘bpf_create_map’? DECLARE_LIBBPF_OPTS(bpf_link_create_opts, link_create_opts); ^~~~~~~~~~~~~~~~~~~~ bpf_create_map /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1489:47: error: ‘link_create_opts’ undeclared (first use in this function); did you mean ‘bpf_link_create_opts’? DECLARE_LIBBPF_OPTS(bpf_link_create_opts, link_create_opts); ^~~~~~~~~~~~~~~~ bpf_link_create_opts /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1493:12: warning: implicit declaration of function ‘bpf_link_create’; did you mean ‘bcc_iter_create’? [-Wimplicit-function-declaration] return bpf_link_create(prog_fd, 0, BPF_TRACE_ITER, &link_create_opts); ^~~~~~~~~~~~~~~ bcc_iter_create /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1493:40: error: ‘BPF_TRACE_ITER’ undeclared (first use in this function); did you mean ‘BPF_TCP_LISTEN’? return bpf_link_create(prog_fd, 0, BPF_TRACE_ITER, &link_create_opts); ^~~~~~~~~~~~~~ BPF_TCP_LISTEN /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_iter_create’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1498:12: warning: implicit declaration of function ‘bpf_iter_create’; did you mean ‘bcc_iter_create’? [-Wimplicit-function-declaration] return bpf_iter_create(link_fd); ^~~~~~~~~~~~~~~ bcc_iter_create /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_iter_attach’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1494:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ src/cc/CMakeFiles/bpf-shared.dir/build.make:65: recipe for target 'src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o' failed make[3]: *** [src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o] Error 1 make[3]: Leaving directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' make[3]: Entering directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' [ 0%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o cd /tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc && /usr/bin/cc -I/usr/lib/llvm-6.0/include/../tools/clang/include -I/tmp/debuild.4DH9i0/bcc/src -I/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src -I/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc -I/tmp/debuild.4DH9i0/bcc/src/cc -I/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu/src/cc/frontends/b -I/tmp/debuild.4DH9i0/bcc/src/cc/frontends/b -I/tmp/debuild.4DH9i0/bcc/src/cc/frontends/clang -I/usr/lib/llvm-6.0/include -I/tmp/debuild.4DH9i0/bcc/src/cc/libbpf/include -I/tmp/debuild.4DH9i0/bcc/src/cc/libbpf/include/uapi -g -O2 -fdebug-prefix-map=/tmp/debuild.4DH9i0/bcc=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -fPIC -Wno-unused-result -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -o CMakeFiles/bpf-static.dir/libbpf.c.o -c /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c In file included from /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:49:0: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.h:147:40: warning: ‘union bpf_iter_link_info’ declared inside parameter list will not be visible outside of this definition or declaration int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info, ^~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_prog_load_xattr’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:603:30: error: ‘BPF_TRACE_FENTRY’ undeclared (first use in this function); did you mean ‘BPF_PROBE_ENTRY’? expected_attach_type = BPF_TRACE_FENTRY; ^~~~~~~~~~~~~~~~ BPF_PROBE_ENTRY /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:603:30: note: each undeclared identifier is reported only once for each function it appears in /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:606:30: error: ‘BPF_TRACE_FEXIT’ undeclared (first use in this function); did you mean ‘BPF_TRACE_FENTRY’? expected_attach_type = BPF_TRACE_FEXIT; ^~~~~~~~~~~~~~~ BPF_TRACE_FENTRY /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:609:30: error: ‘BPF_LSM_MAC’ undeclared (first use in this function); did you mean ‘BPF_LDX_MEM’? expected_attach_type = BPF_LSM_MAC; ^~~~~~~~~~~ BPF_LDX_MEM /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:612:30: error: ‘BPF_TRACE_ITER’ undeclared (first use in this function); did you mean ‘BPF_TRACE_FEXIT’? expected_attach_type = BPF_TRACE_ITER; ^~~~~~~~~~~~~~ BPF_TRACE_FEXIT /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:615:28: error: ‘BPF_PROG_TYPE_TRACING’ undeclared (first use in this function); did you mean ‘BPF_PROG_TYPE_TRACEPOINT’? if (attr->prog_type == BPF_PROG_TYPE_TRACING || ^~~~~~~~~~~~~~~~~~~~~ BPF_PROG_TYPE_TRACEPOINT /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:616:28: error: ‘BPF_PROG_TYPE_LSM’ undeclared (first use in this function); did you mean ‘BPF_PROG_TYPE_XDP’? attr->prog_type == BPF_PROG_TYPE_LSM) { ^~~~~~~~~~~~~~~~~ BPF_PROG_TYPE_XDP /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:617:13: warning: implicit declaration of function ‘libbpf_find_vmlinux_btf_id’ [-Wimplicit-function-declaration] ret = libbpf_find_vmlinux_btf_id(attr->name + name_offset, ^~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:628:11: error: ‘struct bpf_load_program_attr’ has no member named ‘attach_btf_id’ attr->attach_btf_id = ret; ^~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_prog_load’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:756:20: error: ‘BPF_PROG_TYPE_TRACING’ undeclared (first use in this function); did you mean ‘BPF_PROG_TYPE_TRACEPOINT’? if (prog_type != BPF_PROG_TYPE_TRACING && prog_type != BPF_PROG_TYPE_EXT) ^~~~~~~~~~~~~~~~~~~~~ BPF_PROG_TYPE_TRACEPOINT /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:756:58: error: ‘BPF_PROG_TYPE_EXT’ undeclared (first use in this function); did you mean ‘BPF_PROG_TYPE_XDP’? if (prog_type != BPF_PROG_TYPE_TRACING && prog_type != BPF_PROG_TYPE_EXT) ^~~~~~~~~~~~~~~~~ BPF_PROG_TYPE_XDP /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_new_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1457:12: warning: implicit declaration of function ‘ring_buffer__new’ [-Wimplicit-function-declaration] return ring_buffer__new(map_fd, sample_cb, ctx, NULL); ^~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1457:12: warning: return makes pointer from integer without a cast [-Wint-conversion] return ring_buffer__new(map_fd, sample_cb, ctx, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_free_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1462:5: warning: implicit declaration of function ‘ring_buffer__free’ [-Wimplicit-function-declaration] ring_buffer__free(rb); ^~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_add_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1469:12: warning: implicit declaration of function ‘ring_buffer__add’ [-Wimplicit-function-declaration] return ring_buffer__add(rb, map_fd, sample_cb, ctx); ^~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_poll_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1476:12: warning: implicit declaration of function ‘ring_buffer__poll’ [-Wimplicit-function-declaration] return ring_buffer__poll(rb, timeout_ms); ^~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bpf_consume_ringbuf’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1483:12: warning: implicit declaration of function ‘ring_buffer__consume’ [-Wimplicit-function-declaration] return ring_buffer__consume(rb); ^~~~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: At top level: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1486:40: warning: ‘union bpf_iter_link_info’ declared inside parameter list will not be visible outside of this definition or declaration int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info, ^~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1486:5: error: conflicting types for ‘bcc_iter_attach’ int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info, ^~~~~~~~~~~~~~~ In file included from /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:49:0: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.h:147:5: note: previous declaration of ‘bcc_iter_attach’ was here int bcc_iter_attach(int prog_fd, union bpf_iter_link_info *link_info, ^~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_iter_attach’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1489:5: warning: implicit declaration of function ‘DECLARE_LIBBPF_OPTS’ [-Wimplicit-function-declaration] DECLARE_LIBBPF_OPTS(bpf_link_create_opts, link_create_opts); ^~~~~~~~~~~~~~~~~~~ /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1489:25: error: ‘bpf_link_create_opts’ undeclared (first use in this function); did you mean ‘bpf_create_map’? DECLARE_LIBBPF_OPTS(bpf_link_create_opts, link_create_opts); ^~~~~~~~~~~~~~~~~~~~ bpf_create_map /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1489:47: error: ‘link_create_opts’ undeclared (first use in this function); did you mean ‘bpf_link_create_opts’? DECLARE_LIBBPF_OPTS(bpf_link_create_opts, link_create_opts); ^~~~~~~~~~~~~~~~ bpf_link_create_opts /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1493:12: warning: implicit declaration of function ‘bpf_link_create’; did you mean ‘bcc_iter_create’? [-Wimplicit-function-declaration] return bpf_link_create(prog_fd, 0, BPF_TRACE_ITER, &link_create_opts); ^~~~~~~~~~~~~~~ bcc_iter_create /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1493:40: error: ‘BPF_TRACE_ITER’ undeclared (first use in this function); did you mean ‘BPF_TCP_LISTEN’? return bpf_link_create(prog_fd, 0, BPF_TRACE_ITER, &link_create_opts); ^~~~~~~~~~~~~~ BPF_TCP_LISTEN /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_iter_create’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1498:12: warning: implicit declaration of function ‘bpf_iter_create’; did you mean ‘bcc_iter_create’? [-Wimplicit-function-declaration] return bpf_iter_create(link_fd); ^~~~~~~~~~~~~~~ bcc_iter_create /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c: In function ‘bcc_iter_attach’: /tmp/debuild.4DH9i0/bcc/src/cc/libbpf.c:1494:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ src/cc/CMakeFiles/bpf-static.dir/build.make:65: recipe for target 'src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o' failed make[3]: *** [src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o] Error 1 make[3]: Leaving directory '/tmp/debuild.4DH9i0/bcc/obj-x86_64-linux-gnu' CMakeFiles/Makefile2:160: recipe for target 'src/cc/CMakeFiles/bpf-shared.dir/all' failed make[2]: *** [src/cc/CMakeFiles/bpf-shared.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:197: recipe for target 'src/cc/CMakeFiles/bpf-static.dir/all' failed make[2]: *** [src/cc/CMakeFiles/bpf-static.dir/all] Error 2 Makefile:143: recipe for target 'all' failed make[1]: *** [all] Error 2 dh_auto_build: cd obj-x86_64-linux-gnu && make -j2 -O returned exit code 2 debian/rules:12: recipe for target 'build' failed make: *** [build] Error 25 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 debuild: fatal error at line 1152: dpkg-buildpackage -rfakeroot -us -uc -ui failed + cleanup + [[ -d /tmp/debuild.4DH9i0 ]] + rm -rf /tmp/debuild.4DH9i0 Build step 'Conditional step (single)' marked build as failure Taking single-use slave ubuntu1804-slave-8a8 offline. Finished: FAILURE