******************************************************************************** conan install libbpf/0.4.0@ --build=libbpf --profile=/home/conan/w/BuildSingleReference/14851/2a47dbec-6013-46a5-b5ec-f8c095f7417f/profile.txt ******************************************************************************** Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Debug compiler=gcc compiler.libcxx=libstdc++ compiler.version=4.9 os=Linux os_build=Linux [options] libbpf:shared=False [build_requires] [env] libbpf/0.4.0: Forced build from source Installing package: libbpf/0.4.0 Requirements libbpf/0.4.0 from local cache - Cache libelf/0.8.13 from 'conan-center' - Cache zlib/1.2.11 from 'conan-center' - Cache Packages libbpf/0.4.0:a3f3ecedb51a8d24e657c68748a3243c5ba030e4 - Build libelf/0.8.13:2345d377da94e8ffae1333469573b8215c98c514 - Cache zlib/1.2.11:2345d377da94e8ffae1333469573b8215c98c514 - Cache Build requirements make/4.2.1 from 'conan-center' - Cache Build requirements packages make/4.2.1:cc9f9b2b9f92fc82888026414560bf79d8c3a052 - Cache Installing (downloading, building) binaries... libelf/0.8.13: Already installed! [HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK [HOOK - conan-center.py] post_package_info(): [LIBRARY DOES NOT EXIST (KB-H054)] OK make/4.2.1: Already installed! make/4.2.1: Creating CONAN_MAKE_PROGRAM environment variable: /home/conan/w/BuildSingleReference/.conan/data/make/4.2.1/_/_/package/cc9f9b2b9f92fc82888026414560bf79d8c3a052/bin/make [HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK [HOOK - conan-center.py] post_package_info(): [LIBRARY DOES NOT EXIST (KB-H054)] OK zlib/1.2.11: Already installed! [HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK [HOOK - conan-center.py] post_package_info(): [LIBRARY DOES NOT EXIST (KB-H054)] OK libbpf/0.4.0: Applying build-requirement: make/4.2.1 libbpf/0.4.0: Copying sources to build folder libbpf/0.4.0: Building your package in /home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/a3f3ecedb51a8d24e657c68748a3243c5ba030e4 libbpf/0.4.0: Generator pkg_config created make.pc libbpf/0.4.0: Generator pkg_config created libelf.pc libbpf/0.4.0: Generator pkg_config created zlib.pc libbpf/0.4.0: Generator cmake created conanbuildinfo.cmake [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK. 'fPIC' option found and apparently well managed [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK libbpf/0.4.0: Calling build() ----Running------ > /home/conan/w/BuildSingleReference/.conan/data/make/4.2.1/_/_/package/cc9f9b2b9f92fc82888026414560bf79d8c3a052/bin/make '--directory=src' 'PREFIX=' 'DESTDIR=/home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/package/a3f3ecedb51a8d24e657c68748a3243c5ba030e4' 'LIBSUBDIR=lib' 'BUILD_STATIC_ONLY=1' -j3 ----------------- make: Entering directory '/home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/a3f3ecedb51a8d24e657c68748a3243c5ba030e4/source_subfolder/src' MKDIR staticobjs CC bpf.o CC btf.o CC libbpf.o CC libbpf_errno.o CC netlink.o make: Leaving directory '/home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/a3f3ecedb51a8d24e657c68748a3243c5ba030e4/source_subfolder/src' libbpf/0.4.0: Package libelf was not found in the pkg-config search path. Perhaps you should add the directory containing `libelf.pc' to the PKG_CONFIG_PATH environment variable No package 'libelf' found libbpf.c: In function 'bpf_program__attach_perf_event': libbpf.c:9896:17: error: 'PERF_EVENT_IOC_SET_BPF' undeclared (first use in this function) if (ioctl(pfd, PERF_EVENT_IOC_SET_BPF, prog_fd) < 0) { ^ libbpf.c:9896:17: note: each undeclared identifier is reported only once for each function it appears in libbpf.c: In function 'perf_event_open_probe': libbpf.c:10010:28: error: 'PERF_FLAG_FD_CLOEXEC' undeclared (first use in this function) -1 /* group_fd */, PERF_FLAG_FD_CLOEXEC); ^ libbpf.c: In function 'perf_event_open_tracepoint': libbpf.c:10131:28: error: 'PERF_FLAG_FD_CLOEXEC' undeclared (first use in this function) -1 /* group_fd */, PERF_FLAG_FD_CLOEXEC); ^ libbpf.c: In function 'perf_buffer__open_cpu_buf': libbpf.c:10624:14: error: 'PERF_FLAG_FD_CLOEXEC' undeclared (first use in this function) -1, PERF_FLAG_FD_CLOEXEC); ^ libbpf.c: In function 'perf_buffer__new': libbpf.c:10666:16: error: 'PERF_COUNT_SW_BPF_OUTPUT' undeclared (first use in this function) attr.config = PERF_COUNT_SW_BPF_OUTPUT; ^ netlink.c: In function 'clsact_config': netlink.c:380:18: error: 'TC_H_CLSACT' undeclared (first use in this function) t->tcm_parent = TC_H_CLSACT; ^ netlink.c:380:18: note: each undeclared identifier is reported only once for each function it appears in In file included from /usr/include/linux/pkt_cls.h:5:0, from netlink.c:10: netlink.c: In function 'tc_get_tcm_parent': netlink.c:412:23: error: 'TC_H_CLSACT' undeclared (first use in this function) *parent = TC_H_MAKE(TC_H_CLSACT, ^ netlink.c:414:9: error: 'TC_H_MIN_INGRESS' undeclared (first use in this function) TC_H_MIN_INGRESS : TC_H_MIN_EGRESS); ^ netlink.c:414:28: error: 'TC_H_MIN_EGRESS' undeclared (first use in this function) TC_H_MIN_INGRESS : TC_H_MIN_EGRESS); ^ netlink.c: In function '__get_tc_info': netlink.c:515:11: error: 'TCA_BPF_ID' undeclared (first use in this function) if (!tbb[TCA_BPF_ID]) ^ netlink.c: In function 'tc_add_fd_and_name': netlink.c:551:30: error: 'TCA_BPF_FD' undeclared (first use in this function) ret = nlattr_add(nh, maxsz, TCA_BPF_FD, &fd, sizeof(fd)); ^ netlink.c:559:31: error: 'TCA_BPF_NAME' undeclared (first use in this function) return nlattr_add(nh, maxsz, TCA_BPF_NAME, name, len + 1); ^ netlink.c: In function 'bpf_tc_attach': netlink.c:623:14: error: 'TCA_BPF_FLAG_ACT_DIRECT' undeclared (first use in this function) bpf_flags = TCA_BPF_FLAG_ACT_DIRECT; ^ netlink.c:624:41: error: 'TCA_BPF_FLAGS' undeclared (first use in this function) ret = nlattr_add(&req.nh, sizeof(req), TCA_BPF_FLAGS, &bpf_flags, ^ make: *** [Makefile:113: staticobjs/netlink.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:113: staticobjs/libbpf.o] Error 1 make/4.2.1: WARN: Lib folder doesn't exist, can't collect libraries: /home/conan/w/BuildSingleReference/.conan/data/make/4.2.1/_/_/package/cc9f9b2b9f92fc82888026414560bf79d8c3a052/lib libbpf/0.4.0: WARN: Build folder is dirty, removing it: /home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/a3f3ecedb51a8d24e657c68748a3243c5ba030e4 libbpf/0.4.0: ERROR: Package 'a3f3ecedb51a8d24e657c68748a3243c5ba030e4' build failed libbpf/0.4.0: WARN: Build folder /home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/a3f3ecedb51a8d24e657c68748a3243c5ba030e4 ERROR: libbpf/0.4.0: Error in build() method, line 67 autotools.make(args=make_args) ConanException: Error 2 while executing /home/conan/w/BuildSingleReference/.conan/data/make/4.2.1/_/_/package/cc9f9b2b9f92fc82888026414560bf79d8c3a052/bin/make '--directory=src' 'PREFIX=' 'DESTDIR=/home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/package/a3f3ecedb51a8d24e657c68748a3243c5ba030e4' 'LIBSUBDIR=lib' 'BUILD_STATIC_ONLY=1' -j3