下載Hi3518EV300的SDK後編譯內核和U-boot,發現爆出以下錯誤:linux
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.
網上搜索清一色的是編譯未加載到環境變量中,但我已將編譯鏈加載到環境變量中。vim
解決辦法1:bash
執行vim ~/.bashrc,添加如下代碼:spa
export LC_ALL=C export PATH="/opt/hisi-linux/x86-arm/arm-himix100-linux/bin:$PATH"
source ~/.bashrccode
從新make,發現依舊錯誤,打開內核和U-boot的Makefile,註釋掉blog
unexport LC_ALL
再次編譯,經過。ip
解決辦法2:ci
Makefile是由海思提供好的,輕易不要改變。get
編輯locale文件。io
vim /etc/default/locale
將第一項LANG="zh_CN,UT-F8"改成LANG=「C」
保存,重啓,再次編譯經過。