cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
olevr
Visitor
Visitor
1,571 Views
Registered: ‎11-08-2018

PetaLinux build failure - exec_python_func() error

I am following the steps in the Vitis Application Acceleration Development Flow Documentation.  I am at the step Using PetaLinux for Generating Linux Output Products.  I followed steps 1-9 without errors, the only difference being int step 5 I used "zcu104-revc" for (template) MACHINE_NAME because my board is the zcu104.  When I type petalinux-build I get the exec_python_func() error described in the output below.  My python version is 2.7.15+ (default, Oct 7 2019, 17:39:04).  What is the problem?

[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################################################################################################################| Time: 0:00:00
Loaded 3978 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################################################################| Time: 0:00:03
Parsing of 2893 .bb files complete (2890 cached, 3 parsed). 3980 targets, 154 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
WARNING: /home/jeff/Xilinx/Petalinux/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.2.bb.do_compile is tainted from a forced run
Initialising tasks: 100% |#######################################################################################################################################| Time: 0:00:03
Checking sstate mirror object availability: 100% |###############################################################################################################| Time: 0:00:08
Sstate summary: Wanted 268 Found 12 Missed 512 Current 1199 (4% match, 82% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: linux-xlnx: compiling from external source tree /home/jeff/Xilinx/zcu104_base_pkg/petalinux/components/plnx_workspace/sources/linux-xlnx
ERROR: device-tree-xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0 do_compile: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:devicetree_do_compile(d)
0003:
File: '/home/jeff/Xilinx/Petalinux/components/yocto/source/aarch64/layers/core/meta/classes/devicetree.bbclass', lineno: 131, function: devicetree_do_compile
0127: if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
0128: continue # skip non-.dts files and non-overlay files
0129: except:
0130: continue # skip if can't determine if overlay
*** 0131: devicetree_compile(dtspath, includes, d)
0132:}
0133:
0134:devicetree_do_install() {
0135: for DTB_FILE in `ls *.dtb *.dtbo`; do
File: '/home/jeff/Xilinx/Petalinux/components/yocto/source/aarch64/layers/core/meta/classes/devicetree.bbclass', lineno: 119, function: devicetree_compile
0115: dtcargs += ["-i", i]
0116: dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")]
0117: dtcargs += ["-I", "dts", "-O", "dtb", "{0}.pp".format(dts)]
0118: bb.note("Running {0}".format(" ".join(dtcargs)))
*** 0119: subprocess.run(dtcargs, check = True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
0120:
0121:python devicetree_do_compile() {
0122: includes = expand_includes("DT_INCLUDE", d)
0123: listpath = d.getVar("DT_FILES_PATH")
File: '/home/jeff/Xilinx/Petalinux/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py', lineno: 398, function: run
0394: raise
0395: retcode = process.poll()
0396: if check and retcode:
0397: raise CalledProcessError(retcode, process.args,
*** 0398: output=stdout, stderr=stderr)
0399: return CompletedProcess(process.args, retcode, stdout, stderr)
0400:
0401:
0402:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command '['dtc', '-R', '8', '-b', '0', '-p', '0x1000', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/cavium', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/exynos', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/al', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/xilinx', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/actions', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/allwinner', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/amd', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/broadcom', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/../components/plnx_workspace/device-tree/device-tree', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/include', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/renesas', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/apm', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/arm', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/nvidia', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/socionext', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/synaptics', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/altera', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/marvell', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/rockchip', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/amlogic', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/mediatek', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/freescale', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/sprd', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/ti', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/scripts/dtc/include-prefixes', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/hisilicon', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/zte', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/realtek', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/qcom', '-i', '/home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/lg', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 1

Subprocess output:
Error: /home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0/system-user.dtsi:6.17-18 syntax error
FATAL ERROR: Unable to parse input tree

ERROR: device-tree-xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0 do_compile: Function failed: devicetree_do_compile
ERROR: Logfile of failure stored in: /home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0/temp/log.do_compile.26292
ERROR: Task (/home/jeff/Xilinx/Petalinux/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4898 tasks of which 4512 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/jeff/Xilinx/Petalinux/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

0 Kudos
2 Replies
hokim
Scholar
Scholar
1,473 Views
Registered: ‎10-21-2015

Hi 

Error: /home/jeff/Xilinx/zcu104_base_pkg/petalinux/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0/system-user.dtsi:6.17-18 syntax error
FATAL ERROR: Unable to parse input tree

You should check line no 6 of system-user.dtsi

0 Kudos
sm7ed
Observer
Observer
1,118 Views
Registered: ‎05-16-2018

I had this same error and managed to avoid it by using the MicroBlaze 'Linux with MMU' preset with no other modifications. Not sure yet how to solve it but hope this helps!

0 Kudos