跳转至

编译问题汇总

本文汇总了部分编译过程中遇到的问题,编译遇到问题时可以先对照排查。

多线程编译时编译不过

问题现象:

从全志官网下的代码,未进行任何修改,但是make -jXX编译时编译不过,提示依赖异常。

问题原因:

可能是多线程编译时,有些包的依赖没有写好,还没编译被依赖包就编译了需要依赖的包,导致依赖异常。

解决方法:

使用命令 make -j1 单线程编译,或到编译出错的包路径下使用命令 mm -B 单独编译这个包。

squashfs编译异常

问题现象:

编译时报错:

cp -fpR /home/allwinner/workspace/b_tina/out/r329-evb5_min/compile_dir/target/linux-r329-evb5_min/bImage-initramfs /home/allwinner/workspace/b_tina/out/r329-evb5_min/r329-evb5_min-bImage-initramfs
echo -ne '\x00\x00\x00\x00' >> /home/allwinner/workspace/b_tina/out/r329-evb5_min/r329-evb5_min-bImage-initramfs
mkbootimg --kernel  /home/allwinner/workspace/b_tina/out/r329-evb5_min/r329-evb5_min-Image.gz-initramfs --ramdisk  ramdisk.img --board  r329-evb5_min --base  0x40000000 --kernel_offset  0x80000 --ramdisk_offset  0x02000000 -o  /home/allwinner/workspace/b_tina/out/r329-evb5_min/r329-evb5_min-boot-initramfs.img
rm -f /home/allwinner/workspace/b_tina/out/r329-evb5_min/boot.img
rm -f /home/allwinner/workspace/b_tina/out/r329-evb5_min/boot_initramfs.img
cp -fpR /home/allwinner/workspace/b_tina/out/r329-evb5_min/r329-evb5_min-boot-initramfs.img /home/allwinner/workspace/b_tina/out/r329-evb5_min/boot_initramfs.img
/home/allwinner/workspace/b_tina/out/host/bin/mksquashfs4 /home/allwinner/workspace/b_tina/out/r329-evb5_min/compile_dir/target/rootfs /home/allwinner/workspace/b_tina/out/r329-evb5_min/compile_dir/target/linux-r329-evb5_min/root.squashfs -noappend -root-owned -comp xz -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 0
/home/allwinner/workspace/b_tina/out/host/bin/mksquashfs4: -processors should be 1 or larger
make[5]: *** [mkfs-squashfs-root] Error 1
make[5]: Leaving directory `/home/allwinner/workspace/b_tina/target/allwinner/generic/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/allwinner/workspace/b_tina/target/allwinner/r329-evb5_min'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/allwinner/workspace/b_tina/target/allwinner'
make[2]: *** [target/allwinner/install] Error 2
make[2]: Leaving directory `/home/allwinner/workspace/b_tina'
make[1]: *** [/home/allwinner/workspace/b_tina/out/r329-evb5_min/staging_dir/target/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/allwinner/workspace/b_tina'
Build failed - please re-run with -j1 to see the real error message
make: *** [world] Error 1

#### make failed to build some targets (16:15 (mm:ss)) ####

问题原因:

虚拟机设置为单核,编译脚本有的地方算核数1/2=0,识别到没有CPU进行编译,所以报错。

解决方法:

将虚拟机设置为多核,或编译脚本文件 image.mk 做如下修改:

tina/build$ git diff .
diff --git a/image.mk b/image.mk
index 9aa75a8..bc58f62 100755
--- a/image.mk
+++ b/image.mk
@@ -198,7 +198,9 @@ $(eval $(foreach S,$(JFFS2_BLOCKSIZE),$(call Image/mkfs/jffs
 $(eval $(foreach S,$(NAND_BLOCKSIZE),$(call Image/mkfs/jffs2-nand/template,$(S)

 MKSQUSHFS_CPU_NUM=$(shell expr `grep -c process /proc/cpuinfo` / 2)
-
+ifeq ($(MKSQUSHFS_CPU_NUM), 0)
+       MKSQUSHFS_CPU_NUM=1
+endif
 define Image/mkfs/squashfs-common
        $(STAGING_DIR_HOST)/bin/mksquashfs4 $(1) $(KDIR)/$(2) -noappend -root-ow
 endef

gettext编译不过

make[7]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools/m4'
make[8]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools/m4'
make[8]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/share/aclocal'
 /usr/bin/install -c -m 644 ../../gettext-runtime/gnulib-m4/lib-ld.m4 ../../gettext-runtime/gnulib-m4/lib-link.m4 ../../gettext-runtime/gnulib-m4/lib-prefix.m4 ../../gettext-runtime/m4/codeset.m4 ../../gettext-runtime/m4/extern-inline.m4 ../../gettext-runtime/m4/fcntl-o.m4 ../../gettext-runtime/m4/gettext.m4 ../../gettext-runtime/m4/glibc2.m4 ../../gettext-runtime/m4/glibc21.m4 ../../gettext-runtime/m4/iconv.m4 ../../gettext-runtime/m4/intdiv0.m4 ../../gettext-runtime/m4/intl.m4 ../../gettext-runtime/m4/intldir.m4 ../../gettext-runtime/m4/intlmacosx.m4 ../../gettext-runtime/m4/intmax.m4 ../../gettext-runtime/m4/inttypes_h.m4 ../../gettext-runtime/m4/inttypes-pri.m4 ../../gettext-runtime/m4/lcmessage.m4 ../../gettext-runtime/m4/lock.m4 ../../gettext-runtime/m4/longlong.m4 ../../gettext-runtime/m4/nls.m4 ../../gettext-runtime/m4/po.m4 ../../gettext-runtime/m4/printf-posix.m4 ../../gettext-runtime/m4/progtest.m4 ../../gettext-runtime/m4/size_max.m4 ../../gettext-runtime/m4/stdint_h.m4 ../../gettext-runtime/m4/threadlib.m4 ../../gettext-runtime/m4/uintmax_t.m4 ../../gettext-runtime/m4/visibility.m4 ../../gettext-runtime/m4/wchar_t.m4 ../../gettext-runtime/m4/wint_t.m4 ../../gettext-runtime/m4/xsize.m4 '/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/share/aclocal'
 /bin/mkdir -p '/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/share/doc/gettext/examples/build-aux'
 /usr/bin/install -c -m 644 ../gnulib-m4/gcj.m4 ../gnulib-m4/javacomp.m4 ../gnulib-m4/javaexec.m4 ../gnulib-m4/csharpcomp.m4 ../gnulib-m4/csharpexec.m4 csharpexec-test.exe '/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/share/doc/gettext/examples/build-aux'
make[8]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools/m4'
make[7]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools/m4'
make[7]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools'
make[8]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools'
make[8]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/share/doc/gettext/examples/build-aux'
 /usr/bin/install -c -m 644 ../build-aux/javacomp.sh.in ../build-aux/javaexec.sh.in ../build-aux/csharpcomp.sh.in ../build-aux/csharpexec.sh.in '/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/share/doc/gettext/examples/build-aux'
 /bin/mkdir -p '/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/share/gettext'
 /usr/bin/install -c ../build-aux/config.rpath '/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/share/gettext'
make[8]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools'
make[7]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools'
make[6]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/gettext-tools'
make[6]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6'
make[7]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6'
make[7]: Nothing to be done for `install-exec-am'.
make[7]: Nothing to be done for `install-data-am'.
make[7]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6'
make[6]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6'
make[5]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6'
make[4]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6'
mkdir -p /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/stamp
touch /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/gettext-0.19.6/.built
touch /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/stamp/.gettext-full_installed
make[3]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/package/libs/gettext-full'
make[2]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu'
make[1]: *** [/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu'
make: *** [world] Error 2

#### make failed to build some targets (14:54 (mm:ss)) ####

解决方法 cd package/libs/gettext mm -B 单独重新编译这个包

glib2编译不过

make[9]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs/reference/gio'
make[8]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs/reference/gio'
make[8]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs/reference'
make[9]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs/reference'
make[9]: Nothing to be done for `install-exec-am'.
make[9]: Nothing to be done for `install-data-am'.
make[9]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs/reference'
make[8]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs/reference'
make[7]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs/reference'
make[7]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs'
make[8]: Entering directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs'
make[8]: Nothing to be done for `install-exec-am'.
make[8]: Nothing to be done for `install-data-am'.
make[8]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs'
make[7]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs'
make[6]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/docs'
make[5]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1'
make[4]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1'
mkdir -p /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/stamp
touch /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/host/glib-2.50.1/.built
touch /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/host/stamp/.glib2_installed
make[3]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/package/libs/glib2'
make[2]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu'
make[1]: *** [/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu'
make: *** [world] Error 2

#### make failed to build some targets (02:16 (mm:ss)) #### 

解决方法 cd package/libs/glib2 mm -B 单独重新编译这个包

gdb编译不过

touch /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/.built
mkdir -p /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-sunxi/gdb/CONTROL /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo
install -d -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-sunxi/gdb/usr/bin
install -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-install/usr/bin/gdb /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-sunxi/gdb/usr/bin/
find /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-sunxi/gdb -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
: /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-sunxi/gdb
(cd /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-sunxi/gdb/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base
/home/kunyao/workspace/j_tina_r329_jishu/scripts/ipkg-build -c -o 0 -g 0 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-sunxi/gdb /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base
Packaged contents of /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-sunxi/gdb into /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base/gdb_7.10.1-1_sunxi.ipk
rm -rf /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-gdb
mkdir -p /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/stamp /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-gdb
install -d -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-gdb/usr/bin
install -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/gdb-7.10.1/ipkg-install/usr/bin/gdb /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-gdb/usr/bin/
SHELL= flock /home/kunyao/workspace/j_tina_r329_jishu/tmp/.root-copy.flock -c 'cp -fpR /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-gdb/. /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/'
rm -rf /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-gdb
touch /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/stamp/.gdb_installed
if [ -f /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/gdb.default.install.clean ]; then rm -f /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/gdb.default.install /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/gdb.default.install.clean; fi; echo "gdb" >> /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/gdb.default.install
make[3]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/package/devel/gdb'
make[2]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu'
make[1]: *** [/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu'
make: *** [world] Error 2

#### make failed to build some targets (04:18 (mm:ss)) ####

解决方法 cd package/libs/gdb mm -B 单独重新编译这个包

wpa-cli编译不过

/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-supplicant
(cd /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-supplicant/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base
/home/kunyao/workspace/j_tina_r329_jishu/scripts/ipkg-build -c -o 0 -g 0 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-supplicant /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base
Packaged contents of /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-supplicant into /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base/wpa-supplicant_2017-11-08-2_sunxi.ipk
rm -rf /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-supplicant
mkdir -p /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/stamp /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-supplicant
install -d -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-supplicant/usr/sbin
install -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/wpa_supplicant/wpa_supplicant /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-supplicant/usr/sbin/
SHELL= flock /home/kunyao/workspace/j_tina_r329_jishu/tmp/.root-copy.flock -c 'cp -fpR /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-supplicant/. /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/'
rm -rf /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-supplicant
touch /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/stamp/.wpa-supplicant_installed
if [ -f /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/hostapd.supplicant-full.install.clean ]; then rm -f /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/hostapd.supplicant-full.install /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/hostapd.supplicant-full.install.clean; fi; echo "wpa-supplicant" >> /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/hostapd.supplicant-full.install
mkdir -p /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-cli/CONTROL /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo
install -d -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-cli/usr/sbin
cp -fpR /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/wpa_supplicant/wpa_cli /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-cli/usr/sbin/
find /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-cli -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
: /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-cli
(cd /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-cli/CONTROL; ( echo "$CONTROL"; printf "Description: "; echo "$DESCRIPTION" | sed -e 's,^[[:space:]]*, ,g'; ) > control; chmod 644 control; ( echo "#!/bin/sh"; echo "[ \"\${IPKG_NO_SCRIPT}\" = \"1\" ] && exit 0"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_postinst \$0 \$@"; ) > postinst; ( echo "#!/bin/sh"; echo ". \${IPKG_INSTROOT}/lib/functions.sh"; echo "default_prerm \$0 \$@"; ) > prerm; chmod 0755 postinst prerm;  )
install -d -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base
/home/kunyao/workspace/j_tina_r329_jishu/scripts/ipkg-build -c -o 0 -g 0 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-cli /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base
Packaged contents of /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/ipkg-sunxi/wpa-cli into /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/packages/base/wpa-cli_2017-11-08-2_sunxi.ipk
rm -rf /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-cli
mkdir -p /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/stamp /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-cli
install -d -m0755 /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-cli/usr/sbin
cp -fpR /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/compile_dir/target/hostapd-supplicant-full/hostapd-2017-11-08/wpa_supplicant/wpa_cli /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-cli/usr/sbin/
SHELL= flock /home/kunyao/workspace/j_tina_r329_jishu/tmp/.root-copy.flock -c 'cp -fpR /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-cli/. /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/'
rm -rf /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/tmp-wpa-cli
touch /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/rootfs/stamp/.wpa-cli_installed
if [ -f /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/hostapd.supplicant-full.install.clean ]; then rm -f /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/hostapd.supplicant-full.install /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/hostapd.supplicant-full.install.clean; fi; echo "wpa-cli" >> /home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/pkginfo/hostapd.supplicant-full.install
make[3]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu/package/network/services/hostapd'
make[2]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu'
make[1]: *** [/home/kunyao/workspace/j_tina_r329_jishu/out/r329-evb5/staging_dir/target/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/kunyao/workspace/j_tina_r329_jishu'
make: *** [world] Error 2

#### make failed to build some targets (01:29 (mm:ss)) ####

解决方法 cd package/libs/wpa-cli mm -B 单独重新编译这个包

同理,其它确认代码没有问题的包编译不过时,都可以先试试单独编这个包。