-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
I tried updating pkg/bpftrace
to alpine 3.9 and got a compilation error:
Scanning dependencies of target bpf-static
[ 9%] Building C object src/cc/CMakeFiles/bpf-static.dir/libbpf.c.o
In file included from /usr/include/linux/byteorder/little_endian.h:13,
from /usr/include/asm/byteorder.h:5,
from /usr/include/linux/perf_event.h:20,
from /bpftrace/build/bcc-prefix/src/bcc/src/cc/libbpf.c:28:
/usr/include/linux/swab.h:161:8: error: unknown type name '__always_inline'
static __always_inline __u16 __swab16p(const __u16 *p)
^~~~~~~~~~~~~~~
/usr/include/linux/swab.h:161:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__swab16p'
static __always_inline __u16 __swab16p(const __u16 *p)
^~~~~~~~~
[...]
When I used a newer bpftrace
commit, I got another error (after also adding bash
):
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Please install the bcc library package, which is required. Depending on
your distro, it may be called bpfcclib or bcclib (Ubuntu), bcc-devel
(Fedora), or something else. If unavailable, install bcc from source
(github.com/iovisor/bcc). (missing: LIBBCC_LIBRARIES LIBBCC_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/FindLibBcc.cmake:67 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:35 (find_package)
-- Configuring incomplete, errors occurred!
See also "/bpftrace/build/CMakeFiles/CMakeOutput.log".
@simar7 could you take a look?
Metadata
Metadata
Assignees
Labels
No labels