eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
833 stars 78 forks source link

[BUG] fatal error: too many errors emitted, stopping now [-ferror-limit=] on virtualbox ubuntu 23.10 while building #267

Open NobinPegasus opened 7 months ago

NobinPegasus commented 7 months ago

Describe the bug While building on Ubuntu 23.10 VirtualBox image. It fails To Reproduce I'm using Virtualbox with Ubuntu 23.10.

The log

pegasus_vm@pegasusvm:~/Documents/bpftime$ make release JOBS=$(nproc)
cmake -Bbuild  -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
               -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO
-- Started CMake for bpftime v0.1.0...

-- copying compiler.h;err.h;filter.h;kernel.h;list.h;overflow.h;ring_buffer.h;types.h from /home/pegasus_vm/Documents/bpftime/third_party/libbpf//include/linux to /home/pegasus_vm/Documents/bpftime/build/libbpf//linux
-- copying linux/bpf.h;linux/bpf_common.h;linux/btf.h;linux/fcntl.h;linux/if_link.h;linux/if_xdp.h;linux/netdev.h;linux/netlink.h;linux/openat2.h;linux/perf_event.h;linux/pkt_cls.h;linux/pkt_sched.h from /home/pegasus_vm/Documents/bpftime/third_party/libbpf//include/uapi/ to /home/pegasus_vm/Documents/bpftime/build/libbpf//uapi
-- copying bpf.h;bpf_common.h;btf.h;fcntl.h;if_link.h;if_xdp.h;netdev.h;netlink.h;openat2.h;perf_event.h;pkt_cls.h;pkt_sched.h from /home/pegasus_vm/Documents/bpftime/third_party/libbpf//include/uapi/linux to /home/pegasus_vm/Documents/bpftime/build/libbpf//linux
-- All headers to copy: /home/pegasus_vm/Documents/bpftime/build/libbpf//linux/compiler.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/err.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/filter.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/kernel.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/list.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/overflow.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/ring_buffer.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/types.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/bpf.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/bpf_common.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/btf.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/fcntl.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/if_link.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/if_xdp.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/netdev.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/netlink.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/openat2.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/perf_event.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/pkt_cls.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//uapi/linux/pkt_sched.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/bpf.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/bpf_common.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/btf.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/fcntl.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/if_link.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/if_xdp.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/netdev.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/netlink.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/openat2.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/perf_event.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/pkt_cls.h;/home/pegasus_vm/Documents/bpftime/build/libbpf//linux/pkt_sched.h
-- System Name: Linux
-- System Version: 6.5.0-26-generic
-- System Processor: x86_64
-- Using frida: arch=linux-x86_64, version=16.1.2
-- Frida Core Devkit already downloaded
-- Frida GUM Devkit already downloaded
-- Downloading FridaCore from /home/pegasus_vm/Documents/bpftime/third_party/frida/frida-core-devkit-16.1.2-linux-x86_64.tar.xz
-- Downloading FridaGum from /home/pegasus_vm/Documents/bpftime/third_party/frida/frida-gum-devkit-16.1.2-linux-x86_64.tar.xz
-- Skipping ebpf verifier
-- Build spdlog: 1.12.0
-- Build type: RelWithDebInfo
-- Started CMake for vm-bpf v0.1.0...

-- Not using llvm-jit
-- Building for architecture: x86_64
-- x86 architecture detected
-- include/vm/
-- Added all header and implementation files.

-- Finished setting up include directories.
-- Started CMake for runtime v0.1.0...

-- Building for architecture: 
INFO Headers: include/
INFO Found the following sources: src/attach/bpf_attach_ctx.cpp;src/handler/handler_manager.cpp;src/handler/map_handler.cpp;src/handler/perf_event_handler.cpp;src/handler/prog_handler.cpp;src/handler/epoll_handler.cpp;src/bpftime_shm.cpp;src/bpftime_shm_internal.cpp;src/bpftime_shm_json.cpp;src/bpftime_prog.cpp;src/ufunc.cpp;src/bpf_helper.cpp;src/bpf_map/userspace/array_map.cpp;src/bpf_map/userspace/hash_map.cpp;src/bpf_map/userspace/ringbuf_map.cpp;src/bpf_map/userspace/perf_event_array_map.cpp;src/bpf_map/userspace/per_cpu_array_map.cpp;src/bpf_map/userspace/per_cpu_hash_map.cpp;src/bpf_map/userspace/prog_array.cpp;extension/extension_helper.cpp;src/bpf_map/shared/array_map_kernel_user.cpp;src/bpf_map/shared/hash_map_kernel_user.cpp;src/bpf_map/shared/percpu_array_map_kernel_user.cpp;src/bpf_map/shared/perf_event_array_kernel_user.cpp
-- Added all header and implementation files.

-- Configuring done (0.1s)
-- Generating done (0.1s)
-- Build files have been written to: /home/pegasus_vm/Documents/bpftime/build
cmake --build build --config RelWithDebInfo --target install  -j4
gmake[1]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[2]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
[  3%] Built target FridaCore
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
[  6%] Built target FridaGum
[  9%] Built target libbpf
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
[ 10%] Performing build step for 'bpftool'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
make[4]: Entering directory '/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src'
make[4]: warning: -j0 forced in submake: resetting jobserver mode.
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
[ 13%] Built target spdlog
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
[ 15%] Built target vm-bpf
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
[ 15%] Built target bpftime_syscall_trace_syscall_id_table
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
[ 15%] Building CXX object attach/text_segment_transformer/CMakeFiles/bpftime_text_segment_transformer.dir/agent-transformer.cpp.o
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
[ 15%] Building CXX object runtime/CMakeFiles/runtime.dir/src/attach/bpf_attach_ctx.cpp.o
[ 54%] Built target Catch2
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
[ 55%] Built target embedfile
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[3]: Entering directory '/home/pegasus_vm/Documents/bpftime/build'
[ 55%] Building CXX object tools/cli/CMakeFiles/bpftime-cli-cpp.dir/main.cpp.o
...                        libbfd: [ on  ]
...               clang-bpf-co-re: [ on  ]
...                          llvm: [ on  ]
...                        libcap: [ OFF ]
In file included from skeleton/pid_iter.bpf.c:4:
In file included from /home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helpers.h:11:
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:78:83: error: unknown type name '__u64'
static long (*bpf_map_update_elem)(void *map, const void *key, const void *value, __u64 flags) = (void *) 2;
                                                                                  ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:102:42: error: unknown type name '__u32'
static long (*bpf_probe_read)(void *dst, __u32 size, const void *unsafe_ptr) = (void *) 4;
                                         ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:114:16: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u64 (*bpf_ktime_get_ns)(void) = (void *) 5;
               ^
              int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:114:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u64 (*bpf_ktime_get_ns)(void) = (void *) 5;
~~~~~~ ^
int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:114:14: error: function cannot return function type 'int (void)'
static __u64 (*bpf_ktime_get_ns)(void) = (void *) 5;
             ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:177:50: error: unknown type name '__u32'
static long (*bpf_trace_printk)(const char *fmt, __u32 fmt_size, ...) = (void *) 6;
                                                 ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:193:16: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u32 (*bpf_get_prandom_u32)(void) = (void *) 7;
               ^
              int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:193:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u32 (*bpf_get_prandom_u32)(void) = (void *) 7;
~~~~~~ ^
int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:193:14: error: function cannot return function type 'int (void)'
static __u32 (*bpf_get_prandom_u32)(void) = (void *) 7;
             ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:206:16: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u32 (*bpf_get_smp_processor_id)(void) = (void *) 8;
               ^
              int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:206:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u32 (*bpf_get_smp_processor_id)(void) = (void *) 8;
~~~~~~ ^
int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:206:14: error: function cannot return function type 'int (void)'
static __u32 (*bpf_get_smp_processor_id)(void) = (void *) 8;
             ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:227:59: error: unknown type name '__u32'
static long (*bpf_skb_store_bytes)(struct __sk_buff *skb, __u32 offset, const void *from, __u32 len, __u64 flags) = (void *) 9;
                                                          ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:227:91: error: unknown type name '__u32'
static long (*bpf_skb_store_bytes)(struct __sk_buff *skb, __u32 offset, const void *from, __u32 len, __u64 flags) = (void *) 9;
                                                                                          ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:227:102: error: unknown type name '__u64'
static long (*bpf_skb_store_bytes)(struct __sk_buff *skb, __u32 offset, const void *from, __u32 len, __u64 flags) = (void *) 9;
                                                                                                     ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:256:59: error: unknown type name '__u32'
static long (*bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 size) = (void *) 10;
                                                          ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:256:73: error: unknown type name '__u64'
static long (*bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 size) = (void *) 10;
                                                                        ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:256:85: error: unknown type name '__u64'
static long (*bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 size) = (void *) 10;
                                                                                    ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:256:95: error: unknown type name '__u64'
static long (*bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 size) = (void *) 10;
                                                                                              ^
In file included from fatal error: too many errors emitted, stopping now [-ferror-limit=]
skeleton/profiler.bpf.c:4:
In file included from /home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helpers.h:11:
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:78:83: error: unknown type name '__u64'
static long (*bpf_map_update_elem)(void *map, const void *key, const void *value, __u64 flags) = (void *) 2;
                                                                                  ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:102:42: error: unknown type name '__u32'
static long (*bpf_probe_read)(void *dst, __u32 size, const void *unsafe_ptr) = (void *) 4;
                                         ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:114:16: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u64 (*bpf_ktime_get_ns)(void) = (void *) 5;
               ^
              int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:114:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u64 (*bpf_ktime_get_ns)(void) = (void *) 5;
~~~~~~ ^
int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:114:14: error: function cannot return function type 'int (void)'
static __u64 (*bpf_ktime_get_ns)(void) = (void *) 5;
             ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:177:50: error: unknown type name '__u32'
static long (*bpf_trace_printk)(const char *fmt, __u32 fmt_size, ...) = (void *) 6;
                                                 ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:193:16: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u32 (*bpf_get_prandom_u32)(void) = (void *) 7;
               ^
              int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:193:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u32 (*bpf_get_prandom_u32)(void) = (void *) 7;
~~~~~~ ^
int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:193:14: error: function cannot return function type 'int (void)'
static __u32 (*bpf_get_prandom_u32)(void) = (void *) 7;
             ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:206:16: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u32 (*bpf_get_smp_processor_id)(void) = (void *) 8;
               ^
              int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:206:8: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
static __u32 (*bpf_get_smp_processor_id)(void) = (void *) 8;
~~~~~~ ^
int
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:206:14: error: function cannot return function type 'int (void)'
static __u32 (*bpf_get_smp_processor_id)(void) = (void *) 8;
             ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:227:59: error: unknown type name '__u32'
static long (*bpf_skb_store_bytes)(struct __sk_buff *skb, __u32 offset, const void *from, __u32 len, __u64 flags) = (void *) 9;
                                                          ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:227:91: error: unknown type name '__u32'
static long (*bpf_skb_store_bytes)(struct __sk_buff *skb, __u32 offset, const void *from, __u32 len, __u64 flags) = (void *) 9;
                                                                                          ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:227:102: error: unknown type name '__u64'
static long (*bpf_skb_store_bytes)(struct __sk_buff *skb, __u32 offset, const void *from, __u32 len, __u64 flags) = (void *) 9;
                                                                                                     ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:256:59: error: unknown type name '__u32'
static long (*bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 size) = (void *) 10;
                                                          ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:256:73: error: unknown type name '__u64'
static long (*bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 size) = (void *) 10;
                                                                        ^
20/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:256:85: error: unknown type name '__u64'
static long (*bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 size) = (void *) 10;
                                                                                    ^
/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src/bootstrap/libbpf/include/bpf/bpf_helper_defs.h:256:95: error: unknown type name '__u64'
static long (*bpf_l3_csum_replace)(struct __sk_buff *skb, __u32 offset, __u64 from, __u64 to, __u64 size) = (void *) 10;
                                                                                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
 errors generated.
make[4]: *** [Makefile:208: pid_iter.bpf.o] Error 1
make[4]: *** Waiting for unfinished jobs....
20 errors generated.
make[4]: *** [Makefile:208: profiler.bpf.o] Error 1
make[4]: Leaving directory '/home/pegasus_vm/Documents/bpftime/third_party/bpftool/src'
gmake[3]: *** [CMakeFiles/bpftool.dir/build.make:86: bpftool/src/bpftool-stamp/bpftool-build] Error 2
gmake[3]: Leaving directory '/home/pegasus_vm/Documents/bpftime/build'
gmake[2]: *** [CMakeFiles/Makefile2:550: CMakeFiles/bpftool.dir/all] Error 2
gmake[2]: *** Waiting for unfinished jobs....
[ 56%] Building CXX object runtime/CMakeFiles/runtime.dir/src/handler/handler_manager.cpp.o
^Cgmake[3]: *** wait: No child processes.  Stop.
gmake[3]: *** [runtime/CMakeFiles/runtime.dir/build.make:90: runtime/CMakeFiles/runtime.dir/src/handler/handler_manager.cpp.o] Interrupt
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: *** wait: No child processes.  Stop.
gmake[3]: *** [attach/text_segment_transformer/CMakeFiles/bpftime_text_segment_transformer.dir/build.make:76: attach/text_segment_transformer/CMakeFiles/bpftime_text_segment_transformer.dir/agent-transformer.cpp.o] Interrupt
gmake[2]: *** [CMakeFiles/Makefile2:1261: tools/cli/CMakeFiles/bpftime-cli-cpp.dir/all] Error 2
gmake[3]: *** [runtime/CMakeFiles/runtime.dir/build.make:76: runtime/CMakeFiles/runtime.dir/src/attach/bpf_attach_ctx.cpp.o] Interrupt
gmake[2]: *** [CMakeFiles/Makefile2:924: attach/text_segment_transformer/CMakeFiles/bpftime_text_segment_transformer.dir/all] Interrupt
gmake[2]: *** [CMakeFiles/Makefile2:953: runtime/CMakeFiles/runtime.dir/all] Interrupt
gmake[1]: *** [Makefile:156: all] Interrupt
make: *** [Makefile:59: release] Interrupt

Expected behavior I was having trouble on building bpftime on my local machine. So I switched to virtualbox. But it still shows error.

Screenshots image

System Specs:

pegasus_vm@pegasusvm:~$ uname -a
Linux pegasusvm 6.5.0-26-generic #26-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar  5 21:19:28 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
pegasus_vm@pegasusvm:~$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 23.10"
NAME="Ubuntu"
VERSION_ID="23.10"
VERSION="23.10 (Mantic Minotaur)"
VERSION_CODENAME=mantic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=mantic
LOGO=ubuntu-logo

I have also installed all the prerequisites using the commands in the repo.

Officeyutong commented 7 months ago

Try https://github.com/jsitnicki/ebpf-summit-2020/issues/1

Officeyutong commented 6 months ago

Try jsitnicki/ebpf-summit-2020#1

@NobinPegasus Could this issue be solved by this method?

hp77-creator commented 4 months ago

@NobinPegasus can you update with your finding? as mentioned https://github.com/jsitnicki/ebpf-summit-2020/issues/1#issuecomment-1014338225 Can you try and update this issue?