lede 内核 单 编_终于搞定,在lede官方源码编译k3固件的方法。求助变分享

本文记录了一次使用Lean源码编译过程中遇到的补丁应用失败问题,具体表现为在应用120-alpine_musl-compat.patch补丁时无法成功修改json/assertions.h文件,导致后续make编译过程终止。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

用lean的源码编译了下出现这个错误

Applying ./patches/120-alpine_musl-compat.patch using plaintext:

patching file Utilities/cmjsoncpp/include/json/assertions.h

Hunk #1 FAILED at 6.

1 out of 1 hunk FAILED -- saving rejects to file Utilities/cmjsoncpp/include/json/assertions.h.rej

Patch failed!  Please fix ./patches/120-alpine_musl-compat.patch!

Makefile:34: recipe for target '/home/a/openwrt/source/build_dir/host/cmake-3.8.1/.preparedc15a8ef34eb664c26ba9b3260ff18acb_6664517399ebbbc92a37c5bb081b5c53' failed

make[3]: *** [/home/a/openwrt/source/build_dir/host/cmake-3.8.1/.preparedc15a8ef34eb664c26ba9b3260ff18acb_6664517399ebbbc92a37c5bb081b5c53] Error 1

make[3]: Leaving directory '/home/a/openwrt/source/tools/cmake'

tools/Makefile:150: recipe for target 'tools/cmake/compile' failed

make[2]: *** [tools/cmake/compile] Error 2

make[2]: Leaving directory '/home/a/openwrt/source'

tools/Makefile:148: recipe for target '/home/a/openwrt/source/staging_dir/target-arm_cortex-a9_musl_eabi/stamp/.tools_compile_yyyyyyyynyyyyynyynnnyyyynyyyyyyyyyyyyyyynnyynynnyyynny' failed

make[1]: *** [/home/a/openwrt/source/staging_dir/target-arm_cortex-a9_musl_eabi/stamp/.tools_compile_yyyyyyyynyyyyynyynnnyyyynyyyyyyyyyyyyyyynnyynynnyyynny] Error 2

make[1]: Leaving directory '/home/a/openwrt/source'

/home/a/openwrt/source/include/toplevel.mk:207: recipe for target 'world' failed

make: *** [world] Error 2

是什么问题

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值