找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1660|回复: 2

小白第一次编译Lean的openwrt报错

[复制链接]
之前没编译过linux,只编译安装过软件,今天试试编译lean的openwrt出现以下错误。
  1. [  2%] Building C object CMakeFiles/ubox.dir/blobmsg.c.o
  2. /home/tong/OP/lede/build_dir/hostpkg/libubox-2019-06-16-ecf56174/blobmsg.c: In function 'blobmsg_new':
  3. /home/tong/OP/lede/build_dir/hostpkg/libubox-2019-06-16-ecf56174/blobmsg.c:198:2: error: 'strcpy' offset 6 from the object at 'attr' is out of the bounds of referenced subobject 'name' with type 'uint8_t[]' {aka 'unsigned char[]'} at offset 6 [-Werror=array-bounds]
  4.   198 |  strcpy((char *) hdr->name, (const char *)name);
  5.       |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  6. In file included from /home/tong/OP/lede/build_dir/hostpkg/libubox-2019-06-16-ecf56174/blobmsg.c:16:
  7. /home/tong/OP/lede/build_dir/hostpkg/libubox-2019-06-16-ecf56174/blobmsg.h:42:10: note: subobject 'name' declared here
  8.    42 |  uint8_t name[];
  9.       |          ^~~~
  10. cc1: all warnings being treated as errors
  11. make[6]: *** [CMakeFiles/ubox.dir/build.make:102: CMakeFiles/ubox.dir/blobmsg.c.o] Error 1
  12. make[6]: Leaving directory '/home/tong/OP/lede/build_dir/hostpkg/libubox-2019-06-16-ecf56174'
  13. make[5]: *** [CMakeFiles/Makefile2:259: CMakeFiles/ubox.dir/all] Error 2
  14. make[5]: Leaving directory '/home/tong/OP/lede/build_dir/hostpkg/libubox-2019-06-16-ecf56174'
  15. make[4]: *** [Makefile:130: all] Error 2
  16. make[4]: Leaving directory '/home/tong/OP/lede/build_dir/hostpkg/libubox-2019-06-16-ecf56174'
  17. make[3]: *** [Makefile:110: /home/tong/OP/lede/build_dir/hostpkg/libubox-2019-06-16-ecf56174/.built] Error 2
  18. make[3]: Leaving directory '/home/tong/OP/lede/package/libs/libubox'
  19. time: package/libs/libubox/host-compile#0.78#0.40#2.47
  20. make[2]: *** [package/Makefile:111: package/libs/libubox/host/compile] Error 2
  21. make[2]: Leaving directory '/home/tong/OP/lede'
  22. make[1]: *** [package/Makefile:107: /home/tong/OP/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
  23. make[1]: Leaving directory '/home/tong/OP/lede'
  24. make: *** [/home/tong/OP/lede/include/toplevel.mk:227:world] 错误 2
复制代码
环境manjaro AUR安装了OpenWrt-devel应该不是环境问题,看了会没看懂,求大佬解答。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
帮顶,我也遇到同样的问题。。。我也是Manjaro。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我也遇到这个问题,咋解决的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 10:56

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表