******************************************************************************** conan install libbpf/0.4.0@ --build=libbpf --profile=/home/conan/w/BuildSingleReference/14851/79636fd7-1ce2-447d-a187-1238e58cc9b0/profile.txt ******************************************************************************** Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++ compiler.version=4.9 os=Linux os_build=Linux [options] libbpf:shared=True [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:754cf15515c6dceb9d2efd59706756c265f2a5b2 - Build libelf/0.8.13:b869e6c05cb587ad588e5ec485deb62012ec7b93 - Cache zlib/1.2.11:b869e6c05cb587ad588e5ec485deb62012ec7b93 - Cache Build requirements make/4.2.1 from 'conan-center' - Cache Build requirements packages make/4.2.1:24647d9fe8ec489125dfbae4b3ebefaf7581674c - 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/24647d9fe8ec489125dfbae4b3ebefaf7581674c/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/754cf15515c6dceb9d2efd59706756c265f2a5b2 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)] 'fPIC' option not found [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/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/make '--directory=src' 'PREFIX=' 'DESTDIR=/home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/package/754cf15515c6dceb9d2efd59706756c265f2a5b2' 'LIBSUBDIR=lib' -j3 ----------------- make: Entering directory '/home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/754cf15515c6dceb9d2efd59706756c265f2a5b2/source_subfolder/src' MKDIR staticobjs MKDIR sharedobjs CC bpf.o CC btf.o CC libbpf.o make: Leaving directory '/home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/754cf15515c6dceb9d2efd59706756c265f2a5b2/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; ^ make: *** [Makefile:113: staticobjs/libbpf.o] Error 1 make: *** Waiting for unfinished jobs.... gcc: internal compiler error: Terminated (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make: *** [Makefile:112: staticobjs/btf.o] Error 4 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/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib libbpf/0.4.0: WARN: Build folder is dirty, removing it: /home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/754cf15515c6dceb9d2efd59706756c265f2a5b2 libbpf/0.4.0: ERROR: Package '754cf15515c6dceb9d2efd59706756c265f2a5b2' build failed libbpf/0.4.0: WARN: Build folder /home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/build/754cf15515c6dceb9d2efd59706756c265f2a5b2 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/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/make '--directory=src' 'PREFIX=' 'DESTDIR=/home/conan/w/BuildSingleReference/.conan/data/libbpf/0.4.0/_/_/package/754cf15515c6dceb9d2efd59706756c265f2a5b2' 'LIBSUBDIR=lib' -j3 Terminated