OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 379|回复: 1

[XILINX] petalinux2023.3 ubuntu 22.04 编译出错,求大神帮助

[复制链接]

1

主题

1

帖子

0

精华

新手入门

积分
3
金钱
3
注册时间
2024-5-3
在线时间
0 小时
发表于 2024-5-3 20:10:42 | 显示全部楼层 |阅读模式
3金钱
ERROR: device-tree-xilinx-v2023.2+gitAUTOINC+1a5881d004-r0 do_compile: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
*** 0002:devicetree_do_compile(d)
     0003:
File: '/media/bsysd/petalinux/ALIENTEK-ZYNQ/components/yocto/layers/poky/meta/classes-recipe/devicetree.bbclass', lineno: 137, function: devicetree_do_compile
     0133:            if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
     0134:                continue # skip non-.dts files and non-overlay files
     0135:        except:
     0136:            continue # skip if can't determine if overlay
*** 0137:        devicetree_compile(dtspath, includes, d)
     0138:}
     0139:
     0140:devicetree_do_install() {
     0141:    for DTB_FILE in `ls *.dtb *.dtbo`; do
File: '/media/bsysd/petalinux/ALIENTEK-ZYNQ/components/yocto/layers/poky/meta/classes-recipe/devicetree.bbclass', lineno: 109, function: devicetree_compile
     0105:    for i in includes:
     0106:        ppargs.append("-I{0}".format(i))
     0107:    ppargs += ["-o", "{0}.pp".format(dts), dtspath]
     0108:    bb.note("Running {0}".format(" ".join(ppargs)))
*** 0109:    subprocess.run(ppargs, check = True)
     0110:
     0111:    # determine if the file is an overlay or not (using the preprocessed file)
     0112:    isoverlay = devicetree_source_is_overlay("{0}.pp".format(dts))
     0113:
File: '/media/bsysd/petalinux/2023.2/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.10/subprocess.py', lineno: 524, function: run
     0520:            # We don't call process.wait() as .__exit__ does that for us.
     0521:            raise
     0522:        retcode = process.poll()
     0523:        if check and retcode:
*** 0524:            raise CalledProcessError(retcode, process.args,
     0525:                                     output=stdout, stderr=stderr)
     0526:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0527:
     0528:
Exception: subprocess.CalledProcessError: Command '['gcc', '-E', '-nostdinc', '-undef', '-D__DTS__', '-x', 'assembler-with-cpp', '-I/media/bsysd/petalinux/ALIENTEK-ZYNQ/build/tmp/work/zynq_generic_7z020-xilinx-linux-gnueabi/device-tree/xilinx-v2023.2+gitAUTOINC+1a5881d004-r0/git/device_tree/data/kernel_dtsi/2023.2/include/', '-I/media/bsysd/petalinux/ALIENTEK-ZYNQ/build/tmp/work/zynq_generic_7z020-xilinx-linux-gnueabi/device-tree/xilinx-v2023.2+gitAUTOINC+1a5881d004-r0', '-I/media/bsysd/petalinux/ALIENTEK-ZYNQ/build/tmp/work/zynq_generic_7z020-xilinx-linux-gnueabi/device-tree/xilinx-v2023.2+gitAUTOINC+1a5881d004-r0/git/device_tree/data/kernel_dtsi/2023.2/BOARD/', '-I/media/bsysd/petalinux/ALIENTEK-ZYNQ/components/plnx_workspace/device-tree/device-tree', '-o', 'system-top.dts.pp', '/media/bsysd/petalinux/ALIENTEK-ZYNQ/components/plnx_workspace/device-tree/device-tree/system-top.dts']' returned non-zero exit status 1.

ERROR: Logfile of failure stored in: /media/bsysd/petalinux/ALIENTEK-ZYNQ/build/tmp/work/zynq_generic_7z020-xilinx-linux-gnueabi/device-tree/xilinx-v2023.2+gitAUTOINC+1a5881d004-r0/temp/log.do_compile.180434
ERROR: Task (/media/bsysd/petalinux/ALIENTEK-ZYNQ/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

3

主题

2012

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
5615
金钱
5615
注册时间
2018-10-21
在线时间
1590 小时
发表于 2024-5-6 09:20:05 | 显示全部楼层
看着像是设备树写的有问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-22 10:57

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表