一加平板pro编译报错了
2026-09-21T07:21:50.5582873Z -- SukiSU-Ultra 版本:40922 [v4.2.0-Numbersf@builtin[b20dee70]] 2026-09-21T07:21:50.5622537Z -- 内核版本:6.1 2026-09-21T07:21:50.5662237Z -- 内核类型:GKI 2.0 2026-09-21T07:21:50.5682292Z -- SukiSU-Ultra:使用 SUSFS_INLINE_HOOK 2026-09-21T07:21:50.5691928Z -- KPM 已启用 2026-09-21T07:21:50.5996856Z -- SukiSU-Ultra/compat:找到现代静态按键接口 2026-09-21T07:21:50.6130697Z 2026-09-21T07:21:50.6144036Z -- SUSFS_VERSION: v2.3.0 2026-09-21T07:21:50.6157320Z CC drivers/kernelsu/ksu.o 2026-09-21T07:21:51.2902246Z CC [M] drivers/bluetooth/hci_ldisc.o 2026-09-21T07:21:51.7542303Z AR drivers/interconnect/built-in.a 2026-09-21T07:21:51.7630259Z CC drivers/android/vendor_hooks.o 2026-09-21T07:21:51.8232313Z CC [M] drivers/bluetooth/hci_serdev.o 2026-09-21T07:21:53.7612291Z CC drivers/android/debug_kinfo.o 2026-09-21T07:21:54.1519721Z CC [M] drivers/bluetooth/hci_h4.o 2026-09-21T07:21:55.1320091Z CC [M] drivers/bluetooth/hci_ll.o 2026-09-21T07:21:55.7282587Z AR drivers/kernelsu/built-in.a 2026-09-21T07:21:55.7362203Z CC [M] drivers/bluetooth/hci_bcm.o 2026-09-21T07:21:56.3205835Z AR drivers/android/built-in.a 2026-09-21T07:21:56.3382836Z CC [M] drivers/bluetooth/hci_qca.o 2026-09-21T07:21:56.4941735Z CC [M] drivers/bluetooth/btsdio.o 2026-09-21T07:21:56.7585328Z AR drivers/built-in.a 2026-09-21T07:21:56.8142248Z CC [M] drivers/bluetooth/btbcm.o 2026-09-21T07:21:57.5182431Z CC [M] drivers/bluetooth/btqca.o 2026-09-21T07:21:58.3556035Z LD [M] drivers/bluetooth/hci_uart.o 2026-09-21T07:21:59.3396005Z AR 内置.a 2026-09-21T07:21:59.4393511Z AR vmlinux.a 2026-09-21T07:21:59.7614594Z LD vmlinux.o 2026-09-21T07:22:00.8558440Z OBJCOPY modules.builtin.modinfo 2026-09-21T07:22:01.4598476Z GEN 模块.内置 2026-09-21T07:22:02.0532835Z GEN.vmlinux.objs 2026-09-21T07:22:02.0694881Z MODPOST 模块.symvers 2026-09-21T07:22:02.5264703Z GEN vmlinux.symvers 2026-09-21T07:22:02.5576854Z CC .vmlinux.export.o 2026-09-21T07:22:02.8528514Z 更新 include/generated/utsversion.h 2026-09-21T07:22:02.8564235Z CC init/version-timestamp.o 2026-09-21T07:22:03.1675392Z LD .tmp_vmlinux.btf 2026-09-21T07:22:03.6567260Z ld.lld: 错误:未定义的符号:ksu_handle_post_execveat_sucompat 2026-09-21T07:22:03.6567960Z >>> 被 exec.c:1994 (../fs/exec.c:1994) 引用 2026-09-21T07:22:03.6568532Z >>> fs/exec.o:(do_execveat_common) 在归档文件 vmlinux.a 中 2026-09-21T07:22:03.7934054Z BTF.btf.vmlinux.bin.o 2026-09-21T07:22:03.7951756Z pahole: .tmp_vmlinux.btf: 没有该文件或目录 2026-09-21T07:22:03.8109939Z LD .tmp_vmlinux.kallsyms1 2026-09-21T07:22:03.8630585Z ld.lld:错误:.btf.vmlinux.bin.o:未知文件类型 2026-09-21T07:22:03.8766418Z make[2]: *** [../scripts/Makefile.vmlinux:34: vmlinux] 错误 1 2026-09-21T07:22:03.8769164Z make[1]: *** [/home/runner/work/Action-Build/Action-Build/kernel_workspace/kernel_platform/common/Makefile:1325: vmlinux] 错误 2 2026-09-21T07:22:03.8770227Z make[1]: 离开目录“/home/runner/work/Action-Build/Action-Build/kernel_workspace/kernel_platform/common/out” 2026-09-21T07:22:03.8774605Z make: *** [Makefile:256: __sub-make] 错误 2 2026-09-21T07:22:04.0256297Z ##[error]进程已完成,退出代码为 2。 2026-09-21T07:22:04.0441676Z 作业后清理。 2026-09-21T07:22:04.2767587Z 清理孤立进程
临时解决办法(已验证可行)
「回退SUSFS」(SUSFS_META)填 5(= HEAD~5,即 9/6 的 7373f8d8,重构前无此 statfs 钩子,可正常编译),或直接填 commit hash 7373f8d8。 填入7373f8d还是不行
Unsure if this is related but I think it is... I can't get it to build at all.
2026-10-20T05:49:21.9325044Z patching file fs/exec.c
2026-10-20T05:49:21.9326899Z Hunk #1 FAILED at 70.
2026-10-20T05:49:21.9328729Z Hunk #2 succeeded at 1910 (offset -22 lines).
2026-10-20T05:49:21.9329328Z Hunk #3 succeeded at 1934 (offset -22 lines).
2026-10-20T05:49:21.9329859Z Hunk #4 succeeded at 2036 (offset -22 lines).
2026-10-20T05:49:21.9330546Z 1 out of 4 hunks FAILED -- saving rejects to file fs/exec.c.rej
2026-10-20T05:49:21.9393511Z patching file fs/proc/task_mmu.c
2026-10-20T05:49:21.9394003Z Hunk #1 succeeded at 26 (offset -1 lines).
2026-10-20T05:49:21.9394496Z Hunk #2 succeeded at 455 (offset -79 lines).
2026-10-20T05:49:21.9394997Z Hunk #3 succeeded at 476 (offset -79 lines).
2026-10-20T05:49:21.9395619Z Hunk #4 FAILED at 1591.
2026-10-20T05:49:21.9396956Z Hunk #5 FAILED at 1660.
2026-10-20T05:49:21.9398111Z Hunk #6 FAILED at 1672.
2026-10-20T05:49:21.9399534Z Hunk #7 succeeded at 2263 (offset -228 lines)...
2026-10-20T05:49:21.9508998Z susfs_patch完成
2026-10-20T05:49:22.1085365Z ##[group]❌ 补丁在 fs/proc/task_mmu.c 出现 hunk FAILED(3 个 hunk 未能应用),点击查看具体信息
2026-10-20T05:49:22.1093121Z --- fs/proc/task_mmu.c
2026-10-20T05:49:22.1093533Z +++ fs/proc/task_mmu.c
2026-10-20T05:49:22.1094048Z @@ -1591,6 +1633,13 @@ static int show_smap(struct seq_file *m, void *v)
2026-10-20T05:49:22.1094714Z struct vm_area_struct *vma = v;
2026-10-20T05:49:22.1095222Z struct mem_size_stats mss = {};
2026-10-20T05:49:22.1095640Z
2026-10-20T05:49:22.1096079Z +#ifdef CONFIG_KSU_SUSFS_SUS_MAP
2026-10-20T05:49:22.1096516Z + if (vma->vm_file) {
2026-10-20T05:49:22.1097025Z + if (SUSFS_IS_INODE_SUS_MAP(file_inode(vma->vm_file)))
2026-10-20T05:49:22.1097758Z + return 0;
2026-10-20T05:49:22.1098028Z + }
2026-10-20T05:49:22.1098251Z +#endif // #ifdef CONFIG_KSU_SUSFS_SUS_MAP
2026-10-20T05:49:22.1098547Z +
2026-10-20T05:49:22.1098750Z if (!vma_data_pages(vma))
2026-10-20T05:49:22.1099002Z goto show_pad;
2026-10-20T05:49:22.1099209Z
2026-10-20T05:49:22.1099546Z @@ -1660,6 +1709,11 @@ static int show_smaps_rollup(struct seq_file *m, void *v)
2026-10-20T05:49:22.1099953Z goto out_unlock;
2026-10-20T05:49:22.1100167Z }
2026-10-20T05:49:22.1100349Z
2026-10-20T05:49:22.1100549Z +#ifdef CONFIG_KSU_SUSFS_SUS_MAP
2026-10-20T05:49:22.1101023Z + if (vma->vm_file && SUSFS_IS_INODE_SUS_MAP(file_inode(vma->vm_file)))
2026-10-20T05:49:22.1101889Z + goto bypass_orig_flow;
2026-10-20T05:49:22.1102335Z +#endif // #ifdef CONFIG_KSU_SUSFS_SUS_MAP
2026-10-20T05:49:22.1102811Z +
2026-10-20T05:49:22.1103150Z if (vma->vm_start < last_vma_end) {
2026-10-20T05:49:22.1103580Z /*
2026-10-20T05:49:22.1103961Z * After retaking the lock, already reported VMA grew
2026-10-20T05:49:22.1104713Z @@ -1672,6 +1726,9 @@ static int show_smaps_rollup(struct seq_file *m, void *v)
2026-10-20T05:49:22.1105484Z /* Found next unreported VMA, start from its beginning */
2026-10-20T05:49:22.1106101Z smap_gather_stats(priv, vma, &mss);
2026-10-20T05:49:22.1106654Z }
2026-10-20T05:49:22.1106992Z +#ifdef CONFIG_KSU_SUSFS_SUS_MAP
2026-10-20T05:49:22.1107419Z +bypass_orig_flow:
2026-10-20T05:49:22.1107810Z +#endif // #ifdef CONFIG_KSU_SUSFS_SUS_MAP
2026-10-20T05:49:22.1108302Z last_vma_end = vma->vm_end;
2026-10-20T05:49:22.1108701Z
2026-10-20T05:49:22.1108981Z /*
2026-10-20T05:49:22.1109692Z ##[endgroup]
2026-10-20T05:49:22.1152176Z ##[group]❌ 补丁在 fs/exec.c 出现 hunk FAILED(1 个 hunk 未能应用),点击查看具体信息
2026-10-20T05:49:22.1159818Z --- fs/exec.c
2026-10-20T05:49:22.1160198Z +++ fs/exec.c
2026-10-20T05:49:22.1160513Z @@ -70,6 +70,9 @@
2026-10-20T05:49:22.1160828Z #include <linux/rseq.h>
2026-10-20T05:49:22.1161460Z #include <linux/ksm.h>
2026-10-20T05:49:22.1161743Z #include <linux/dma-buf.h>
2026-10-20T05:49:22.1161978Z +#ifdef CONFIG_KSU_SUSFS
2026-10-20T05:49:22.1162204Z +#include <linux/susfs_def.h>
2026-10-20T05:49:22.1162428Z +#endif
2026-10-20T05:49:22.1162597Z
2026-10-20T05:49:22.1162779Z #include <linux/uaccess.h>
2026-10-20T05:49:22.1163092Z #include <asm/mmu_context.h>
2026-10-20T05:49:22.1164105Z ##[endgroup]
../fs/exec.c:1949:13: error: call to undeclared function 'susfs_is_current_proc_no_su'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
CC lib/crypto/mpi/mpicoder.o
1949 | if (likely(susfs_is_current_proc_no_su()))
| ^
1 error generated.
make[4]: *** [../scripts/Makefile.build:240: fs/exec.o] Error 1
make[3]: *** [../scripts/Makefile.build:508: fs] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/home/runner/work/Action-Build/Action-Build/kernel_workspace/kernel_platform/common/Makefile:1993: .] Error 2
make[1]: *** [/home/runner/work/Action-Build/Action-Build/kernel_workspace/kernel_platform/common/Makefile:242: __sub-make] Error 2
make[1]: Leaving directory '/home/runner/work/Action-Build/Action-Build/kernel_workspace/kernel_platform/common/out'
make: *** [Makefile:242: __sub-make] Error 2
Error: Process completed with exit code 2.
https://github.com/xmicro/Action-Build/actions/runs/39376123824/job/118474557255#annotation:41:5245
Btw, this is with me using the sync-susfs branch for BakaSU, which has the recent SuSFS fix. Running with main produced additional SuSFS issues because it is out of sync with upstream, which are fixed with the new branch. I figured this would fix everything, but apparently not as these other errors remain.
Edit: it looks like the issue may be with the SuSFS patch file because susfs was just rebased to kernel 6.12.92, and OnePlus still uses 6.12.23 obviously. https://gitlab.com/simonpunk/susfs4ksu/-/commit/e64d06041c701c66fc630b5fd772590906fd7708
Edit 2: added more logs to top