Closed CAB233 closed 2 days ago
Thanks for opening this issue!
I have just submitted a PR (https://github.com/daeuniverse/dae_bpf_headers/pull/4) in dae_bpf_headers
repository, please fetch changes and test whether build error persists.
The previous error didn't appear, but a new one appeared.
# github.com/daeuniverse/dae/trace
trace/trace.go:90:71: undefined: bpfObjects
trace/trace.go:91:15: undefined: loadBpf
trace/trace.go:113:10: undefined: bpfObjects
trace/trace.go:189:31: undefined: bpfObjects
trace/trace.go:225:46: undefined: bpfObjects
@CAB233 make ebpf
@CAB233 哦,这可能是 trace 那边的 submodule 没更新,你看看也更新一下,不能只更 kern 里的那个
@CAB233 Could you please confirm if you have updated the submodule trace/kern/headers?
I'm sure that patch is applied in control/kern/headers
and trace/kern/headers
, and I'm seeing the corresponding message during compilation
Then I tried the 0.9.0rc2 version of dae, and it compiles completely.
Checks
Current Behavior
在 riscv64 上尝试构建 latest(0.8.0) dae,虽然能编译出二进制文件,但部分模块无法编译。 相关日志(在本仓库 Action 中也存在相同日志):
built on riscv64
``` go: downloading github.com/sirupsen/logrus v1.9.3 /var/cache/acbs/build/acbs.4uyem51s/dae/trace/kern/trace.c:137:23: error: no member named 'a1' in 'struct user_regs_struct' 137 | meta->second_param = PT_REGS_PARM2(ctx); | ^~~~~~~~~~~~~~~~~~ /var/cache/acbs/build/acbs.4uyem51s/dae/trace/kern/headers/bpf_tracing.h:486:46: note: expanded from macro 'PT_REGS_PARM2' 486 | #define PT_REGS_PARM2(x) (__PT_REGS_CAST(x)->__PT_PARM2_REG) | ~~~~~~~~~~~~~~~~~ ^ /var/cache/acbs/build/acbs.4uyem51s/dae/trace/kern/headers/bpf_tracing.h:357:24: note: expanded from macro '__PT_PARM2_REG' 357 | #define __PT_PARM2_REG a1 | ^ /var/cache/acbs/build/acbs.4uyem51s/dae/trace/kern/trace.c:227:1: error: no member named 'a0' in 'struct user_regs_struct' 227 | KPROBE_SKB_AT(1) | ^~~~~~~~~~~~~~~~ /var/cache/acbs/build/acbs.4uyem51s/dae/trace/kern/trace.c:223:46: note: expanded from macro 'KPROBE_SKB_AT' 223 | struct sk_buff *skb = (struct sk_buff *) PT_REGS_PARM##X(ctx); \ | ^~~~~~~~~~~~~~~~~~~~完整构建日志:https://buildit.aosc.io/web-logs/48101-dae-0.8.0-new-riscv64-debian-pisces-04-2024-11-10-00:47:14.txt
Expected Behavior
No response
Steps to Reproduce
构建脚本:https://github.com/AOSC-Dev/aosc-os-abbs/pull/8555/files
Environment
dae --version
): try to build 0.8.0cat /etc/os-release
): AOSC OS (11.6.1)uname -a
): 6.1.80-aosc-sg2042 riscv64 GNU/LinuxAnything else?
No response