Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译失败 #2

Open
NPC2000 opened this issue Aug 19, 2024 · 2 comments
Open

编译失败 #2

NPC2000 opened this issue Aug 19, 2024 · 2 comments

Comments

@NPC2000
Copy link

NPC2000 commented Aug 19, 2024

使用android-14.0.0_r0.111的gcc4.9 和common-android14-6.1-2023-05-exp-release(r487747c) 的 clang

配置不管用gki_defconfig还是官方内核提取的defconfig,都会有这个报错。

2024-08-19T13:02:11.5137636Z ERROR: modpost: "__stack_chk_guard" [arch/arm64/geniezone/gzvm.ko] undefined! 2024-08-19T13:02:11.5139100Z ERROR: modpost: "__stack_chk_guard" [mm/zsmalloc.ko] undefined! 2024-08-19T13:02:11.5140276Z ERROR: modpost: "__stack_chk_guard" [drivers/block/zram/zram.ko] undefined! 2024-08-19T13:02:11.5141441Z ERROR: modpost: "__stack_chk_guard" [drivers/net/mii.ko] undefined! 2024-08-19T13:02:11.5142894Z ERROR: modpost: "__stack_chk_guard" [drivers/net/can/dev/can-dev.ko] undefined! 2024-08-19T13:02:11.5144145Z ERROR: modpost: "__stack_chk_guard" [drivers/net/can/slcan/slcan.ko] undefined! 2024-08-19T13:02:11.5145869Z ERROR: modpost: "__stack_chk_guard" [drivers/net/ppp/ppp_generic.ko] undefined! 2024-08-19T13:02:11.5147194Z ERROR: modpost: "__stack_chk_guard" [drivers/net/ppp/ppp_deflate.ko] undefined! 2024-08-19T13:02:11.5148729Z ERROR: modpost: "__stack_chk_guard" [drivers/net/ppp/pptp.ko] undefined! 2024-08-19T13:02:11.5149891Z ERROR: modpost: "__stack_chk_guard" [drivers/net/slip/slhc.ko] undefined! 2024-08-19T13:02:11.5155115Z WARNING: modpost: suppressed 35 unresolved symbol warnings because there were too many) 2024-08-19T13:02:11.5159111Z make[2]: *** [../scripts/Makefile.modpost:186: Module.symvers] Error 1 2024-08-19T13:02:11.5163113Z make[1]: *** [/home/runner/work/KernelSU_Action/KernelSU_Action/kernel_workspace/android-kernel/private/android_kernel_oneplus_sm7675/Makefile:2085: modpost] Error 2 2024-08-19T13:02:11.5169727Z make: *** [Makefile:256: __sub-make] Error 2 2024-08-19T13:02:11.5171368Z make[1]: Leaving directory '/home/runner/work/KernelSU_Action/KernelSU_Action/kernel_workspace/android-kernel/private/android_kernel_oneplus_sm7675/out' 2024-08-19T13:02:11.5191407Z ##[error]Process completed with exit code 2.

@NPC2000
Copy link
Author

NPC2000 commented Aug 19, 2024

使用android-14.0.0_r0.111的gcc4.9 和common-android14-6.1-2023-05-exp-release(r487747c) 的 clang

配置不管用gki_defconfig还是官方内核提取的defconfig,都会有这个报错。

2024-08-19T13:02:11.5137636Z ERROR: modpost: "__stack_chk_guard" [arch/arm64/geniezone/gzvm.ko] undefined! 2024-08-19T13:02:11.5139100Z ERROR: modpost: "__stack_chk_guard" [mm/zsmalloc.ko] undefined! 2024-08-19T13:02:11.5140276Z ERROR: modpost: "__stack_chk_guard" [drivers/block/zram/zram.ko] undefined! 2024-08-19T13:02:11.5141441Z ERROR: modpost: "__stack_chk_guard" [drivers/net/mii.ko] undefined! 2024-08-19T13:02:11.5142894Z ERROR: modpost: "__stack_chk_guard" [drivers/net/can/dev/can-dev.ko] undefined! 2024-08-19T13:02:11.5144145Z ERROR: modpost: "__stack_chk_guard" [drivers/net/can/slcan/slcan.ko] undefined! 2024-08-19T13:02:11.5145869Z ERROR: modpost: "__stack_chk_guard" [drivers/net/ppp/ppp_generic.ko] undefined! 2024-08-19T13:02:11.5147194Z ERROR: modpost: "__stack_chk_guard" [drivers/net/ppp/ppp_deflate.ko] undefined! 2024-08-19T13:02:11.5148729Z ERROR: modpost: "__stack_chk_guard" [drivers/net/ppp/pptp.ko] undefined! 2024-08-19T13:02:11.5149891Z ERROR: modpost: "__stack_chk_guard" [drivers/net/slip/slhc.ko] undefined! 2024-08-19T13:02:11.5155115Z WARNING: modpost: suppressed 35 unresolved symbol warnings because there were too many) 2024-08-19T13:02:11.5159111Z make[2]: *** [../scripts/Makefile.modpost:186: Module.symvers] Error 1 2024-08-19T13:02:11.5163113Z make[1]: *** [/home/runner/work/KernelSU_Action/KernelSU_Action/kernel_workspace/android-kernel/private/android_kernel_oneplus_sm7675/Makefile:2085: modpost] Error 2 2024-08-19T13:02:11.5169727Z make: *** [Makefile:256: __sub-make] Error 2 2024-08-19T13:02:11.5171368Z make[1]: Leaving directory '/home/runner/work/KernelSU_Action/KernelSU_Action/kernel_workspace/android-kernel/private/android_kernel_oneplus_sm7675/out' 2024-08-19T13:02:11.5191407Z ##[error]Process completed with exit code 2.

这个解决了,但是出现了其他问题,少文件了

2024-08-19T15:51:55.9109832Z HDRINST usr/include/linux/msm_sysstats.h 2024-08-19T15:51:55.9191881Z In file included from /home/runner/work/Kernel-Builder_Action/Kernel-Builder_Action/kernel_workspace/kernel_platform/common/arch/arm64/boot/dts/vendor/oplus/corvette-23814-pineapple-overlay.dts:7: 2024-08-19T15:51:55.9196161Z /home/runner/work/Kernel-Builder_Action/Kernel-Builder_Action/kernel_workspace/kernel_platform/common/arch/arm64/boot/dts/vendor/oplus/oplus_chg/oplus-chg-23814.dtsi:1740:10: fatal error: 'oplus-chg-23814-silicon-1.dtsi' file not found 2024-08-19T15:51:55.9198733Z #include "oplus-chg-23814-silicon-1.dtsi" 2024-08-19T15:51:55.9199434Z ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2024-08-19T15:51:55.9200307Z 1 error generated. 2024-08-19T15:51:55.9202987Z DTC arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom-r3.dtb 2024-08-19T15:51:55.9224024Z HDRINST usr/include/linux/phantom.h 2024-08-19T15:51:55.9230299Z make[4]: *** [/home/runner/work/Kernel-Builder_Action/Kernel-Builder_Action/kernel_workspace/kernel_platform/common/scripts/Makefile.lib:411: arch/arm64/boot/dts/vendor/oplus/corvette-23814-pineapple-overlay.dtbo] Error 1 2024-08-19T15:51:55.9233915Z make[3]: *** [/home/runner/work/Kernel-Builder_Action/Kernel-Builder_Action/kernel_workspace/kernel_platform/common/scripts/Makefile.build:517: arch/arm64/boot/dts/vendor/oplus] Error 2 2024-08-19T15:51:55.9237043Z make[2]: *** [/home/runner/work/Kernel-Builder_Action/Kernel-Builder_Action/kernel_workspace/kernel_platform/common/scripts/Makefile.build:517: arch/arm64/boot/dts/vendor] Error 2

@liuer-2009
Copy link

同问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants