Console Output

Started by upstream project "bcc-pr" build number 167
originally caused by:
 GitHub pull request #2642 of commit d8af3e596f5daa0e937763ca6d68e84d65f3c11b, no merge conflicts.
Running as SYSTEM
Building remotely on fedora27-slave-4ee (fc27) in workspace /home/fedora/jenkins/workspace/bcc-pr/label/fc27
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/fc27 # 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/*
 > 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/*
JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://wiki.jenkins-ci.org/display/JENKINS/Remove+Git+Plugin+BuildsByBranch+BuildData
Checking out Revision 0c0b9256d5f6936f18b34fd975b816b6789cd385 (refs/remotes/origin/pr/2642/merge)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 0c0b9256d5f6936f18b34fd975b816b6789cd385
Commit message: "Merge d8af3e596f5daa0e937763ca6d68e84d65f3c11b into 5cf529eeb448fa5422f305727ee4be7d01ebf391"
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]
[fc27] $ /bin/sh -xe /tmp/CommandInterpreterCondition3309891065801002685.sh
+ grep -q '^ID=fedora' /etc/os-release
Run condition [Execute Shell] enabling perform for step [Execute shell]
[fc27] $ /bin/sh -xe /tmp/jenkins2189888458668567822.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.Wn1MEz
+ trap cleanup EXIT
+ mkdir /tmp/rpmbuild.Wn1MEz/BUILD /tmp/rpmbuild.Wn1MEz/RPMS /tmp/rpmbuild.Wn1MEz/SOURCES /tmp/rpmbuild.Wn1MEz/SPECS /tmp/rpmbuild.Wn1MEz/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/fc27/src/cc/libbpf'...
Submodule path 'src/cc/libbpf': checked out 'ab067ed3710550c6d1b127aac6437f96f8f99447'
+ . scripts/git-tag.sh
+++ git describe --abbrev=0
++ git_tag_latest=v0.11.0
+++ git rev-list v0.11.0.. --count
++ git_rev_count=57
++ git_rev_count=58
+++ git log --pretty=%s -n 1
++ git_subject='Merge d8af3e596f5daa0e937763ca6d68e84d65f3c11b into 5cf529eeb448fa5422f305727ee4be7d01ebf391'
++ release=58
++ [[ 58 != \1 ]]
+++ git log --pretty=%h -n 1
++ release=58.git.0c0b9256
++ revision=0.11.0
+ git archive HEAD --prefix=bcc/ --format=tar -o /tmp/rpmbuild.Wn1MEz/SOURCES/bcc.tar
+ pushd src/cc/libbpf
~/jenkins/workspace/bcc-pr/label/fc27/src/cc/libbpf ~/jenkins/workspace/bcc-pr/label/fc27
+ git archive HEAD --prefix=bcc/src/cc/libbpf/ --format=tar -o /tmp/rpmbuild.Wn1MEz/SOURCES/bcc_libbpf.tar
+ popd
~/jenkins/workspace/bcc-pr/label/fc27
+ pushd /tmp/rpmbuild.Wn1MEz/SOURCES
/tmp/rpmbuild.Wn1MEz/SOURCES ~/jenkins/workspace/bcc-pr/label/fc27
+ tar -A -f bcc.tar bcc_libbpf.tar
+ gzip bcc.tar
+ popd
~/jenkins/workspace/bcc-pr/label/fc27
+ sed -e 's/^\(Version:\s*\)@REVISION@/\10.11.0/' -e 's/^\(Release:\s*\)@GIT_REV_COUNT@/\158.git.0c0b9256/' SPECS/bcc.spec
+ pushd /tmp/rpmbuild.Wn1MEz
/tmp/rpmbuild.Wn1MEz ~/jenkins/workspace/bcc-pr/label/fc27
++ pwd
+ rpmbuild --define '_topdir /tmp/rpmbuild.Wn1MEz' -ba SPECS/bcc.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kUsDeD
+ umask 022
+ cd /tmp/rpmbuild.Wn1MEz/BUILD
+ cd /tmp/rpmbuild.Wn1MEz/BUILD
+ rm -rf bcc
+ /usr/bin/gzip -dc /tmp/rpmbuild.Wn1MEz/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.QiNCf4
+ umask 022
+ cd /tmp/rpmbuild.Wn1MEz/BUILD
+ cd bcc
+ mkdir build
+ pushd build
/tmp/rpmbuild.Wn1MEz/BUILD/bcc/build /tmp/rpmbuild.Wn1MEz/BUILD/bcc
++ pkg-config --variable=includedir luajit
++ pkg-config --variable=libdir luajit
++ pkg-config --variable=libname luajit
+ cmake .. -DREVISION_LAST=0.11.0 -DREVISION=0.11.0 -DCMAKE_INSTALL_PREFIX=/usr -DLUAJIT_INCLUDE_DIR=/usr/include/luajit-2.1 -DLUAJIT_LIBRARIES=/usr/lib64/libluajit-5.1.so -DPYTHON_CMD=python2
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.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.11.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 BISON: /usr/bin/bison (found version "3.0.4") 
-- Found FLEX: /usr/bin/flex (found version "2.6.1") 
-- Found LLVM: /usr/include 5.0.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.Wn1MEz/BUILD/bcc/build
+ make -j2
Scanning dependencies of target bpf-shared
Scanning dependencies of target bpf-static
[  1%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o
[  1%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o
[  2%] Building C object src/cc/CMakeFiles/bpf-static.dir/perf_reader.c.o
[  2%] Building C object src/cc/CMakeFiles/bpf-shared.dir/perf_reader.c.o
[  2%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/bpf.c.o
[  2%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/bpf.c.o
[  3%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/bpf_prog_linfo.c.o
[  3%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/bpf_prog_linfo.c.o
[  4%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/btf.c.o
[  4%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/btf.c.o
[  4%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/btf_dump.c.o
[  4%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/btf_dump.c.o
[  6%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/hashmap.c.o
[  6%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/hashmap.c.o
[  6%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/libbpf.c.o
[  6%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf.c.o
[  6%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf_errno.c.o
[  7%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/libbpf_errno.c.o
[  8%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/libbpf_probes.c.o
[  8%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/libbpf_probes.c.o
[  8%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/netlink.c.o
[  8%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/netlink.c.o
[  9%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/nlattr.c.o
[  9%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/nlattr.c.o
[ 10%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/str_error.c.o
[ 10%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/str_error.c.o
[ 11%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf/src/xsk.c.o
[ 11%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf/src/xsk.c.o
[ 12%] Linking C static library libbcc_bpf.a
[ 12%] Linking C shared library libbcc_bpf.so
[ 12%] Built target bpf-shared
[ 12%] Built target bpf-static
Scanning dependencies of target bcc-loader-static
[ 13%] Building CXX object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o
Scanning dependencies of target clang_frontend
[ 14%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/loader.cc.o
[ 14%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_elf.c.o
[ 15%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_perf_map.c.o
[ 15%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_proc.c.o
[ 15%] Building CXX object src/cc/CMakeFiles/bcc-loader-static.dir/common.cc.o
[ 16%] Linking CXX static library libbcc-loader-static.a
[ 16%] Built target bcc-loader-static
Scanning dependencies of target api-static
[ 16%] Building CXX object src/cc/api/CMakeFiles/api-static.dir/BPF.cc.o
[ 17%] Building CXX object src/cc/api/CMakeFiles/api-static.dir/BPFTable.cc.o
[ 17%] Linking CXX static library libapi-static.a
[ 17%] Built target api-static
Scanning dependencies of target usdt-static
[ 17%] Building CXX object src/cc/usdt/CMakeFiles/usdt-static.dir/usdt_args.cc.o
[ 17%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o
[ 17%] Building CXX object src/cc/usdt/CMakeFiles/usdt-static.dir/usdt.cc.o
[ 18%] Linking CXX static library libusdt-static.a
[ 18%] Built target usdt-static
[ 18%] [FLEX][Lexer] Building scanner with flex 2.6.1
lexer.ll:110: warning, -s option given but default rule can be matched
[ 19%] [BISON][Parser] Building parser with bison 3.0.4
parser.yy:19.9-17: warning: deprecated directive, use '%define api.namespace ebpf::cc' [-Wdeprecated]
 %define namespace "ebpf::cc"
         ^^^^^^^^^
parser.yy:19.9-17: warning: %define variable 'api.namespace' requires '{...}' values [-Wdeprecated]
 %define namespace "ebpf::cc"
         ^^^^^^^^^
parser.yy:20.9-25: warning: %define variable 'parser_class_name' requires '{...}' values [-Wdeprecated]
 %define parser_class_name "BisonParser"
         ^^^^^^^^^^^^^^^^^
Scanning dependencies of target b_frontend
[ 19%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/loader.cc.o
[ 20%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/codegen_llvm.cc.o
[ 20%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/node.cc.o
[ 20%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/parser.cc.o
[ 21%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/printer.cc.o
[ 21%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/type_check.cc.o
[ 22%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/parser.yy.cc.o
[ 22%] Building CXX object src/cc/frontends/b/CMakeFiles/b_frontend.dir/lexer.ll.cc.o
/tmp/rpmbuild.Wn1MEz/BUILD/bcc/build/src/cc/frontends/b/lexer.ll.cc: In member function 'virtual int ebpf::cc::Lexer::yylex()':
/tmp/rpmbuild.Wn1MEz/BUILD/bcc/build/src/cc/frontends/b/lexer.ll.cc:752:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for ( yyl = 0; yyl < yyleng; ++yyl )
                   ~~~~^~~~~~~~
[ 22%] Linking CXX static library libb_frontend.a
[ 22%] Built target b_frontend
Scanning dependencies of target bcc_py_python2
[ 22%] Building sdist for python2
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default file list)

warning: sdist: standard file not found: should have one of README, README.txt

writing manifest file 'MANIFEST'
creating bcc-0.11.0
creating bcc-0.11.0/bcc
making hard links in bcc-0.11.0...
hard linking setup.py -> bcc-0.11.0
hard linking bcc/__init__.py -> bcc-0.11.0/bcc
hard linking bcc/disassembler.py -> bcc-0.11.0/bcc
hard linking bcc/libbcc.py -> bcc-0.11.0/bcc
hard linking bcc/perf.py -> bcc-0.11.0/bcc
hard linking bcc/syscall.py -> bcc-0.11.0/bcc
hard linking bcc/table.py -> bcc-0.11.0/bcc
hard linking bcc/tcp.py -> bcc-0.11.0/bcc
hard linking bcc/usdt.py -> bcc-0.11.0/bcc
hard linking bcc/utils.py -> bcc-0.11.0/bcc
hard linking bcc/version.py -> bcc-0.11.0/bcc
creating dist
Creating tar archive
removing 'bcc-0.11.0' (and everything under it)
[ 22%] Built target bcc_py_python2
[ 22%] Generating bcc.lua
Writing bcc.lua...
OK!
[ 22%] Generating bcc.o
Scanning dependencies of target bcc-lua
[ 23%] Building C object src/lua/CMakeFiles/bcc-lua.dir/src/main.c.o
[ 23%] Linking C executable bcc-lua
[ 23%] Built target bcc-lua
Scanning dependencies of target bps
[ 23%] Building C object introspection/CMakeFiles/bps.dir/bps.c.o
[ 23%] Linking C executable bps
../src/cc/libbcc_bpf.a(libbpf.c.o): In function `bpf_object__elf_finish':
libbpf.c:(.text+0x2d5): undefined reference to `elf_end'
../src/cc/libbcc_bpf.a(libbpf.c.o): In function `bpf_object__section_size':
libbpf.c:(.text+0x1fbe): undefined reference to `elf_nextscn'
libbpf.c:(.text+0x1fd9): undefined reference to `gelf_getshdr'
libbpf.c:(.text+0x1ff5): undefined reference to `elf_strptr'
libbpf.c:(.text+0x201b): undefined reference to `elf_getdata'
../src/cc/libbcc_bpf.a(libbpf.c.o): In function `bpf_object__variable_offset':
libbpf.c:(.text+0x214e): undefined reference to `gelf_getsym'
libbpf.c:(.text+0x2182): undefined reference to `elf_strptr'
../src/cc/libbcc_bpf.a(libbpf.c.o): In function `__bpf_object__open.part.32':
libbpf.c:(.text+0x6417): undefined reference to `elf_memory'
libbpf.c:(.text+0x6436): undefined reference to `gelf_getehdr'
libbpf.c:(.text+0x6610): undefined reference to `elf_begin'
libbpf.c:(.text+0x677c): undefined reference to `elf_getscn'
libbpf.c:(.text+0x6786): undefined reference to `elf_rawdata'
libbpf.c:(.text+0x67b9): undefined reference to `elf_nextscn'
libbpf.c:(.text+0x67d9): undefined reference to `gelf_getshdr'
libbpf.c:(.text+0x67fa): undefined reference to `elf_strptr'
libbpf.c:(.text+0x6810): undefined reference to `elf_getdata'
libbpf.c:(.text+0x6be0): undefined reference to `elf_getscn'
libbpf.c:(.text+0x6bf3): undefined reference to `elf_getdata'
libbpf.c:(.text+0x6c52): undefined reference to `gelf_getsym'
libbpf.c:(.text+0x6d0b): undefined reference to `gelf_getsym'
libbpf.c:(.text+0x6d51): undefined reference to `elf_strptr'
libbpf.c:(.text+0x727b): undefined reference to `elf_getscn'
libbpf.c:(.text+0x728e): undefined reference to `elf_getdata'
libbpf.c:(.text+0x76d1): undefined reference to `elf_getscn'
libbpf.c:(.text+0x76e3): undefined reference to `gelf_getshdr'
libbpf.c:(.text+0x7a8a): undefined reference to `gelf_getsym'
libbpf.c:(.text+0x7ac5): undefined reference to `elf_strptr'
libbpf.c:(.text+0x7c36): undefined reference to `gelf_getrel'
libbpf.c:(.text+0x7c55): undefined reference to `gelf_getsym'
libbpf.c:(.text+0x7c96): undefined reference to `elf_strptr'
../src/cc/libbcc_bpf.a(libbpf.c.o): In function `__bpf_object__open':
libbpf.c:(.text+0x8d6c): undefined reference to `elf_version'
../src/cc/libbcc_bpf.a(btf.c.o): In function `btf__parse_elf':
btf.c:(.text+0x21cd): undefined reference to `elf_version'
btf.c:(.text+0x21f6): undefined reference to `elf_begin'
btf.c:(.text+0x220f): undefined reference to `gelf_getehdr'
btf.c:(.text+0x2242): undefined reference to `elf_end'
btf.c:(.text+0x22b9): undefined reference to `elf_getscn'
btf.c:(.text+0x22c3): undefined reference to `elf_rawdata'
btf.c:(.text+0x22f7): undefined reference to `elf_nextscn'
btf.c:(.text+0x2314): undefined reference to `gelf_getshdr'
btf.c:(.text+0x232f): undefined reference to `elf_strptr'
btf.c:(.text+0x2376): undefined reference to `elf_getdata'
btf.c:(.text+0x23eb): undefined reference to `elf_getdata'
btf.c:(.text+0x24a5): undefined reference to `elf_end'
btf.c:(.text+0x24eb): undefined reference to `elf_end'
btf.c:(.text+0x253c): undefined reference to `elf_end'
btf.c:(.text+0x2551): undefined reference to `elf_end'
collect2: error: ld returned 1 exit status
make[2]: *** [introspection/CMakeFiles/bps.dir/build.make:85: introspection/bps] Error 1
make[1]: *** [CMakeFiles/Makefile2:689: introspection/CMakeFiles/bps.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 24%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/tp_frontend_action.cc.o
[ 24%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/kbuild_helper.cc.o
[ 24%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/__/__/common.cc.o
[ 25%] Linking CXX static library libclang_frontend.a
[ 25%] Built target clang_frontend
make: *** [Makefile:141: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.QiNCf4 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.QiNCf4 (%build)
+ cleanup
+ [[ -d /tmp/rpmbuild.Wn1MEz ]]
+ rm -rf /tmp/rpmbuild.Wn1MEz
Build step 'Conditional step (single)' marked build as failure
Finished: FAILURE