cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
118 Views
Registered: ‎10-20-2018

petalinux

Jump to solution

Vivado2019.1;Petalinux2019.1;ZYNQ7035 -2

when do "petalinux-build" in Petalinux2019.1,show error as follows:

..........................................................................

|   gcc  -isystem/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/usr/lib -L/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2  -o scripts/dtc/dtc scripts/dtc/dtc.o scripts/dtc/flattree.o scripts/dtc/fstree.o scripts/dtc/data.o scripts/dtc/livetree.o scripts/dtc/treesource.o scripts/dtc/srcpos.o scripts/dtc/checks.o scripts/dtc/util.o scripts/dtc/dtc-lexer.lex.o scripts/dtc/dtc-parser.tab.o
| mkdir -p include/asm
| if [ -d /home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-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/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-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 \<linux/kconfig.h\>; echo \#include \<config_fallbacks.h\>;) < /home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-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
|   arm-xilinx-linux-gnueabi-gcc  --sysroot=/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -Os -fno-stack-protector -fno-delete-null-pointer-checks -fmacro-prefix-map=/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/= -g -fstack-usage -Wno-format-nonliteral -Werror=date-time  -D__KERNEL__ -D__UBOOT__   -D__ARM__ -marm -mno-thumb-interwork  -mabi=aapcs-linux  -mword-relocations  -fno-pic  -mno-unaligned-access  -ffunction-sections -fdata-sections -fno-common -ffixed-r9  -msoft-float    -pipe -Iinclude  -I/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/include -I/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/arch/arm/include -include /home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git/include/linux/kconfig.h  -nostdinc -isystem /home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/recipe-sysroot-native/usr/bin/arm-xilinx-linux-gnueabi/../../lib/arm-xilinx-linux-gnueabi/gcc/arm-xilinx-linux-gnueabi/8.2.0/include  -DDO_DEPS_ONLY -dM /home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-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; }
| make[1]: Leaving directory '/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/build'
| make: *** [Makefile:148: sub-make] Error 2
| make: Leaving directory '/home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/git'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/temp/log.do_compile.48159)
ERROR: Task (/home/zml/SoftwareInstall/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3052 tasks of which 2292 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
  /home/zml/SoftwareInstall/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.1.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
 
How can I solve the above problems??
Sincerely waiting for your reply, thank you very much!
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
79 Views
Registered: ‎12-04-2016

Hi @zhangming 

From the log, it looks something is incorrect with your uboot platform configurations.

Please check if you find details in this log file on the error:

log file is located at /home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/temp/log.do_compile.48159

 

Best Regards

Shabbir

 

View solution in original post

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
80 Views
Registered: ‎12-04-2016

Hi @zhangming 

From the log, it looks something is incorrect with your uboot platform configurations.

Please check if you find details in this log file on the error:

log file is located at /home/zml/Documents/vivado2019.1files/KSCF/20201017test01/ax_peta/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/u-boot-xlnx/v2019.01-xilinx-v2019.1+gitAUTOINC+d895ac5e94-r0/temp/log.do_compile.48159

 

Best Regards

Shabbir

 

View solution in original post

0 Kudos