Skip to content

Instantly share code, notes, and snippets.

@grantseltzer
Created March 25, 2022 22:47
Show Gist options
  • Save grantseltzer/b787211804268ee553eacf96604ae601 to your computer and use it in GitHub Desktop.
Save grantseltzer/b787211804268ee553eacf96604ae601 to your computer and use it in GitHub Desktop.
...
Successfully built 393e75e4ad77
Successfully tagged ubuntu-tracee-make:latest
docker \
run --rm --pid=host --privileged -v /etc/os-release:/etc/os-release-host:ro -v /home/rotscale/go/src/github.com/aquasecurity/tracee:/tracee -v /lib/modules:/lib/modules:ro -v /usr/src:/usr/src:ro -v /sys/kernel/security:/sys/kernel/security:ro -e LIBBPFGO_OSRELEASE_FILE=/etc/os-release-host -e STATIC=1 -e BTFHUB=1 \
ubuntu-tracee-make \
make all
CC="clang" \
CFLAGS=""-fPIC"" \
LD_FLAGS="" \
make -j8 \
-C ./3rdparty/libbpf/src \
BUILD_STATIC_ONLY=1 \
DESTDIR=/tracee/dist/libbpf \
OBJDIR=/tracee/dist/libbpf/obj \
INCLUDEDIR= LIBDIR= UAPIDIR= prefix= libdir= \
install install_uapi_headers
MKDIR /tracee/dist/libbpf/obj/staticobjs
/bin/sh: 1: cannot create /tracee/dist/libbpf/obj/libbpf.pc: Directory nonexistent
make[1]: *** [Makefile:103: /tracee/dist/libbpf/obj/libbpf.pc] Error 2
make[1]: *** Waiting for unfinished jobs....
INSTALL bpf.h libbpf.h btf.h libbpf_common.h libbpf_legacy.h xsk.h bpf_helpers.h bpf_helper_defs.h bpf_tracing.h bpf_endian.h bpf_core_read.h skel_internal.h libbpf_version.h
INSTALL ../include/uapi/linux/bpf.h ../include/uapi/linux/bpf_common.h ../include/uapi/linux/btf.h
make: *** [Makefile:301: dist/libbpf/libbpf.a] Error 2
rm .check_pkg-config
make[1]: *** [builder/Makefile.tracee-make:189: ubuntu-make] Error 2
tar: ./dist/tracee-ebpf: Cannot stat: No such file or directory
tar: ./dist/tracee-rules: Cannot stat: No such file or directory
tar: ./dist/rules: Cannot stat: No such file or directory
tar: ./dist/tracee.bpf.core.o: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment