openwrt编译问题收集

系统 Ubuntu18
虚拟机下运行

2023/08/21
错误1

mklibs-0.1.35/.configured' failed

解决链接来源:
https://www.cnblogs.com/jackron/p/13974393.html
说明:
/* 是staging_dir/host/bin/automake文件串的4160行报错,因为新版的perl不在支持左大括号的使用,打开这个文件删掉4160行的大括号{},问题解决。 */

错误2
cfns.gperf:101:1: error: ‘const char* libc_name_p(const char*, unsigned int)’ redeclared inline with ‘gnu_inline’ attribute
高版本gcc导致的
解决链接:https://blog.csdn.net/weixin_42892101/article/details/100179519
说明

//cfns.h 第55~56行中间插入
#ifdef __GNUC_STDC_INLINE__
__attribute__ ((__gnu_inline__))
#endif

//cfns.gperf 第24~25行中间插入
#ifdef __GNUC_STDC_INLINE__
__attribute__ ((__gnu_inline__))
#endif

错误3
cat: /home/lin/mt7628_sdk/mtk-openwrt-sdk-20160324-8f8e4f1e/openwrt-sdk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/base-files/ipkg-ramips_24kec/base-files/etc/sdk.version: No such file or directory
Makefile:167: recipe for target ‘/home/lin/mt7628_sdk/mtk-openwrt-sdk-20160324-8f8e4f1e/openwrt-sdk/bin/ramips/packages/base/base-files_156-unknown_ramips_24kec.ipk’ failed
解决链接:
https://blog.csdn.net/shanruo/article/details/81610039

文中每个sdk.version文件都写上V1.0.0,最后一个我这里没有
./target/linux/ramips/base-files/etc/sdk.version
./staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/etc/sdk.version
./build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/base-files/ipkg-ramips_24kec/base-files/etc/sdk.version
./build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/root-ramips/etc/sdk.version

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值