Ubuntu14.04编译Allwinner lichee 两个出错解决方法
1.host-m4-1.4.15 In file includedfrom clean-temp.h:22:0, from clean-temp.c:23: ./stdio.h:456:1:error: 'gets' undeclared here (not in a function) _GL_WARN_ON_USE(gets,"gets is a security hole - use fgets instead"); 解决方法:参考链接: http://www.civilnet.cn/talk/browse.php?topicno=78555,2楼. 找到:host-m4-1.4.15/lib/stdio.h,然后对stdio.h文件做出如下改动,必要时连同stdio.in.h一起修改: [plain] view plain copy
2.host-autoconf-2.65 conftest.c:14625:must be after `@defmac' to use `@defmacx' make[3]: ***[autoconf.info] Error 1 make[3]: Leavingdirectory`//opt/Android/a23androidSRC/lichee/out/linux/common/buildroot/build/host-autoconf-2.65/doc' make[2]: ***[install-recursive] Error 1 make[2]: Leavingdirectory`/opt/Android/a23androidSRC/lichee/out/linux/common/buildroot/build/host-autoconf-2.65' make[1]: ***[install] Error 2 make[1]: Leavingdirectory`/opt/Android/a23androidSRC/lichee/out/linux/common/buildroot/build/host-autoconf-2.65' make: ***[/opt/Android/a23androidSRC/lichee/out/linux/common/buildroot/build/host-autoconf-2.65/.stamp_host_installed]Error 2 解决方法如下: 参考链接: http://gnu-autoconf.7623.n7.nabble.com/compile-error-conftest-c-14625-must-be-after-defmac-to-use-defmacx-td18843.html 2楼有个补丁文件: [plain] view plain copy
根据这个补丁文件修改即可,直接修改源代码包,下次编译就不会再提示这个错误了。 3.host-makedevs /opt/Android/a23androidSRC/lichee/out/linux/common/buildroot/build/host-makedevs/makedevs.c:374:6: error: variable ‘ret’ set but not used [-Werror=unused-but-set-variable] 直接修改makedevs.c文件: 最后一行,return 0; 修改为:return ret; 源代码位置:./buildroot/package/makedevs/makedevs.c awk: line 2: function strtonum never defined原创 2016年11月03日 09:13:09
编译报awk错误:
regenerate rootfs cpio
15757 块
16892 块
awk: line 2: function strtonum never defined
awk: line 2: function strtonum never defined
ERROR: build kernel Failed
解决办法:
sudo apt-get install gawk (编辑:十堰站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |