Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/bcc.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-140326-53691/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/bcc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/bcc-0.19.0-5.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/bcc.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-140326-53691/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/bcc.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Wabm9T + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bcc-0.19.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/bcc-0.19.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd bcc-0.19.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/bcc-0.19.0-Manpages-remove-unstable-statement.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bcc-0.19.0-Fix-BPF-src_file-foo.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bcc-0.19.0-Define-missing-BPF_-macros.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bcc-0.19.0-fix-llvm-compilation-errors.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bcc-0.19.0-Fix-a-llvm-compilation-error.patch + /usr/bin/cat /builddir/build/SOURCES/bcc-0.19.0-Remove-APInt-APSInt-toString-std-string-variants.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bcc-0.19.0-Handle-renaming-of-task_struct_-state-field-on-RHEL-.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/1000-bcc-anolis-ali-enhanced-tools-for-fs-schedule-sys.patch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2tgW8s + umask 022 + cd /builddir/build/BUILD + cd bcc-0.19.0 + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DREVISION_LAST=0.19.0 -DREVISION=0.19.0 -DPYTHON_CMD=python3 -DCMAKE_USE_LIBBPF_PACKAGE:BOOL=TRUE -DENABLE_LLVM_SHARED=1 CMake Deprecation Warning at CMakeLists.txt:3 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is GNU 8.5.0 -- The CXX compiler identification is GNU 8.5.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Revision is 0.19.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 LibBpf: /usr/lib64/libbpf.so -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") -- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.7") -- Found LLVM: /usr/include 13.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 -- Could NOT find LuaJIT (missing: LUAJIT_LIBRARIES LUAJIT_INCLUDE_DIR) CMake Warning at tests/python/CMakeLists.txt:6 (message): Recommended test program 'arping' not found CMake Warning at tests/python/CMakeLists.txt:10 (message): Recommended test program 'netperf' not found CMake Warning at tests/python/CMakeLists.txt:16 (message): Recommended test program 'iperf' or 'iperf3' not found -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/bcc-0.19.0 + /usr/bin/make -O -j4 /usr/bin/cmake -S/builddir/build/BUILD/bcc-0.19.0 -B/builddir/build/BUILD/bcc-0.19.0 --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /builddir/build/BUILD/bcc-0.19.0/CMakeFiles /builddir/build/BUILD/bcc-0.19.0//CMakeFiles/progress.marks /usr/bin/make -f CMakeFiles/Makefile2 all /usr/bin/make -f src/cc/CMakeFiles/bpf-shared.dir/build.make src/cc/CMakeFiles/bpf-shared.dir/depend /usr/bin/make -f src/cc/CMakeFiles/bpf-static.dir/build.make src/cc/CMakeFiles/bpf-static.dir/depend /usr/bin/make -f src/cc/CMakeFiles/bcc-loader-static.dir/build.make src/cc/CMakeFiles/bcc-loader-static.dir/depend /usr/bin/make -f src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/build.make src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/depend make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' cd /builddir/build/BUILD/bcc-0.19.0 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/bcc-0.19.0 /builddir/build/BUILD/bcc-0.19.0/src/cc /builddir/build/BUILD/bcc-0.19.0 /builddir/build/BUILD/bcc-0.19.0/src/cc /builddir/build/BUILD/bcc-0.19.0/src/cc/CMakeFiles/bpf-shared.dir/DependInfo.cmake --color= make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' cd /builddir/build/BUILD/bcc-0.19.0 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/bcc-0.19.0 /builddir/build/BUILD/bcc-0.19.0/src/cc /builddir/build/BUILD/bcc-0.19.0 /builddir/build/BUILD/bcc-0.19.0/src/cc /builddir/build/BUILD/bcc-0.19.0/src/cc/CMakeFiles/bcc-loader-static.dir/DependInfo.cmake --color= make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' /usr/bin/make -f src/cc/CMakeFiles/bpf-shared.dir/build.make src/cc/CMakeFiles/bpf-shared.dir/build /usr/bin/make -f src/cc/CMakeFiles/bcc-loader-static.dir/build.make src/cc/CMakeFiles/bcc-loader-static.dir/build make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' cd /builddir/build/BUILD/bcc-0.19.0 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/bcc-0.19.0 /builddir/build/BUILD/bcc-0.19.0/src/cc /builddir/build/BUILD/bcc-0.19.0 /builddir/build/BUILD/bcc-0.19.0/src/cc /builddir/build/BUILD/bcc-0.19.0/src/cc/CMakeFiles/bpf-static.dir/DependInfo.cmake --color= make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' /usr/bin/make -f src/cc/CMakeFiles/bpf-static.dir/build.make src/cc/CMakeFiles/bpf-static.dir/build make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' cd /builddir/build/BUILD/bcc-0.19.0 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /builddir/build/BUILD/bcc-0.19.0 /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang /builddir/build/BUILD/bcc-0.19.0 /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/DependInfo.cmake --color= make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' /usr/bin/make -f src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/build.make src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/build make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 2%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/cc -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fPIC -Wno-unused-result -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o -MF CMakeFiles/bpf-static.dir/libbpf.c.o.d -o CMakeFiles/bpf-static.dir/libbpf.c.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' In file included from /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:49: /builddir/build/BUILD/bcc-0.19.0/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 /builddir/build/BUILD/bcc-0.19.0/src/cc/bcc_libbpf_inc.h:5, from /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:55: /usr/include/bpf/btf.h: In function 'btf_is_func': /usr/include/bpf/btf.h:283:24: error: 'BTF_KIND_FUNC' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? return btf_kind(t) == BTF_KIND_FUNC; ^~~~~~~~~~~~~ BTF_KIND_INT /usr/include/bpf/btf.h:283:24: note: each undeclared identifier is reported only once for each function it appears in /usr/include/bpf/btf.h: In function 'btf_is_func_proto': /usr/include/bpf/btf.h:288:24: error: 'BTF_KIND_FUNC_PROTO' undeclared (first use in this function); did you mean 'BTF_KIND_UNION'? return btf_kind(t) == BTF_KIND_FUNC_PROTO; ^~~~~~~~~~~~~~~~~~~ BTF_KIND_UNION /usr/include/bpf/btf.h: In function 'btf_is_var': /usr/include/bpf/btf.h:293:24: error: 'BTF_KIND_VAR' undeclared (first use in this function); did you mean 'BTF_KIND_PTR'? return btf_kind(t) == BTF_KIND_VAR; ^~~~~~~~~~~~ BTF_KIND_PTR /usr/include/bpf/btf.h: In function 'btf_is_datasec': /usr/include/bpf/btf.h:298:24: error: 'BTF_KIND_DATASEC' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? return btf_kind(t) == BTF_KIND_DATASEC; ^~~~~~~~~~~~~~~~ BTF_KIND_INT /usr/include/bpf/btf.h: In function 'btf_is_float': /usr/include/bpf/btf.h:303:24: error: 'BTF_KIND_FLOAT' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? return btf_kind(t) == BTF_KIND_FLOAT; ^~~~~~~~~~~~~~ BTF_KIND_INT /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c: In function 'bcc_prog_load_xattr': /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:612: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:615:30: error: 'BPF_MODIFY_RETURN' undeclared (first use in this function); did you mean 'BPF_PROBE_RETURN'? expected_attach_type = BPF_MODIFY_RETURN; ^~~~~~~~~~~~~~~~~ BPF_PROBE_RETURN /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:618:30: error: 'BPF_TRACE_FEXIT' undeclared (first use in this function); did you mean 'BPF_EXIT'? expected_attach_type = BPF_TRACE_FEXIT; ^~~~~~~~~~~~~~~ BPF_EXIT /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:621:30: error: 'BPF_LSM_MAC' undeclared (first use in this function); did you mean 'BPF_ST_MEM'? expected_attach_type = BPF_LSM_MAC; ^~~~~~~~~~~ BPF_ST_MEM /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:624: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:627: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:628: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c: In function 'bcc_prog_load': /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:768: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:768: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c: At top level: /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:1498: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:49: /builddir/build/BUILD/bcc-0.19.0/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, ^~~~~~~~~~~~~~~ /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c: In function 'bcc_iter_attach': /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:1505: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:1506:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[2]: *** [src/cc/CMakeFiles/bpf-static.dir/build.make:79: src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:761: src/cc/CMakeFiles/bpf-static.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 2%] Building C object src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/cc -DHAVE_EXTERNAL_LIBBPF -Dbpf_shared_EXPORTS -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fPIC -Wno-unused-result -O2 -g -DNDEBUG -fPIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o -MF CMakeFiles/bpf-shared.dir/libbpf.c.o.d -o CMakeFiles/bpf-shared.dir/libbpf.c.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' In file included from /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:49: /builddir/build/BUILD/bcc-0.19.0/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 /builddir/build/BUILD/bcc-0.19.0/src/cc/bcc_libbpf_inc.h:5, from /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:55: /usr/include/bpf/btf.h: In function 'btf_is_func': /usr/include/bpf/btf.h:283:24: error: 'BTF_KIND_FUNC' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? return btf_kind(t) == BTF_KIND_FUNC; ^~~~~~~~~~~~~ BTF_KIND_INT /usr/include/bpf/btf.h:283:24: note: each undeclared identifier is reported only once for each function it appears in /usr/include/bpf/btf.h: In function 'btf_is_func_proto': /usr/include/bpf/btf.h:288:24: error: 'BTF_KIND_FUNC_PROTO' undeclared (first use in this function); did you mean 'BTF_KIND_UNION'? return btf_kind(t) == BTF_KIND_FUNC_PROTO; ^~~~~~~~~~~~~~~~~~~ BTF_KIND_UNION /usr/include/bpf/btf.h: In function 'btf_is_var': /usr/include/bpf/btf.h:293:24: error: 'BTF_KIND_VAR' undeclared (first use in this function); did you mean 'BTF_KIND_PTR'? return btf_kind(t) == BTF_KIND_VAR; ^~~~~~~~~~~~ BTF_KIND_PTR /usr/include/bpf/btf.h: In function 'btf_is_datasec': /usr/include/bpf/btf.h:298:24: error: 'BTF_KIND_DATASEC' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? return btf_kind(t) == BTF_KIND_DATASEC; ^~~~~~~~~~~~~~~~ BTF_KIND_INT /usr/include/bpf/btf.h: In function 'btf_is_float': /usr/include/bpf/btf.h:303:24: error: 'BTF_KIND_FLOAT' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? return btf_kind(t) == BTF_KIND_FLOAT; ^~~~~~~~~~~~~~ BTF_KIND_INT /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c: In function 'bcc_prog_load_xattr': /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:612: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:615:30: error: 'BPF_MODIFY_RETURN' undeclared (first use in this function); did you mean 'BPF_PROBE_RETURN'? expected_attach_type = BPF_MODIFY_RETURN; ^~~~~~~~~~~~~~~~~ BPF_PROBE_RETURN /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:618:30: error: 'BPF_TRACE_FEXIT' undeclared (first use in this function); did you mean 'BPF_EXIT'? expected_attach_type = BPF_TRACE_FEXIT; ^~~~~~~~~~~~~~~ BPF_EXIT /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:621:30: error: 'BPF_LSM_MAC' undeclared (first use in this function); did you mean 'BPF_ST_MEM'? expected_attach_type = BPF_LSM_MAC; ^~~~~~~~~~~ BPF_ST_MEM /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:624: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:627: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:628: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c: In function 'bcc_prog_load': /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:768: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:768: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c: At top level: /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:1498: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:49: /builddir/build/BUILD/bcc-0.19.0/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, ^~~~~~~~~~~~~~~ /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c: In function 'bcc_iter_attach': /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:1505: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 /builddir/build/BUILD/bcc-0.19.0/src/cc/libbpf.c:1506:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[2]: *** [src/cc/CMakeFiles/bpf-shared.dir/build.make:79: src/cc/CMakeFiles/bpf-shared.dir/libbpf.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 3%] Building C object src/cc/CMakeFiles/bpf-shared.dir/perf_reader.c.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/cc -DHAVE_EXTERNAL_LIBBPF -Dbpf_shared_EXPORTS -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fPIC -Wno-unused-result -O2 -g -DNDEBUG -fPIC -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bpf-shared.dir/perf_reader.c.o -MF CMakeFiles/bpf-shared.dir/perf_reader.c.o.d -o CMakeFiles/bpf-shared.dir/perf_reader.c.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/perf_reader.c make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' In file included from /builddir/build/BUILD/bcc-0.19.0/src/cc/perf_reader.c:31: /builddir/build/BUILD/bcc-0.19.0/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, ^~~~~~~~~~~~~~~~~~ make[1]: *** [CMakeFiles/Makefile2:735: src/cc/CMakeFiles/bpf-shared.dir/all] Error 2 make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 4%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_perf_map.c.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/cc -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fPIC -Wno-unused-result -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bcc-loader-static.dir/bcc_perf_map.c.o -MF CMakeFiles/bcc-loader-static.dir/bcc_perf_map.c.o.d -o CMakeFiles/bcc-loader-static.dir/bcc_perf_map.c.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/bcc_perf_map.c make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 3%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_elf.c.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/cc -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fPIC -Wno-unused-result -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bcc-loader-static.dir/bcc_elf.c.o -MF CMakeFiles/bcc-loader-static.dir/bcc_elf.c.o.d -o CMakeFiles/bcc-loader-static.dir/bcc_elf.c.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/bcc_elf.c make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 4%] Building C object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_proc.c.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/cc -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fPIC -Wno-unused-result -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MT src/cc/CMakeFiles/bcc-loader-static.dir/bcc_proc.c.o -MF CMakeFiles/bcc-loader-static.dir/bcc_proc.c.o.d -o CMakeFiles/bcc-loader-static.dir/bcc_proc.c.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/bcc_proc.c make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 4%] Building CXX object src/cc/CMakeFiles/bcc-loader-static.dir/common.cc.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/c++ -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -DLLVM_MAJOR_VERSION=13 -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT src/cc/CMakeFiles/bcc-loader-static.dir/common.cc.o -MF CMakeFiles/bcc-loader-static.dir/common.cc.o.d -o CMakeFiles/bcc-loader-static.dir/common.cc.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/common.cc make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 1%] Building CXX object src/cc/CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/c++ -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -DLLVM_MAJOR_VERSION=13 -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT src/cc/CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o -MF CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o.d -o CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/bcc_syms.cc make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 6%] Linking CXX static library libbcc-loader-static.a cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/cmake -P CMakeFiles/bcc-loader-static.dir/cmake_clean_target.cmake cd /builddir/build/BUILD/bcc-0.19.0/src/cc && /usr/bin/cmake -E cmake_link_script CMakeFiles/bcc-loader-static.dir/link.txt --verbose=1 /usr/bin/ar qc libbcc-loader-static.a CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o CMakeFiles/bcc-loader-static.dir/bcc_elf.c.o CMakeFiles/bcc-loader-static.dir/bcc_perf_map.c.o CMakeFiles/bcc-loader-static.dir/bcc_proc.c.o CMakeFiles/bcc-loader-static.dir/common.cc.o /usr/bin/ranlib libbcc-loader-static.a make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[1]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 6%] Built target bcc-loader-static make[1]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 6%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/kbuild_helper.cc.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang && /usr/bin/c++ -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -DLLVM_MAJOR_VERSION=13 -DKERNEL_MODULES_DIR='"/lib/modules"' -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/kbuild_helper.cc.o -MF CMakeFiles/clang_frontend.dir/kbuild_helper.cc.o.d -o CMakeFiles/clang_frontend.dir/kbuild_helper.cc.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/kbuild_helper.cc make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/kbuild_helper.cc:80:3: warning: multi-line comment [-Wcomment] // USERINCLUDE := \ ^ /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/kbuild_helper.cc:89:3: warning: multi-line comment [-Wcomment] // LINUXINCLUDE := \ ^ make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 7%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/__/__/common.cc.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang && /usr/bin/c++ -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -DLLVM_MAJOR_VERSION=13 -DKERNEL_MODULES_DIR='"/lib/modules"' -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/__/__/common.cc.o -MF CMakeFiles/clang_frontend.dir/__/__/common.cc.o.d -o CMakeFiles/clang_frontend.dir/__/__/common.cc.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/common.cc make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 5%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang && /usr/bin/c++ -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -DLLVM_MAJOR_VERSION=13 -DKERNEL_MODULES_DIR='"/lib/modules"' -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o -MF CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o.d -o CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' In file included from /builddir/build/BUILD/bcc-0.19.0/src/cc/bcc_libbpf_inc.h:4, from /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:37: /usr/include/bpf/bpf.h:246:6: error: use of enum 'bpf_stats_type' without previous declaration enum bpf_stats_type; /* defined in up-to-date linux/bpf.h */ ^~~~~~~~~~~~~~ /usr/include/bpf/bpf.h:247:38: error: use of enum 'bpf_stats_type' without previous declaration LIBBPF_API int bpf_enable_stats(enum bpf_stats_type type); ^~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/bcc-0.19.0/src/cc/bcc_libbpf_inc.h:5, from /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:37: /usr/include/bpf/btf.h:128:14: error: use of enum 'btf_func_linkage' without previous declaration enum btf_func_linkage linkage, int proto_type_id); ^~~~~~~~~~~~~~~~ /usr/include/bpf/btf.h: In function 'bool btf_kflag(const btf_type*)': /usr/include/bpf/btf.h:202:9: error: 'BTF_INFO_KFLAG' was not declared in this scope return BTF_INFO_KFLAG(t->info); ^~~~~~~~~~~~~~ /usr/include/bpf/btf.h:202:9: note: suggested alternative: 'BTF_INFO_KIND' return BTF_INFO_KFLAG(t->info); ^~~~~~~~~~~~~~ BTF_INFO_KIND /usr/include/bpf/btf.h: In function 'bool btf_is_func(const btf_type*)': /usr/include/bpf/btf.h:283:24: error: 'BTF_KIND_FUNC' was not declared in this scope return btf_kind(t) == BTF_KIND_FUNC; ^~~~~~~~~~~~~ /usr/include/bpf/btf.h:283:24: note: suggested alternative: 'BTF_KIND_INT' return btf_kind(t) == BTF_KIND_FUNC; ^~~~~~~~~~~~~ BTF_KIND_INT /usr/include/bpf/btf.h: In function 'bool btf_is_func_proto(const btf_type*)': /usr/include/bpf/btf.h:288:24: error: 'BTF_KIND_FUNC_PROTO' was not declared in this scope return btf_kind(t) == BTF_KIND_FUNC_PROTO; ^~~~~~~~~~~~~~~~~~~ /usr/include/bpf/btf.h:288:24: note: suggested alternative: 'BTF_KIND_UNION' return btf_kind(t) == BTF_KIND_FUNC_PROTO; ^~~~~~~~~~~~~~~~~~~ BTF_KIND_UNION /usr/include/bpf/btf.h: In function 'bool btf_is_var(const btf_type*)': /usr/include/bpf/btf.h:293:24: error: 'BTF_KIND_VAR' was not declared in this scope return btf_kind(t) == BTF_KIND_VAR; ^~~~~~~~~~~~ /usr/include/bpf/btf.h:293:24: note: suggested alternative: 'BTF_KIND_MAX' return btf_kind(t) == BTF_KIND_VAR; ^~~~~~~~~~~~ BTF_KIND_MAX /usr/include/bpf/btf.h: In function 'bool btf_is_datasec(const btf_type*)': /usr/include/bpf/btf.h:298:24: error: 'BTF_KIND_DATASEC' was not declared in this scope return btf_kind(t) == BTF_KIND_DATASEC; ^~~~~~~~~~~~~~~~ /usr/include/bpf/btf.h:298:24: note: suggested alternative: 'BTF_KIND_INT' return btf_kind(t) == BTF_KIND_DATASEC; ^~~~~~~~~~~~~~~~ BTF_KIND_INT /usr/include/bpf/btf.h: In function 'bool btf_is_float(const btf_type*)': /usr/include/bpf/btf.h:303:24: error: 'BTF_KIND_FLOAT' was not declared in this scope return btf_kind(t) == BTF_KIND_FLOAT; ^~~~~~~~~~~~~~ /usr/include/bpf/btf.h:303:24: note: suggested alternative: 'BTF_KIND_INT' return btf_kind(t) == BTF_KIND_FLOAT; ^~~~~~~~~~~~~~ BTF_KIND_INT /usr/include/bpf/btf.h: In function '__u32 btf_member_bit_offset(const btf_type*, __u32)': /usr/include/bpf/btf.h:343:17: error: 'BTF_MEMBER_BIT_OFFSET' was not declared in this scope return kflag ? BTF_MEMBER_BIT_OFFSET(m->offset) : m->offset; ^~~~~~~~~~~~~~~~~~~~~ /usr/include/bpf/btf.h:343:17: note: suggested alternative: 'BTF_MAX_NAME_OFFSET' return kflag ? BTF_MEMBER_BIT_OFFSET(m->offset) : m->offset; ^~~~~~~~~~~~~~~~~~~~~ BTF_MAX_NAME_OFFSET /usr/include/bpf/btf.h: In function '__u32 btf_member_bitfield_size(const btf_type*, __u32)': /usr/include/bpf/btf.h:355:17: error: 'BTF_MEMBER_BITFIELD_SIZE' was not declared in this scope return kflag ? BTF_MEMBER_BITFIELD_SIZE(m->offset) : 0; ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/bpf/btf.h:355:17: note: suggested alternative: 'BPF_F_USER_BUILD_ID' return kflag ? BTF_MEMBER_BITFIELD_SIZE(m->offset) : 0; ^~~~~~~~~~~~~~~~~~~~~~~~ BPF_F_USER_BUILD_ID /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc: In member function 'bool ebpf::BTypeVisitor::VisitVarDecl(clang::VarDecl*)': /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1452:18: error: 'BPF_MAP_TYPE_RINGBUF' was not declared in this scope map_type = BPF_MAP_TYPE_RINGBUF; ^~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1452:18: note: suggested alternative: 'BPF_MAP_TYPE_UNSPEC' map_type = BPF_MAP_TYPE_RINGBUF; ^~~~~~~~~~~~~~~~~~~~ BPF_MAP_TYPE_UNSPEC /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1460:18: error: 'BPF_MAP_TYPE_QUEUE' was not declared in this scope map_type = BPF_MAP_TYPE_QUEUE; ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1460:18: note: suggested alternative: 'BPF_MAP_TYPE_CPUMAP' map_type = BPF_MAP_TYPE_QUEUE; ^~~~~~~~~~~~~~~~~~ BPF_MAP_TYPE_CPUMAP /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1463:18: error: 'BPF_MAP_TYPE_STACK' was not declared in this scope map_type = BPF_MAP_TYPE_STACK; ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1463:18: note: suggested alternative: 'BPF_MAP_TYPE_HASH' map_type = BPF_MAP_TYPE_STACK; ^~~~~~~~~~~~~~~~~~ BPF_MAP_TYPE_HASH /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1479:18: error: 'BPF_MAP_TYPE_SK_STORAGE' was not declared in this scope map_type = BPF_MAP_TYPE_SK_STORAGE; ^~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1479:18: note: suggested alternative: 'BPF_MAP_TYPE_CGROUP_STORAGE' map_type = BPF_MAP_TYPE_SK_STORAGE; ^~~~~~~~~~~~~~~~~~~~~~~ BPF_MAP_TYPE_CGROUP_STORAGE /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1487:18: error: 'BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE' was not declared in this scope map_type = BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/b_frontend_action.cc:1487:18: note: suggested alternative: 'BPF_MAP_TYPE_CGROUP_STORAGE' map_type = BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BPF_MAP_TYPE_CGROUP_STORAGE make[2]: *** [src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/build.make:93: src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/b_frontend_action.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 2%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/loader.cc.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang && /usr/bin/c++ -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -DLLVM_MAJOR_VERSION=13 -DKERNEL_MODULES_DIR='"/lib/modules"' -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/loader.cc.o -MF CMakeFiles/clang_frontend.dir/loader.cc.o.d -o CMakeFiles/clang_frontend.dir/loader.cc.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/loader.cc make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[2]: Entering directory '/builddir/build/BUILD/bcc-0.19.0' [ 5%] Building CXX object src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/tp_frontend_action.cc.o cd /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang && /usr/bin/c++ -DHAVE_EXTERNAL_LIBBPF -I/usr/include/../tools/clang/include -I/builddir/build/BUILD/bcc-0.19.0/src -I/builddir/build/BUILD/bcc-0.19.0/src/cc -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/b -I/builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang -O2 -g -Wall -fno-rtti -fPIC -DBCC_PROG_TAG_DIR='"/var/tmp/bcc"' -Wno-unused-result -DLLVM_MAJOR_VERSION=13 -DKERNEL_MODULES_DIR='"/lib/modules"' -O2 -g -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -std=gnu++14 -MD -MT src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/tp_frontend_action.cc.o -MF CMakeFiles/clang_frontend.dir/tp_frontend_action.cc.o.d -o CMakeFiles/clang_frontend.dir/tp_frontend_action.cc.o -c /builddir/build/BUILD/bcc-0.19.0/src/cc/frontends/clang/tp_frontend_action.cc make[2]: Leaving directory '/builddir/build/BUILD/bcc-0.19.0' make[1]: *** [CMakeFiles/Makefile2:950: src/cc/frontends/clang/CMakeFiles/clang_frontend.dir/all] Error 2 make: *** [Makefile:149: all] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.2tgW8s (%build) Bad exit status from /var/tmp/rpm-tmp.2tgW8s (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/bcc.spec