登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
11月29日 Gitee Talk | 模力方舟 AI 沙龙深圳站:看懂算力到应用的下一个主战场!点击立即报名~
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
18
Star
83
Fork
132
openEuler
/
gala-gopher
代码
Issues
12
Pull Requests
3
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
1115
【轻量级 PR】:update build/build.sh.
开启的
N/A
openEuler:master
冯中秀
创建于 2024-12-31 11:10
克隆/下载
HTTPS
SSH
复制
下载 Email Patch
下载 Diff 文件
在某些操作系统发行版,系统自带的clang版本低,需升级clang,问题如下: ```bash [root@localhost build]# sh build.sh --release clang -g -O2 -Wall -fPIC -std=gnu11 -Wunused -D__TARGET_ARCH_x86 -D__BTF_ENABLE_OFF -DBPF_NO_GLOBAL_DATA -DLIBBPF_VER_MAJOR=0 -DLIBBPF_VER_MINOR=0 -DCLANG_VER_MAJOR=3 -DENABLE_BASEINFO -DENABLE_VIRT -DENABLE_FLAMEGRAPH -DENABLE_L7 -DENABLE_TCP -DENABLE_SOCKET -DENABLE_IO -DENABLE_PROC -DENABLE_JVM -DENABLE_POSTGRE_SLI -DENABLE_OPENGAUSS_SLI -DENABLE_NGINX -DENABLE_LVS -DENABLE_KAFKA -DENABLE_TPROFILING -DENABLE_HW -DENABLE_KSLI -DENABLE_CONTAINER -DENABLE_SERMANT -DENABLE_SLI -DENABLE_FLOWTRACER -DENABLE_REPORT_EVENT -DKAFKA_CHANNEL -DFLAMEGRAPH_SVG -DL4_TOA -target bpf -I/usr/include -I/root/gala-gopher/src/lib//../common -I/root/gala-gopher/src/lib//lib -I/root/gala-gopher/src/lib//../probes/extends/ebpf.probe/src/include -I/root/gala-gopher/src/lib//.output -I/usr/include/libelf -c snooper.bpf.c -o snooper.bpf.o error: unknown target triple 'bpf', please use -triple or -arch make: *** [snooper.bpf.o] Error 1 prepare probes after tailor: /root/gala-gopher/src/probes/system_infos.probe /root/gala-gopher/src/probes/virtualized_infos.probe PROBES_C_LIST: /root/gala-gopher/src/probes/system_infos.probe/system_infos_daemon.c;/root/gala-gopher/src/probes/system_infos.probe/system_cons.c;/root/gala-gopher/src/probes/system_infos.probe/system_cpu.c;/root/gala-gopher/src/probes/system_infos.probe/system_disk.c;/root/gala-gopher/src/probes/system_infos.probe/system_meminfo.c;/root/gala-gopher/src/probes/system_infos.probe/system_net.c;/root/gala-gopher/src/probes/system_infos.probe/system_os.c;/root/gala-gopher/src/probes/system_infos.probe/system_procs.c;/root/gala-gopher/src/probes/virtualized_infos.probe/virtualized_infos_daemon.c;/root/gala-gopher/src/probes/virtualized_infos.probe/virt_proc.c PROBES_META_LIST: /root/gala-gopher/src/probes/system_infos.probe/system_infos.meta /root/gala-gopher/src/probes/virtualized_infos.probe/virtualized_infos.meta LIBBPF_VER: 0.0.4 /root/gala-gopher/src/lib/probe cc -g -O2 -Wall -fPIC -std=gnu11 -Wunused -D__TARGET_ARCH_x86 -D__BTF_ENABLE_OFF -DBPF_NO_GLOBAL_DATA -DLIBBPF_VER_MAJOR=0 -DLIBBPF_VER_MINOR=0 -DCLANG_VER_MAJOR=3 -DENABLE_BASEINFO -DENABLE_VIRT -DENABLE_FLAMEGRAPH -DENABLE_L7 -DENABLE_TCP -DENABLE_SOCKET -DENABLE_IO -DENABLE_PROC -DENABLE_JVM -DENABLE_POSTGRE_SLI -DENABLE_OPENGAUSS_SLI -DENABLE_NGINX -DENABLE_LVS -DENABLE_KAFKA -DENABLE_TPROFILING -DENABLE_HW -DENABLE_KSLI -DENABLE_CONTAINER -DENABLE_SERMANT -DENABLE_SLI -DENABLE_FLOWTRACER -DENABLE_REPORT_EVENT -DKAFKA_CHANNEL -DFLAMEGRAPH_SVG -DL4_TOA -Wno-format-truncation -I/usr/include -I/root/gala-gopher/src/lib//../common -I/root/gala-gopher/src/lib//lib -I/root/gala-gopher/src/lib//../probes/extends/ebpf.probe/src/include -I/root/gala-gopher/src/lib//.output -I/usr/include/libelf jvm_attach.c -o jvm_attach make: cc: Command not found make: *** [jvm_attach] Error 127 gcc -g -O2 -Wall -fPIC -shared -Wl,-z,relro,-z,now -std=gnu11 -Wno-format-truncation -Wunused -D__TARGET_ARCH_x86 -DBPF_NO_GLOBAL_DATA -DLIBBPF_VER_MAJOR=0 -DLIBBPF_VER_MINOR=0 -DENABLE_REPORT_EVENT -DKAFKA_CHANNEL -DFLAMEGRAPH_SVG -DL4_TOA -c -o logs.o logs.c make: gcc: Command not found make: *** [logs.o] Error 127 [root@localhost build]# rpm -qa | grep clang clang-3.4.2-9.uelc20.01.x86_64 ``` 这时不会自动安装gcc-c++,现补充上相关依赖
此 Pull Request 可以被系统自动合并 ,目标分支为保护分支,您没有合并权限
怎样手动合并此 Pull Request
git checkout master
git pull https://gitee.com/openeuler/gala-gopher.git N/A
git push origin master
评论
7
提交
1
文件
1
检查
代码问题
0
批量操作
展开设置
折叠设置
审查
Code Owner
审查人员
luzhihao
MrRlu
leon wang
wonleing
胡亚弟
huyd12
陈臻
Vchanger
weiyj
weiyj_lk
happyseeker
happyseeker
yuelg
bigclouds99
Qingwei Xu
QingweiXu
openeuler-ci-bot
openeuler-ci-bot
未设置
最少人数
0
测试
luzhihao
MrRlu
leon wang
wonleing
胡亚弟
huyd12
陈臻
Vchanger
weiyj
weiyj_lk
happyseeker
happyseeker
yuelg
bigclouds99
Qingwei Xu
QingweiXu
openeuler-ci-bot
openeuler-ci-bot
未设置
最少人数
0
优先级
不指定
严重
主要
次要
不重要
标签
openeuler-cla/no
ci_successful
sig/sig-ebpf
关联 Issue
未关联
Pull Request 合并后将关闭上述关联 Issue
里程碑
未关联里程碑
合并选项
合并后关闭提到的 Issue
接受 Pull Request 时使用扁平化(Squash)合并
勾选此选项后,将建议使用 Squash Merge 方式合并以精简提交历史记录
参与者
(3)
1
https://gitee.com/openeuler/gala-gopher.git
git@gitee.com:openeuler/gala-gopher.git
openeuler
gala-gopher
gala-gopher
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册