编译openwrt遇到的问题 wctables.h

Warning: adding UNDEFINED entry for af_ZA
  GEN extra/locale/lt_defines.h
  HOSTCC extra/locale/gen_wctype
extra/locale/gen_wctype.c: In function 'main':
extra/locale/gen_wctype.c:684:2: warning: #warning fix the upper bound on the upper/lower tables... save 200 bytes or so [-Wcpp]
 #warning fix the upper bound on the upper/lower tables... save 200 bytes or so
  ^
  GEN extra/locale/wctables.h
extra/locale/Makefile.in:179: recipe for target 'extra/locale/wctables.h' failed
make[1]: *** [extra/locale/wctables.h] Error 1
make[1]: Leaving directory '/work/openwrt/MTK_APSoC_SDK/source/uClibc-0.9.33.2'
Makefile:892: recipe for target 'uClibc-0.9.33.2_only' failed
make: *** [uClibc-0.9.33.2_only] Error 2

 

需要打补丁

http://ftp.osuosl.org/pub/manulix/scripts/build-scripts/PPFILES/ppfiles-uclibc/gen_wctype.patch

 

编译busybox出现的问题

Makefile:437: *** mixed implicit and normal rules: deprecated syntax
Makefile:1278: *** mixed implicit and normal rules: deprecated syntax
make: *** No rule to make target 'menuconfig'.  Stop.
 

 

要么把config %config拆成2个规则,要么把其中一个目标去掉。

所以,

a.修改busybox-1.7.0 顶层Makefile 405行:

config%config: scripts_basic outputmakefile FORCE

改为:

%config:scripts_basic outputmakefile FORCE

 

b.修改busybox-1.7.0 顶层Makefile 1242行:

/%/: prepare scripts FORCE

改为:

%/:prepare scripts FORCE

 

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值