lede icon indicating copy to clipboard operation
lede copied to clipboard

ATH79编译出错5.15

Open hiboy007 opened this issue 2 years ago • 1 comments

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

  • [ ] 没有类似的issue

2. 详细叙述

(1) 具体问题

A:

(2) 路由器型号和固件版本

K2T A:

(3) 详细日志

             from drivers/net/phy/swconfig.c:18:

./include/linux/spinlock.h:361:51: note: expected 'spinlock_t *' {aka 'struct spinlock *'} but argument is of type 'rwlock_t *' {aka 'struct *'} static __always_inline void spin_lock(spinlock_t *lock) ~~~~~~~~~~~~^~~~ In file included from drivers/net/phy/swconfig.c:32: drivers/net/phy/swconfig_leds.c:440:14: error: passing argument 1 of 'spin_unlock' from incompatible pointer type [-Werror=incompatible-pointer-types] spin_unlock(&trigger->leddev_list_lock); ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/wait.h:9, from ./include/linux/pid.h:6, from ./include/linux/sched.h:14, from ./include/linux/mm_types.h:6, from ./include/linux/buildid.h:5, from ./include/linux/module.h:14, from drivers/net/phy/swconfig.c:18: ./include/linux/spinlock.h:401:53: note: expected 'spinlock_t *' {aka 'struct spinlock *'} but argument is of type 'rwlock_t *' {aka 'struct *'} static __always_inline void spin_unlock(spinlock_t *lock) ~~~~~~~~~~~~^~~~ cc1: some warnings being treated as errors make[8]: *** [scripts/Makefile.build:289: drivers/net/phy/swconfig.o] Error 1 make[7]: *** [scripts/Makefile.build:552: drivers/net/phy] Error 2 make[6]: *** [scripts/Makefile.build:552: drivers/net] Error 2 make[5]: *** [Makefile:1898: drivers] Error 2 make[5]: Leaving directory '/home/user/lede/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.70' make[4]: *** [Makefile:21: /home/user/lede/build_dir/target-mips_24kc_musl/linux-ath79_generic/linux-5.15.70/.modules] Error 2 make[4]: Leaving directory '/home/user/lede/target/linux/ath79' make[3]: *** [Makefile:11: compile] Error 2 make[3]: Leaving directory '/home/user/lede/target/linux' time: target/linux/compile#536.33#163.57#677.57 ERROR: target/linux failed to build. make[2]: *** [target/Makefile:30: target/linux/compile] Error 1 make[2]: Leaving directory '/home/user/lede' make[1]: *** [target/Makefile:23: /home/user/lede/staging_dir/target-mips_24kc_musl/stamp/.target_compile] Error 2 make[1]: Leaving directory '/home/user/lede' make: *** [/home/user/lede/include/toplevel.mk:230:world] 错误 2

A:

hiboy007 avatar Sep 26 '22 14:09 hiboy007

补充:是用的原版openwrt可以过5.15编译,lede的5.15还过不去。

wndr4300 ath79 5.15内核编译成功了,去掉了几个提示错误(似乎不影响)的包:如coreutils等,其它顺利过。

但是ath79在 5.17内核有重要更新,期盼lede早日升级到5.17+

carrot93 avatar Oct 25 '22 16:10 carrot93