- 积分
- 19
贡献163
飞刀14 FD
注册时间2021-1-31
在线时间1 小时
扫一扫,手机访问本帖
|
我在执行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.1\tA40i' -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:/sbin/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<<FIFO_CTL_HUBEN)) ? 2 : 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<<FIFO_CTL_HUBEN), (0<<FIFO_CTL_HUBEN));
^
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
|
|