完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在执行build.sh脚本后,出现了如下ERROR,请问如何解决?谢谢!
root@ubuntu:~/workspace/allwinner/A40i/bsp/lichee# ./build.sh build buidroot-201611... xgnueabihf sun8iw11p1_hf_defconfig INFO: ---------------------------------------- INFO: build lichee ... INFO: chip: sun8iw11p1 INFO: platform: linux INFO: kernel: linux-3.10 INFO: board: OKA40i_C INFO: output: out/sun8iw11p1/linux/OKA40i_C INFO: ---------------------------------------- INFO: build buildroot ... make: Entering directory '/root/workspace/allwinner/A40i/bsp/lichee/buildroot-201611' >>> Finalizing target directory rm -f /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/glib-2.0/schemas/*.xml /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/glib-2.0/schemas/*.dtd /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/glib-compile-schemas /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/share/glib-2.0/schemas --targetdir=/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/glib-2.0/schemas PYTHONPATH="/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/lib/python2.7/sysconfigdata/:/root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/lib/python2.7/site-packages/" /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/python2.7 support/scripts/pycompile.py /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/lib/python2.7 find /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/lib/python2.7 -name '*.py' -print0 | xargs -0 --no-run-if-empty rm -f find /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/lib/python2.7 -name '*.pyo' -print0 | xargs -0 --no-run-if-empty rm -f mkdir -p /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc echo "A40i" > /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/hostname /usr/bin/sed -i -e '$a 127.0.1.1tA40i' -e '/^127.0.1.1/d' /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/hosts mkdir -p /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc echo "Welcome to Allwinner A40i Linux Platform V1.3" > /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/issue mkdir -p /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/network/ ( echo "# inte**ce file auto-generated by buildroot"; echo ; echo "auto lo"; echo "iface lo inet loopback"; echo ; echo "allow-hotplug eth0"; echo "iface eth0 inet dhcp"; ) > /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/network/inte**ces /usr/bin/sed -i -e s,^root:[^:]*:,root::, /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/shadow ln -sf bash /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/bin/sh /usr/bin/sed -i -e '/# GENERIC_SERIAL$/s~^.*#~ttyS0::respawn:/***in/getty -L ttyS0 115200 vt100 #~' /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/inittab /usr/bin/sed -i -e '/^#.*-o remount,rw /$/s~^#+~~' /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/inittab rm -f /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/locales.nopurge for i in C en_US locale-archive; do echo $i >> /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/locales.nopurge; done for dir in /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/locale; do for langdir in $dir/*; do if [ -e "${langdir}" ]; then grep -qx "${langdir##*/}" /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/build/locales.nopurge || rm -rf $langdir; fi done; done if [ -d /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/X11/locale ]; then for lang in C en_US; do if [ -f /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/X11/locale/$lang/XLC_LOCALE ]; then echo "$lang/XLC_LOCALE: $lang"; fi done > /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/X11/locale/locale.dir; fi rm -rf /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/include /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/aclocal /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/lib/pkgconfig /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/pkgconfig /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/lib/cmake /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/cmake find /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f find /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/lib/ /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/lib/ /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/libexec/ ( -name '*.a' -o -name '*.la' ) -print0 | xargs -0 rm -f rm -rf /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/zsh rm -rf /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/man /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/man rm -rf /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/info /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/info rm -rf /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/doc /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/doc rm -rf /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share/gtk-doc rmdir /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/share 2>/dev/null make: [Makefile:648: target-finalize] Error 1 (ignored) find /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target -type f ( -perm /111 -o -name '*.so*' ) -not ( -name 'libpthread*.so*' -o -name 'ld-*.so*' -o -name '*.ko' ) -print0 | xargs -0 /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/arm-linux-gnueabihf-strip --remove-section=.comment --remove-section=.note 2>/dev/null || true find /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/lib/ -type f -name 'libpthread*.so*' | xargs -r /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/arm-linux-gnueabihf-strip --remove-section=.comment --remove-section=.note --strip-debug find /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/lib/ -type f -name 'ld-*.so*' | xargs -r /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/host/usr/bin/arm-linux-gnueabihf-strip --remove-section=.comment --remove-section=.note --strip-debug test -f /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/ld.so.conf && { echo "ERROR: we shouldn't have a /etc/ld.so.conf file"; exit 1; } || true test -d /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/ld.so.conf.d && { echo "ERROR: we shouldn't have a /etc/ld.so.conf.d directory"; exit 1; } || true mkdir -p /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc ( echo "NAME=Buildroot"; echo "VERSION=2016.11"; echo "ID=buildroot"; echo "VERSION_ID=2016.11"; echo "PRETTY_NAME="Buildroot 2016.11"" ) > /root/workspace/allwinner/A40i/bsp/lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/os-release >>> Executing post-build script target/user_rootfs_build.sh run user rootfs build script------------genrootfs = not genrootfs DO NOT compile sdk lib make: Leaving directory '/root/workspace/allwinner/A40i/bsp/lichee/buildroot-201611' INFO: build buildroot OK. INFO: build kernel ... INFO: prepare toolchain of sun8iw11p1... error format,file shoule end with gz or xz or none Building kernel /root/workspace/allwinner/A40i/bsp/lichee/linux-3.10/output/lib/modules/3.10.65 Copy rootfs for arm rootfs_32bit.cpio_buildroot_201611.gz CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: 'include/generated/mach-types.h' is up to date. CC scripts/mod/devicetable-offsets.s GEN scripts/mod/devicetable-offsets.h HOSTCC scripts/mod/file2alias.o HOSTLD scripts/mod/modpost CALL scripts/checksyscalls.sh CHK include/generated/compile.h CC drivers/char/dump_reg/dump_reg.o CC kernel/power/scenelock.o LD sound/soc/snd-soc-core.o drivers/char/dump_reg/dump_reg.c:42:28: error: 'SUNXI_IO_PBASE' undeclared here (not in a function) #define SUNXI_IO_PHYS_BASE SUNXI_IO_PBASE ^ drivers/char/dump_reg/dump_reg.c:129:16: note: in expansion of macro 'SUNXI_IO_PHYS_BASE' .pst_addr = SUNXI_IO_PHYS_BASE, ^ drivers/char/dump_reg/dump_reg.c:130:37: error: 'SUNXI_IO_SIZE' undeclared here (not in a function) .ped_addr = SUNXI_IO_PHYS_BASE + SUNXI_IO_SIZE, ^ drivers/char/dump_reg/dump_reg.c:141:16: error: 'PLAT_PHYS_OFFSET' undeclared here (not in a function) .pst_addr = PLAT_PHYS_OFFSET, ^ drivers/char/dump_reg/dump_reg.c:43:26: error: implicit declaration of function 'IO_ADDRESS' [-Werror=implicit-function-declaration] #define SUNXI_IOMEM_VASE IO_ADDRESS(SUNXI_IO_PBASE) ^ drivers/char/dump_reg/dump_reg.c:153:31: note: in expansion of macro 'SUNXI_IOMEM_VASE' .pst_addr = (unsigned long)SUNXI_IOMEM_VASE, ^ cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:309: drivers/char/dump_reg/dump_reg.o] Error 1 make[2]: *** [scripts/Makefile.build:455: drivers/char/dump_reg] Error 2 make[1]: *** [scripts/Makefile.build:455: drivers/char] Error 2 make: *** [Makefile:797: drivers] Error 2 make: *** Waiting for unfinished jobs.... LD sound/soc/sunxi/snd-sunxi-soc.o CC sound/soc/sunxi/sunxi_daudio.o CC sound/soc/sunxi/sunxi_spdif.o In file included from kernel/power/scenelock.c:14:0: kernel/power/scenelock_data.h:22:34: error: invalid application of 'sizeof' to incomplete type 'scene_extended_standby_t[] {aka struct scene_extended_standby[]}' int extended_standby_cnt = sizeof(extended_standby)/sizeof(extended_standby[0]) ^ kernel/power/scenelock.c: In function 'scenelocks_init': kernel/power/scenelock.c:352:24: error: invalid application of 'sizeof' to incomplete type 'scene_extended_standby_t[] {aka struct scene_extended_standby[]}' for (i = 0; i < sizeof(extended_standby)/sizeof(extended_standby[0]); i++) { ^ make[2]: *** [scripts/Makefile.build:308: kernel/power/scenelock.o] Error 1 make[1]: *** [scripts/Makefile.build:455: kernel/power] Error 2 make: *** [Makefile:797: kernel] Error 2 CC sound/soc/sunxi/sunxi-sndspdif.o sound/soc/sunxi/sunxi_spdif.c: In function 'sunxi_spdif_get_hub_mode': sound/soc/sunxi/sunxi_spdif.c:155:53: error: 'FIFO_CTL_HUBEN' undeclared (first use in this function) ucontrol->value.integer.value[0] = ((reg_val & (1< ^ sound/soc/sunxi/sunxi_spdif.c:155:53: note: each undeclared identifier is reported only once for each function it appears in sound/soc/sunxi/sunxi_spdif.c: In function 'sunxi_spdif_set_hub_mode': sound/soc/sunxi/sunxi_spdif.c:170:9: error: 'FIFO_CTL_HUBEN' undeclared (first use in this function) (1< ^ sound/soc/sunxi/sunxi_daudio.c: In function 'sunxi_daudio_dev_probe': sound/soc/sunxi/sunxi_daudio.c:1207:6: error: 'DRQDST_DAUDIO_2_TX' undeclared (first use in this function) DRQDST_DAUDIO_2_TX; ^ sound/soc/sunxi/sunxi_daudio.c:1207:6: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [scripts/Makefile.build:309: sound/soc/sunxi/sunxi_spdif.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [scripts/Makefile.build:309: sound/soc/sunxi/sunxi_daudio.o] Error 1 make[2]: *** [scripts/Makefile.build:455: sound/soc/sunxi] Error 2 make[1]: *** [scripts/Makefile.build:455: sound/soc] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:797: sound] Error 2 ERROR: build kernel Failed [/td] |
|
相关推荐
2个回答
|
|
注意:编译过程内核报错,有两种解决办法:
1 cd /root/workspace/allwinner/A40i/bsp/lichee/ rm -fr `find ./ linux-3.10 -name “*.o” ` 2 cd /root/workspace/allwinner/A40i/bsp/lichee/ cd linux-3.10 make distclean |
|
|
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1988 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
2490 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
5272 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
浏览过的版块 |
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 10:57 , Processed in 0.461903 second(s), Total 45, Slave 38 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号