登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
Gitee 2025 年度开源项目评选中
代码拉取完成,页面将自动刷新
开源项目
>
其他开源
>
操作系统
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
40
Star
165
Fork
121
anolis
/
SysAK
代码
Issues
27
Pull Requests
22
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
raptor编译失败
意向
#I7M0KO
需求
冯中秀
创建于
2023-07-18 15:35
### 问题描述 + 内核版本: 5.10.134-13.1.an8.x86_64 + OS 版本: Anolis OS release 8.6 + 平台架构: x86_64 + 相关日志: ### 复现方法 ./configure --enable-target-raptor --enable-libbpf --disable-default make ### 实际效果 ```bash find /root/sysak/out/.sysak_components -name ".sysak.rules" |xargs rm -rf make -C /root/sysak/source/lib make[1]: 进入目录“/root/sysak/source/lib” sysak_module_tag=`curl https://gitee.com/anolis/sysak-module/tree/master | grep "anolis/sysak-module/commit/\w\{7\}" -o | awk -F "/" '{print $4}'`; \ echo sysak_module_tag=$sysak_module_tag >> /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/../.sysak.rules % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 107k 0 107k 0 0 118k 0 --:--:-- --:--:-- --:--:-- 118k make -C uapi make[2]: 进入目录“/root/sysak/source/lib/uapi” gcc -c -o /root/sysak/out/cJSON.o cJSON.c -I/root/sysak/source/lib/uapi/include gcc -c -o /root/sysak/out/pidComm.o pidComm.c -I/root/sysak/source/lib/uapi/include ar -rc /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/libsysak.a /root/sysak/out/./cJSON.o /root/sysak/out/./pidComm.o make[2]: 离开目录“/root/sysak/source/lib/uapi” cd internal/ebpf/coolbpf && mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64 .. && make install Found libelf library: /usr/lib64/libelf.so -- Configuring done -- Generating done -- Build files have been written to: /root/sysak/source/lib/internal/ebpf/coolbpf/build make[2]: 进入目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” make[3]: 进入目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” make[4]: 进入目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” Consolidate compiler generated dependencies of target coolbpf_static make[4]: 离开目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” [ 50%] Built target coolbpf_static make[4]: 进入目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” Consolidate compiler generated dependencies of target coolbpf make[4]: 离开目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” [100%] Built target coolbpf make[3]: 离开目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” Install the project... -- Install configuration: "" -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/lib/libcoolbpf.so.1.0.0 -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/lib/libcoolbpf.so -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/lib/libcoolbpf.a -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf_core.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/btfparse.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/coolbpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/coolbpf_bpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/coolbpf_common.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/fastksym.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/kallsyms.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/log.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/lib/pkgconfig/coolbpf.pc -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_core_read.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_drv.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_endian.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_gen_internal.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_helper_defs.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_helpers.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_tracing.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/btf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/hashmap.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf_common.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf_internal.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf_legacy.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf_version.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/nlattr.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/relo_core.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/skel_internal.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/str_error.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/strset.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/xsk.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/linux/bpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/linux/bpf_common.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/linux/btf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/vmlinux.h make[2]: 离开目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” make[1]: 离开目录“/root/sysak/source/lib” make -C /root/sysak/source/tools/monitor/raptor -j make[1]: 进入目录“/root/sysak/source/tools/monitor/raptor” make -C source INSTALL_PRE=/root/sysak/out/.sysak_components/tools install make[2]: 进入目录“/root/sysak/source/tools/monitor/raptor/source” pt=`pwd`;pt_prev=${pt#*'source/tools/'};target_class=${pt_prev%'/'*};\ if [ -f README.md ]; then helpinfo=`grep 功能说明 README.md -A 1 | grep -v 功能说明`;fi;\ echo $target_class:raptor::help{$helpinfo} >> /root/sysak/out/.sysak_components/tools/.sysak.rules COMPLIE eBPF PROFILE... make -C ebpf/src profile make[3]: 进入目录“/root/sysak/source/tools/monitor/raptor/source/ebpf/src” make -C bcc/ clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c oncpu.bpf.c -o oncpu.bpf.o test -d src || git clone http://github.com/korniltsev/bcc src clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c offcpu.bpf.c -o offcpu.bpf.o cd src && git checkout b9554b585afe18540ba98dde5b667e5b4036f479 clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c user_slow.bpf.c -o user_slow.bpf.o clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c ping_slow.bpf.c -o ping_slow.bpf.o clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c nginx.bpf.c -o nginx.bpf.o HEAD 目前位于 b9554b58 fix: build test -d src/build && rm -rf src/build || echo bcc src/build dir does not exits mkdir src/build cd src/build \ && cmake ../build-syms \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib \ && make -j16 install CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as project(ProjectName) near the top of the file, but after cmake_minimum_required(). CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is Clang 13.0.1 -- The CXX compiler identification is Clang 13.0.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.20) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done -- Generating done -- Build files have been written to: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/build [ 8%] Building CXX object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_syms.o [ 16%] Building CXX object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_syms.o [ 25%] Building C object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_elf.o [ 33%] Building C object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_perf_map.o [ 41%] Building C object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_perf_map.o [ 50%] Building C object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_elf.o [ 58%] Building C object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_proc.o [ 66%] Building C object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_proc.o [ 75%] Building CXX object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/common.o [ 83%] Building CXX object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/common.o /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_elf.c:839:8: warning: implicit declaration of function 'mkostemp' is invalid in C99 [-Wimplicit-function-declaration] fd = mkostemp(tmpfile, O_CLOEXEC); ^ /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_elf.c:839:8: warning: implicit declaration of function 'mkostemp' is invalid in C99 [-Wimplicit-function-declaration] fd = mkostemp(tmpfile, O_CLOEXEC); ^ 1 warning generated. 1 warning generated. [ 91%] Linking CXX static library libbcc-syms.a [100%] Linking CXX shared library libbcc-syms.so [100%] Built target bcc-syms-static [100%] Built target bcc-syms Install the project... -- Install configuration: "Release" -- Installing: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib/lib/libbcc-syms.so -- Installing: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib/lib/libbcc-syms.a -- Up-to-date: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib/include/bcc_syms/bcc_syms.h -- Up-to-date: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib/include/bcc_syms/bcc_proc.h make -C libbpf/ test -d src || git clone http://github.com/libbpf/libbpf src #test -d src || git clone git@github.com:libbpf/libbpf.git src cd src && git checkout v0.8.1 M src/btf_dump.c HEAD 目前位于 d4fc7a5 libbpf: v0.8.1 release #fix the low gcc version complie error sed -i 's/int i, err;/int i, err = 0;/g' src/src/btf_dump.c PREFIX=/root/sysak/source/tools/monitor/raptor/source/ebpf/src/libbpf/lib make -C src/src -j16 install CC staticobjs/btf_dump.o CC sharedobjs/btf_dump.o 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 usdt.bpf.h INSTALL ./libbpf.pc AR libbpf.a CC libbpf.so.0.8.1 INSTALL ./libbpf.a ./libbpf.so ./libbpf.so.0 ./libbpf.so.0.8.1 cp -f libbpf/src/.github/actions/build-selftests/vmlinux.h vmlinux/vmlinux.h make[3]: 离开目录“/root/sysak/source/tools/monitor/raptor/source/ebpf/src” cp -f ebpf/src/*.o profile/agent/ebpf/bpf cp -f ebpf/src/nginx.bpf.o nginx make make[3]: 进入目录“/root/sysak/source/tools/monitor/raptor/source” Config Golang Env... bash ./config_goenv.sh No Golang Env, We Start To Config --2023-07-18 15:26:20-- https://go.dev/dl/go1.19.3.linux-amd64.tar.gz 正在解析主机 go.dev (go.dev)... 216.239.32.21, 216.239.36.21, 216.239.38.21, ... 正在连接 go.dev (go.dev)|216.239.32.21|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 302 Found 位置:https://dl.google.com/go/go1.19.3.linux-amd64.tar.gz [跟随至新的 URL] --2023-07-18 15:26:20-- https://dl.google.com/go/go1.19.3.linux-amd64.tar.gz 正在解析主机 dl.google.com (dl.google.com)... 220.181.174.161 正在连接 dl.google.com (dl.google.com)|220.181.174.161|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:148907134 (142M) [application/x-gzip] 正在保存至: “go1.19.3.linux-amd64.tar.gz.2” go1.19.3.linux-amd64.tar.gz.2 100%[=================================================================================================================>] 142.01M 27.9MB/s 用时 6.3s 2023-07-18 15:26:27 (22.7 MB/s) - 已保存 “go1.19.3.linux-amd64.tar.gz.2” [148907134/148907134]) Golang Compile Env Config Success! make[3]: 离开目录“/root/sysak/source/tools/monitor/raptor/source” cp raptor /root/sysak/out/.sysak_components/tools/ cp: 无法获取'raptor' 的文件状态(stat): 没有那个文件或目录 make[2]: *** [Makefile:57:install] 错误 1 make[2]: 离开目录“/root/sysak/source/tools/monitor/raptor/source” make[1]: *** [/root/sysak/source/mk/submod.mk:10:raptor] 错误 2 make[1]: 离开目录“/root/sysak/source/tools/monitor/raptor” make: *** [Makefile:40:/root/sysak/source/tools/monitor/raptor] 错误 2 ``` ### 期望效果 编译成功
### 问题描述 + 内核版本: 5.10.134-13.1.an8.x86_64 + OS 版本: Anolis OS release 8.6 + 平台架构: x86_64 + 相关日志: ### 复现方法 ./configure --enable-target-raptor --enable-libbpf --disable-default make ### 实际效果 ```bash find /root/sysak/out/.sysak_components -name ".sysak.rules" |xargs rm -rf make -C /root/sysak/source/lib make[1]: 进入目录“/root/sysak/source/lib” sysak_module_tag=`curl https://gitee.com/anolis/sysak-module/tree/master | grep "anolis/sysak-module/commit/\w\{7\}" -o | awk -F "/" '{print $4}'`; \ echo sysak_module_tag=$sysak_module_tag >> /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/../.sysak.rules % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 107k 0 107k 0 0 118k 0 --:--:-- --:--:-- --:--:-- 118k make -C uapi make[2]: 进入目录“/root/sysak/source/lib/uapi” gcc -c -o /root/sysak/out/cJSON.o cJSON.c -I/root/sysak/source/lib/uapi/include gcc -c -o /root/sysak/out/pidComm.o pidComm.c -I/root/sysak/source/lib/uapi/include ar -rc /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/libsysak.a /root/sysak/out/./cJSON.o /root/sysak/out/./pidComm.o make[2]: 离开目录“/root/sysak/source/lib/uapi” cd internal/ebpf/coolbpf && mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=/root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64 .. && make install Found libelf library: /usr/lib64/libelf.so -- Configuring done -- Generating done -- Build files have been written to: /root/sysak/source/lib/internal/ebpf/coolbpf/build make[2]: 进入目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” make[3]: 进入目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” make[4]: 进入目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” Consolidate compiler generated dependencies of target coolbpf_static make[4]: 离开目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” [ 50%] Built target coolbpf_static make[4]: 进入目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” Consolidate compiler generated dependencies of target coolbpf make[4]: 离开目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” [100%] Built target coolbpf make[3]: 离开目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” Install the project... -- Install configuration: "" -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/lib/libcoolbpf.so.1.0.0 -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/lib/libcoolbpf.so -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/lib/libcoolbpf.a -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf_core.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/btfparse.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/coolbpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/coolbpf_bpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/coolbpf_common.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/fastksym.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/kallsyms.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/log.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/lib/pkgconfig/coolbpf.pc -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_core_read.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_drv.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_endian.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_gen_internal.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_helper_defs.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_helpers.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/bpf_tracing.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/btf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/hashmap.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf_common.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf_internal.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf_legacy.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/libbpf_version.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/nlattr.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/relo_core.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/skel_internal.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/str_error.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/strset.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/bpf/xsk.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/linux/bpf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/linux/bpf_common.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/linux/btf.h -- Up-to-date: /root/sysak/out/.sysak_components/lib/5.10.134-13.1.an8.x86_64/include/coolbpf/vmlinux.h make[2]: 离开目录“/root/sysak/source/lib/internal/ebpf/coolbpf/build” make[1]: 离开目录“/root/sysak/source/lib” make -C /root/sysak/source/tools/monitor/raptor -j make[1]: 进入目录“/root/sysak/source/tools/monitor/raptor” make -C source INSTALL_PRE=/root/sysak/out/.sysak_components/tools install make[2]: 进入目录“/root/sysak/source/tools/monitor/raptor/source” pt=`pwd`;pt_prev=${pt#*'source/tools/'};target_class=${pt_prev%'/'*};\ if [ -f README.md ]; then helpinfo=`grep 功能说明 README.md -A 1 | grep -v 功能说明`;fi;\ echo $target_class:raptor::help{$helpinfo} >> /root/sysak/out/.sysak_components/tools/.sysak.rules COMPLIE eBPF PROFILE... make -C ebpf/src profile make[3]: 进入目录“/root/sysak/source/tools/monitor/raptor/source/ebpf/src” make -C bcc/ clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c oncpu.bpf.c -o oncpu.bpf.o test -d src || git clone http://github.com/korniltsev/bcc src clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c offcpu.bpf.c -o offcpu.bpf.o cd src && git checkout b9554b585afe18540ba98dde5b667e5b4036f479 clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c user_slow.bpf.c -o user_slow.bpf.o clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c ping_slow.bpf.c -o ping_slow.bpf.o clang -ggdb -gdwarf -O2 -Wall -fpie -Wno-unused-variable -Wno-unused-function -I./lib/include -target bpf -D__TARGET_ARCH_x86 -I./libbpf/lib/include -c nginx.bpf.c -o nginx.bpf.o HEAD 目前位于 b9554b58 fix: build test -d src/build && rm -rf src/build || echo bcc src/build dir does not exits mkdir src/build cd src/build \ && cmake ../build-syms \ -DCMAKE_C_COMPILER=clang \ -DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib \ && make -j16 install CMake Warning (dev) in CMakeLists.txt: No project() command is present. The top-level CMakeLists.txt file must contain a literal, direct call to the project() command. Add a line of code such as project(ProjectName) near the top of the file, but after cmake_minimum_required(). CMake is pretending there is a "project(Project)" command on the first line. This warning is for project developers. Use -Wno-dev to suppress it. -- The C compiler identification is Clang 13.0.1 -- The CXX compiler identification is Clang 13.0.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.20) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done -- Generating done -- Build files have been written to: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/build [ 8%] Building CXX object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_syms.o [ 16%] Building CXX object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_syms.o [ 25%] Building C object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_elf.o [ 33%] Building C object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_perf_map.o [ 41%] Building C object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_perf_map.o [ 50%] Building C object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_elf.o [ 58%] Building C object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_proc.o [ 66%] Building C object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_proc.o [ 75%] Building CXX object CMakeFiles/bcc-syms.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/common.o [ 83%] Building CXX object CMakeFiles/bcc-syms-static.dir/root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/common.o /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_elf.c:839:8: warning: implicit declaration of function 'mkostemp' is invalid in C99 [-Wimplicit-function-declaration] fd = mkostemp(tmpfile, O_CLOEXEC); ^ /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/src/src/cc/bcc_elf.c:839:8: warning: implicit declaration of function 'mkostemp' is invalid in C99 [-Wimplicit-function-declaration] fd = mkostemp(tmpfile, O_CLOEXEC); ^ 1 warning generated. 1 warning generated. [ 91%] Linking CXX static library libbcc-syms.a [100%] Linking CXX shared library libbcc-syms.so [100%] Built target bcc-syms-static [100%] Built target bcc-syms Install the project... -- Install configuration: "Release" -- Installing: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib/lib/libbcc-syms.so -- Installing: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib/lib/libbcc-syms.a -- Up-to-date: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib/include/bcc_syms/bcc_syms.h -- Up-to-date: /root/sysak/source/tools/monitor/raptor/source/ebpf/src/bcc/lib/include/bcc_syms/bcc_proc.h make -C libbpf/ test -d src || git clone http://github.com/libbpf/libbpf src #test -d src || git clone git@github.com:libbpf/libbpf.git src cd src && git checkout v0.8.1 M src/btf_dump.c HEAD 目前位于 d4fc7a5 libbpf: v0.8.1 release #fix the low gcc version complie error sed -i 's/int i, err;/int i, err = 0;/g' src/src/btf_dump.c PREFIX=/root/sysak/source/tools/monitor/raptor/source/ebpf/src/libbpf/lib make -C src/src -j16 install CC staticobjs/btf_dump.o CC sharedobjs/btf_dump.o 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 usdt.bpf.h INSTALL ./libbpf.pc AR libbpf.a CC libbpf.so.0.8.1 INSTALL ./libbpf.a ./libbpf.so ./libbpf.so.0 ./libbpf.so.0.8.1 cp -f libbpf/src/.github/actions/build-selftests/vmlinux.h vmlinux/vmlinux.h make[3]: 离开目录“/root/sysak/source/tools/monitor/raptor/source/ebpf/src” cp -f ebpf/src/*.o profile/agent/ebpf/bpf cp -f ebpf/src/nginx.bpf.o nginx make make[3]: 进入目录“/root/sysak/source/tools/monitor/raptor/source” Config Golang Env... bash ./config_goenv.sh No Golang Env, We Start To Config --2023-07-18 15:26:20-- https://go.dev/dl/go1.19.3.linux-amd64.tar.gz 正在解析主机 go.dev (go.dev)... 216.239.32.21, 216.239.36.21, 216.239.38.21, ... 正在连接 go.dev (go.dev)|216.239.32.21|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 302 Found 位置:https://dl.google.com/go/go1.19.3.linux-amd64.tar.gz [跟随至新的 URL] --2023-07-18 15:26:20-- https://dl.google.com/go/go1.19.3.linux-amd64.tar.gz 正在解析主机 dl.google.com (dl.google.com)... 220.181.174.161 正在连接 dl.google.com (dl.google.com)|220.181.174.161|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:148907134 (142M) [application/x-gzip] 正在保存至: “go1.19.3.linux-amd64.tar.gz.2” go1.19.3.linux-amd64.tar.gz.2 100%[=================================================================================================================>] 142.01M 27.9MB/s 用时 6.3s 2023-07-18 15:26:27 (22.7 MB/s) - 已保存 “go1.19.3.linux-amd64.tar.gz.2” [148907134/148907134]) Golang Compile Env Config Success! make[3]: 离开目录“/root/sysak/source/tools/monitor/raptor/source” cp raptor /root/sysak/out/.sysak_components/tools/ cp: 无法获取'raptor' 的文件状态(stat): 没有那个文件或目录 make[2]: *** [Makefile:57:install] 错误 1 make[2]: 离开目录“/root/sysak/source/tools/monitor/raptor/source” make[1]: *** [/root/sysak/source/mk/submod.mk:10:raptor] 错误 2 make[1]: 离开目录“/root/sysak/source/tools/monitor/raptor” make: *** [Makefile:40:/root/sysak/source/tools/monitor/raptor] 错误 2 ``` ### 期望效果 编译成功
评论 (
3
)
登录
后才可以发表评论
状态
意向
意向
进行中
已完成
已拒绝
负责人
未设置
标签
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
未关联
opensource_branch
revert-merge-778-opensource_branch
opensource_branch_sync
opensource_branch_sync_xiaomi
unity
dev_suiya
app-observability
arm64
rtrace
unity-con
iosdiag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/anolis/sysak.git
git@gitee.com:anolis/sysak.git
anolis
sysak
SysAK
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册