HiSI 编报错export LC_ALL=C

HiSI 报错:loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed. Aborted (core dumped)

  下载Hi3518EV300的SDK后编译内核和U-boot,发现爆出如下错误:

复制代码

scripts/kconfig/conf  --silentoldconfig Kconfig
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
Aborted (core dumped)
  CHK     include/config.h
  CFG     u-boot.cfg
arm-himix100-linux-gcc: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
scripts/Makefile.autoconf:79: recipe for target 'u-boot.cfg' failed
make[1]: *** [u-boot.cfg] Error 1
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.

复制代码

网上搜索清一色的是编译未加载到环境变量中,但我已将编译链加载到环境变量中。

解决办法1:

执行vim ~/.bashrc,添加以下代码:

export LC_ALL=C
export PATH="/opt/hisi-linux/x86-arm/arm-himix100-linux/bin:$PATH"

source  ~/.bashrc

重新make,发现依旧错误,打开内核和U-boot的Makefile,注释掉

unexport LC_ALL

 

   再次编译,通过。

解决办法2:

  Makefile是由海思提供好的,轻易不要改变。

  编辑locale文件。

vim /etc/default/locale

  将第一项LANG="zh_CN,UT-F8"改为LANG=“C”

  保存,重启,再次编译通过。

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值