UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer yyt
Observer
358 Views
Registered: ‎11-22-2018

petalinux-build errors!!!

Jump to solution

petalinux 2017.3+vivado2017.3

编译官方下载的xilinx-zcu102-zu9-es2-rev1.0-v2017.3-final.bsp,能够生成BOOT.BIN

但是编译如下网址生成的bnn工程出错,bnn工程由make_hw.sh脚本生成。

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841949/Zynq+UltraScale+MPSoC+Accelerated+Image+Classification+via+Binary+Neural+Network+TechTip

 

log中主要错误提示如下:

ERROR: u-boot-xlnx-v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0 do_compile: oe_runmake failed
ERROR: u-boot-xlnx-v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0 do_compile: Function failed: do_compile (log file is located at /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/temp/log.do_compile.57654)
ERROR: Logfile of failure stored in: /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/temp/log.do_compile.57654

ERROR: Function failed: do_compile (log file is located at /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/temp/log.do_compile.57654)
Summary: 1 task failed:
/home/subos/mysoftware/petalinux2017.3/components/yocto/source/aarch64/layers/meta-xilinx/recipes-bsp/u-boot/u-boot-xlnx_2017.01.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

 

完整log如下:


subos@subos-virtual-machine:~/mysoftware/petalinux_zcu102_local$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:01:02
Parsing of 2466 .bb files complete (0 cached, 2466 parsed). 3259 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:38
Checking sstate mirror object availability: 100% |###########################################################################################################################################| Time: 0:14:05
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.3+gitAUTOINC+3c9f0cfde9-r0 do_compile: NOTE: fsbl: compiling from external source tree /home/subos/mysoftware/petalinux2017.3/tools/hsm/data/embeddedsw
ERROR: u-boot-xlnx-v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0 do_compile: oe_runmake failed
ERROR: u-boot-xlnx-v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0 do_compile: Function failed: do_compile (log file is located at /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/temp/log.do_compile.57654)
ERROR: Logfile of failure stored in: /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/temp/log.do_compile.57654
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CROSS_COMPILE=aarch64-xilinx-linux- CC=aarch64-xilinx-linux-gcc --sysroot=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/plnx_aarch64 V=1 HOSTCC=gcc -isystem/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -L/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -C /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git O=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/build all EXT_DTB=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/deploy/images/plnx_aarch64/plnx_aarch64-system.dtb
| make: Entering directory '/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git'
| make -C /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/build KBUILD_src=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git \
| -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/Makefile all
| make[1]: Entering directory '/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/build'
| make -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/Makefile silentoldconfig
| make -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/Makefile.build obj=scripts/basic
| ln -fsn /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git source
| /bin/sh /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/mkmakefile \
| /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git . 2017 01
| rm -f .tmp_quiet_recordmcount
| GEN ./Makefile
| make -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/Makefile.build obj=scripts/kconfig silentoldconfig
| mkdir -p include/config include/generated
| scripts/kconfig/conf --silentoldconfig Kconfig
| make -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/Makefile.autoconf || \
| { rm -f include/config/auto.conf; false; }
| mkdir -p include/asm
| if [ -d /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/mach-zynq/include/mach ]; then \
| dest=arch/arm/mach-zynq/include/mach; \
| else \
| dest=arch/arm/include/asm/arch-zynq; \
| fi; \
| ln -fsn /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/$dest include/asm/arch
| set -e; : ' CHK include/config.h'; mkdir -p include/; (echo "/* Automatically generated - do not edit */"; for i in $(echo "" | sed 's/,/ /g'); do echo \#define CONFIG_$i | sed '/=/ {s/=/ /;q; } ; { s/$/ 1/; }'; done; echo \#define CONFIG_BOARDDIR board/xilinx/zynq; echo \#include \<config_defaults.h\>; echo \#include \<config_uncmd_spl.h\>; echo \#include \<configs/"platform-top".h\>; echo \#include \<asm/config.h\>; echo \#include \<config_fallbacks.h\>;) < /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/Makefile.autoconf > include/config.h.tmp; if [ -r include/config.h ] && cmp -s include/config.h include/config.h.tmp; then rm -f include/config.h.tmp; else : ' UPD include/config.h'; mv -f include/config.h.tmp include/config.h; fi
| aarch64-xilinx-linux-gcc --sysroot=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/plnx_aarch64 -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -O2 -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ -fno-pic -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -pipe -Iinclude -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/include -include /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include/linux/kconfig.h -nostdinc -isystem /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/6.2.1/include -DDO_DEPS_ONLY -dM /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include/common.h > u-boot.cfg.tmp && { grep 'define CONFIG_' u-boot.cfg.tmp > u-boot.cfg; rm u-boot.cfg.tmp; } || { rm u-boot.cfg.tmp; false; }
| aarch64-xilinx-linux-gcc --sysroot=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/plnx_aarch64 -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -O2 -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__KERNEL__ -D__UBOOT__ -D__ARM__ -fno-pic -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -pipe -Iinclude -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/include -include /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include/linux/kconfig.h -nostdinc -isystem /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/6.2.1/include -MQ include/config/auto.conf /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; }
| sed -n -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/tools/scripts/define2mk.sed u-boot.cfg | while read line; do if [ -n "" ] || ! grep -q "${line%=*}=" include/config/auto.conf; then echo "$line"; fi done > include/autoconf.mk
| touch include/config/auto.conf
| set -e; : ' CHK include/config/uboot.release'; mkdir -p include/config/; echo "2017.01$(/bin/sh /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/setlocalversion /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git)" < include/config/auto.conf > include/config/uboot.release.tmp; if [ -r include/config/uboot.release ] && cmp -s include/config/uboot.release include/config/uboot.release.tmp; then rm -f include/config/uboot.release.tmp; else : ' UPD include/config/uboot.release'; mv -f include/config/uboot.release.tmp include/config/uboot.release; fi
| ln -fsn /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git source
| /bin/sh /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/mkmakefile \
| /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git . 2017 01
| set -e; : ' CHK include/generated/timestamp_autogenerated.h'; mkdir -p include/generated/; (if test -n "${SOURCE_DATE_EPOCH}"; then SOURCE_DATE="@${SOURCE_DATE_EPOCH}"; DATE=""; for date in gdate date.gnu date; do ${date} -u -d "${SOURCE_DATE}" >/dev/null 2>&1 && DATE="${date}"; done; if test -n "${DATE}"; then LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_TIME "%T"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_TZ "%z"'; LC_ALL=C ${DATE} -u -d "${SOURCE_DATE}" +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; else return 42; fi; else LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"'; LC_ALL=C date +'#define U_BOOT_TIME "%T"'; LC_ALL=C date +'#define U_BOOT_TZ "%z"'; LC_ALL=C date +'#define U_BOOT_DMI_DATE "%m/%d/%Y"'; fi) < /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/Makefile > include/generated/timestamp_autogenerated.h.tmp; if [ -r include/generated/timestamp_autogenerated.h ] && cmp -s include/generated/timestamp_autogenerated.h include/generated/timestamp_autogenerated.h.tmp; then rm -f include/generated/timestamp_autogenerated.h.tmp; else : ' UPD include/generated/timestamp_autogenerated.h'; mv -f include/generated/timestamp_autogenerated.h.tmp include/generated/timestamp_autogenerated.h; fi
| ERROR: oe_runmake failed
| GEN ./Makefile
| make -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/Makefile.build obj=scripts/basic
| rm -f .tmp_quiet_recordmcount
| if [ -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/.config -o -d /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include/config ]; then \
| echo >&2 " /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git is not clean, please run 'make mrproper'"; \
| echo >&2 " in the '/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git' directory.";\
| /bin/false; \
| fi;
| set -e; : ' CHK include/generated/version_autogenerated.h'; mkdir -p include/generated/; (echo \#define PLAIN_VERSION \"2017.01\"; echo \#define U_BOOT_VERSION \"U-Boot \" PLAIN_VERSION; echo \#define CC_VERSION_STRING \"$(LC_ALL=C aarch64-xilinx-linux-gcc --sysroot=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/plnx_aarch64 --version | head -n 1)\"; echo \#define LD_VERSION_STRING \"$(LC_ALL=C aarch64-xilinx-linux-ld.bfd --version | head -n 1)\"; ) < include/config/uboot.release > include/generated/version_autogenerated.h.tmp; if [ -r include/generated/version_autogenerated.h ] && cmp -s include/generated/version_autogenerated.h include/generated/version_autogenerated.h.tmp; then rm -f include/generated/version_autogenerated.h.tmp; else : ' UPD include/generated/version_autogenerated.h'; mv -f include/generated/version_autogenerated.h.tmp include/generated/version_autogenerated.h; fi
| make -f /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/scripts/Makefile.build obj=.
| mkdir -p lib/
| aarch64-xilinx-linux-gcc --sysroot=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/plnx_aarch64 -Wp,-MD,lib/.asm-offsets.s.d -nostdinc -isystem /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/6.2.1/include -Iinclude -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/include -include /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include/linux/kconfig.h -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/. -I. -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -fno-pic -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -pipe -march=armv5 -D__LINUX_ARM_ARCH__=7 -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/mach-zynq/include -DDO_DEPS_ONLY -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)" -D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)" -fverbose-asm -S -o lib/asm-offsets.s /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/lib/asm-offsets.c
| mkdir -p arch/arm/lib/
| aarch64-xilinx-linux-gcc --sysroot=/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/plnx_aarch64 -Wp,-MD,arch/arm/lib/.asm-offsets.s.d -nostdinc -isystem /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/sysroots/x86_64-linux/usr/bin/aarch64-xilinx-linux/../../lib/aarch64-xilinx-linux/gcc/aarch64-xilinx-linux/6.2.1/include -Iinclude -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/include -include /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/include/linux/kconfig.h -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/. -I. -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-protector -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonliteral -Werror=date-time -D__ARM__ -fno-pic -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -pipe -march=armv5 -D__LINUX_ARM_ARCH__=7 -I/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/mach-zynq/include -DDO_DEPS_ONLY -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(asm_offsets)" -D"KBUILD_MODNAME=KBUILD_STR(asm_offsets)" -fverbose-asm -S -o arch/arm/lib/asm-offsets.s /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/lib/asm-offsets.c
| /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/arch/arm/lib/asm-offsets.c:1:0: error: unknown value 'armv5' for -march
| /*
|
| /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/lib/asm-offsets.c:1:0: error: unknown value 'armv5' for -march
| /*
|
| make[2]: *** [/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/./Kbuild:44: lib/asm-offsets.s] Error 1
| make[2]: *** Waiting for unfinished jobs....
| make[2]: *** [/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/./Kbuild:65: arch/arm/lib/asm-offsets.s] Error 1
| make[1]: *** [/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git/Makefile:1270: prepare0] Error 2
| make[1]: Leaving directory '/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/build'
| make: *** [Makefile:150: sub-make] Error 2
| make: Leaving directory '/home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/git'
| ERROR: Function failed: do_compile (log file is located at /home/subos/mysoftware/petalinux_zcu102_local/build/tmp/work/plnx_aarch64-xilinx-linux/u-boot-xlnx/v2017.01-xilinx-v2017.3+gitAUTOINC+da811c4511-r0/temp/log.do_compile.57654)
ERROR: Task (/home/subos/mysoftware/petalinux2017.3/components/yocto/source/aarch64/layers/meta-xilinx/recipes-bsp/u-boot/u-boot-xlnx_2017.01.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2382 tasks of which 1873 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/subos/mysoftware/petalinux2017.3/components/yocto/source/aarch64/layers/meta-xilinx/recipes-bsp/u-boot/u-boot-xlnx_2017.01.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Observer yyt
Observer
265 Views
Registered: ‎11-22-2018

Re: petalinux-build errors!!!

Jump to solution

petalinux-create  -t project  --template zynqMP  --name zcu102zynqMP

问题在于--template zynq,应该为 --template zynqMP

0 Kudos
4 Replies
Highlighted
Moderator
Moderator
321 Views
Registered: ‎09-12-2007

Re: petalinux-build errors!!!

Jump to solution

Looks like an error with the cross-compiler. 

0 Kudos
Observer yyt
Observer
266 Views
Registered: ‎11-22-2018

Re: petalinux-build errors!!!

Jump to solution

petalinux-create  -t project  --template zynqMP  --name zcu102zynqMP

问题在于--template zynq,应该为 --template zynqMP

0 Kudos
Visitor chulifuu
Visitor
50 Views
Registered: ‎02-12-2019

Re: petalinux-build errors!!!

Jump to solution

I also encountered this problem. Can you solve it? If it is solved, can you tell me the solution?

0 Kudos
Observer yyt
Observer
44 Views
Registered: ‎11-22-2018

Re: petalinux-build errors!!!

Jump to solution

我当时的问题在于--template 的参数没写对,改为问题在于--template zynqMP就正常了,详细可参考ug1144、ug1157

0 Kudos