Console Output

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 fedora28-slave-2ef (fc28) in workspace /home/fedora/jenkins/workspace/bcc-pr/label/fc28
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/iovisor/bcc.git
 > git init /home/fedora/jenkins/workspace/bcc-pr/label/fc28 # 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]
[fc28] $ /bin/sh -xe /tmp/CommandInterpreterCondition7107800191706048265.sh
+ grep -q '^ID=fedora' /etc/os-release
Run condition [Execute Shell] enabling perform for step [Execute shell]
[fc28] $ /bin/sh -xe /tmp/jenkins152896933565251704.sh
+ git clean -df
+ sudo dnf erase -y bcc-tools libbcc libbcc-examples python-bcc bcc-lua
No match for argument: bcc-tools
No match for argument: libbcc
No match for argument: libbcc-examples
No match for argument: python-bcc
No match for argument: bcc-lua
Error: No packages marked for removal.
+ :
+ rm -rf build
+ export PATH=/opt/local/llvm/bin:/usr/local/bin:/usr/bin
+ PATH=/opt/local/llvm/bin:/usr/local/bin:/usr/bin
+ ./scripts/build-rpm.sh
+ set -e
++ mktemp -d /tmp/rpmbuild.XXXXXX
+ TMP=/tmp/rpmbuild.lEwBXk
+ trap cleanup EXIT
+ '[' -f os-release ']'
+ [[ '' -lt 30 ]]
+ PKGS='python3-cachetools python-cachetools'
+ sudo dnf install -y python3-cachetools python-cachetools
Fedora 28 - x86_64 - Updates                     24 MB/s |  30 MB     00:01    
Fedora 28 - x86_64                               32 MB/s |  60 MB     00:01    
Last metadata expiration check: 0:00:09 ago on Wed 13 Jan 2021 09:21:03 PM UTC.
Dependencies resolved.
================================================================================
 Package                  Arch         Version               Repository    Size
================================================================================
Installing:
 python2-cachetools       noarch       2.0.1-4.fc28          fedora        30 k
 python3-cachetools       noarch       2.0.1-4.fc28          fedora        31 k

Transaction Summary
================================================================================
Install  2 Packages

Total download size: 61 k
Installed size: 142 k
Downloading Packages:
(1/2): python3-cachetools-2.0.1-4.fc28.noarch.r 141 kB/s |  31 kB     00:00    
(2/2): python2-cachetools-2.0.1-4.fc28.noarch.r 139 kB/s |  30 kB     00:00    
--------------------------------------------------------------------------------
Total                                           118 kB/s |  61 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : python2-cachetools-2.0.1-4.fc28.noarch                 1/2 
  Installing       : python3-cachetools-2.0.1-4.fc28.noarch                 2/2 
  Running scriptlet: python3-cachetools-2.0.1-4.fc28.noarch                 2/2 
  Verifying        : python3-cachetools-2.0.1-4.fc28.noarch                 1/2 
  Verifying        : python2-cachetools-2.0.1-4.fc28.noarch                 2/2 

Installed:
  python2-cachetools.noarch 2.0.1-4.fc28 python3-cachetools.noarch 2.0.1-4.fc28

Complete!
+ mkdir /tmp/rpmbuild.lEwBXk/BUILD /tmp/rpmbuild.lEwBXk/RPMS /tmp/rpmbuild.lEwBXk/SOURCES /tmp/rpmbuild.lEwBXk/SPECS /tmp/rpmbuild.lEwBXk/SRPMS
+ llvmver=3.7.1
+ git submodule update --init --recursive
Submodule 'src/cc/libbpf' (https://github.com/libbpf/libbpf.git) registered for path 'src/cc/libbpf'
Cloning into '/home/fedora/jenkins/workspace/bcc-pr/label/fc28/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/rpmbuild.lEwBXk/SOURCES/bcc.tar
+ pushd src/cc/libbpf
~/jenkins/workspace/bcc-pr/label/fc28/src/cc/libbpf ~/jenkins/workspace/bcc-pr/label/fc28
+ git archive HEAD --prefix=bcc/src/cc/libbpf/ --format=tar -o /tmp/rpmbuild.lEwBXk/SOURCES/bcc_libbpf.tar
+ popd
~/jenkins/workspace/bcc-pr/label/fc28
+ pushd /tmp/rpmbuild.lEwBXk/SOURCES
/tmp/rpmbuild.lEwBXk/SOURCES ~/jenkins/workspace/bcc-pr/label/fc28
+ tar -A -f bcc.tar bcc_libbpf.tar
+ gzip bcc.tar
+ popd
~/jenkins/workspace/bcc-pr/label/fc28
+ sed -e 's/^\(Version:\s*\)@REVISION@/\10.18.0/' -e 's/^\(Release:\s*\)@GIT_REV_COUNT@/\16.git.e17631db/' SPECS/bcc.spec
+ pushd /tmp/rpmbuild.lEwBXk
/tmp/rpmbuild.lEwBXk ~/jenkins/workspace/bcc-pr/label/fc28
++ pwd
+ rpmbuild --define '_topdir /tmp/rpmbuild.lEwBXk' -ba SPECS/bcc.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mkmnpq
+ umask 022
+ cd /tmp/rpmbuild.lEwBXk/BUILD
+ cd /tmp/rpmbuild.lEwBXk/BUILD
+ rm -rf bcc
+ /usr/bin/gzip -dc /tmp/rpmbuild.lEwBXk/SOURCES/bcc.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd bcc
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pIia7w
+ umask 022
+ cd /tmp/rpmbuild.lEwBXk/BUILD
+ cd bcc
+ mkdir build
+ pushd build
/tmp/rpmbuild.lEwBXk/BUILD/bcc/build /tmp/rpmbuild.lEwBXk/BUILD/bcc
++ pkg-config --variable=includedir luajit
++ pkg-config --variable=libdir luajit
++ pkg-config --variable=libname luajit
+ cmake .. -DREVISION_LAST=0.18.0 -DREVISION=0.18.0 -DCMAKE_INSTALL_PREFIX=/usr -DLUAJIT_INCLUDE_DIR=/usr/include/luajit-2.1 -DLUAJIT_LIBRARIES=/usr/lib64/libluajit-5.1.so '-DPYTHON_CMD=python2;python3' -DENABLE_LLVM_SHARED=1
-- The C compiler identification is GNU 8.1.1
-- The CXX compiler identification is GNU 8.1.1
-- 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/include 6.0.1
-- Found BISON: /usr/bin/bison (found version "3.0.4") 
-- Found FLEX: /usr/bin/flex (found version "2.6.1") 
-- Found LibElf: /usr/lib64/libelf.so  
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Success
-- Found LuaJIT: /usr/lib64/libluajit-5.1.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/rpmbuild.lEwBXk/BUILD/bcc/build
+ make -j2
Scanning dependencies of target bpf-static
Scanning dependencies of target bpf-shared
[  0%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o
[  0%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o
In file included from /tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:49:
/tmp/rpmbuild.lEwBXk/BUILD/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,
                                        ^~~~~~~~~~~~~~~~~~
In file included from /tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:49:
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_prog_load_xattr':
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_prog_load_xattr':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:603:30: note: each undeclared identifier is reported only once for each function it appears in
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:603:30: note: each undeclared identifier is reported only once for each function it appears in
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:606:30: error: 'BPF_TRACE_FEXIT' undeclared (first use in this function); did you mean 'BPF_EXIT'?
       expected_attach_type = BPF_TRACE_FEXIT;
                              ^~~~~~~~~~~~~~~
                              BPF_EXIT
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:606:30: error: 'BPF_TRACE_FEXIT' undeclared (first use in this function); did you mean 'BPF_EXIT'?
       expected_attach_type = BPF_TRACE_FEXIT;
                              ^~~~~~~~~~~~~~~
                              BPF_EXIT
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:612:30: error: 'BPF_TRACE_ITER' undeclared (first use in this function); did you mean 'BPF_TCP_LISTEN'?
       expected_attach_type = BPF_TRACE_ITER;
                              ^~~~~~~~~~~~~~
                              BPF_TCP_LISTEN
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:612:30: error: 'BPF_TRACE_ITER' undeclared (first use in this function); did you mean 'BPF_TCP_LISTEN'?
       expected_attach_type = BPF_TRACE_ITER;
                              ^~~~~~~~~~~~~~
                              BPF_TCP_LISTEN
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_prog_load':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_prog_load':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_new_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1457:12: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
     return ring_buffer__new(map_fd, sample_cb, ctx, NULL);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_free_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1462:5: warning: implicit declaration of function 'ring_buffer__free' [-Wimplicit-function-declaration]
     ring_buffer__free(rb);
     ^~~~~~~~~~~~~~~~~
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_add_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_poll_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_new_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1457:12: warning: returning 'int' from a function with return type 'void *' makes pointer from integer without a cast [-Wint-conversion]
     return ring_buffer__new(map_fd, sample_cb, ctx, NULL);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_consume_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1483:12: warning: implicit declaration of function 'ring_buffer__consume' [-Wimplicit-function-declaration]
     return ring_buffer__consume(rb);
            ^~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: At top level:
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:49:
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_iter_attach':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_free_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1462:5: warning: implicit declaration of function 'ring_buffer__free' [-Wimplicit-function-declaration]
     ring_buffer__free(rb);
     ^~~~~~~~~~~~~~~~~
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_add_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_poll_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1489:47: error: '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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bpf_consume_ringbuf':
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1483:12: warning: implicit declaration of function 'ring_buffer__consume' [-Wimplicit-function-declaration]
     return ring_buffer__consume(rb);
            ^~~~~~~~~~~~~~~~~~~~
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: At top level:
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:49:
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_iter_create':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_iter_attach':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1489:47: error: '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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_iter_create':
/tmp/rpmbuild.lEwBXk/BUILD/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/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_iter_attach':
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c: In function 'bcc_iter_attach':
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1494:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/tmp/rpmbuild.lEwBXk/BUILD/bcc/src/cc/libbpf.c:1494:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[2]: *** [src/cc/CMakeFiles/bpf-shared.dir/build.make:63: src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o] Error 1
make[2]: *** [src/cc/CMakeFiles/bpf-static.dir/build.make:63: src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:158: src/cc/CMakeFiles/bpf-shared.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:195: src/cc/CMakeFiles/bpf-static.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.pIia7w (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.pIia7w (%build)
+ cleanup
+ [[ -d /tmp/rpmbuild.lEwBXk ]]
+ rm -rf /tmp/rpmbuild.lEwBXk
Build step 'Conditional step (single)' marked build as failure
Taking single-use slave fedora28-slave-2ef offline.
Finished: FAILURE