AMD 10G AXI Ethernet Checksum Offload Example PetaLinux 编译错误 “pod2man: command not found”

AMD 10G AXI Ethernet Checksum Offload Example PetaLinux 编译错误 “pod2man: command not found”

例子来源

10G AXI Ethernet Checksum Offload Example Design

错误信息

简化后的错误信息如下:

hankf@XSZGS4:zcu102_10g_ethernet_CSO$ petalinux-build
.........
ERROR: opkg-utils-0.4.5-r0 do_compile: oe_runmake failed
ERROR: opkg-utils-0.4.5-r0 do_compile: ExecutionError('/tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/run.do_compile.46656', 1, None, None)
ERROR: Logfile of failure stored in: /tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/log.do_compile.46656
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 64
| pod2man -r "" -c "opkg-utils Documentation" opkg-build opkg-build.1
| /bin/sh: pod2man: command not found
| make: *** [Makefile:26: opkg-build.1] Error 127
| ERROR: oe_runmake failed
| WARNING: /tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/run.do_compile.46656:183 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| 	#1: bbfatal_log, /tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/run.do_compile.46656, line 183
| 	#2: die, /tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/run.do_compile.46656, line 168
| 	#3: oe_runmake, /tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/run.do_compile.46656, line 173
| 	#4: base_do_compile, /tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/run.do_compile.46656, line 151
| 	#5: do_compile, /tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/run.do_compile.46656, line 145
| 	#6: main, /tmp/work/cortexa72-cortexa53-xilinx-linux/opkg-utils/0.4.5-r0/temp/run.do_compile.46656, line 193
ERROR: Task (/zcu102_10g_ethernet_CSO/components/yocto/layers/core/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.5.bb:do_compile) failed with exit code '1'

解决办法

绝对tmp目录

AMD 10G AXI Ethernet Checksum Offload Example使用了“/tmp”作为临时目录。

hankf@XSZGS4:zcu102_10g_ethernet_CSO$ cat project-spec/configs/config | grep tmp 
CONFIG_TMP_DIR_LOCATION="/tmp/CSUM_221-2022.07.21-15.39.57-uc1"

工程tmp目录

按UG1144,设置TMPDIR到“$PROOT/build/tmp”。

hankf@XSZGS4:zcu102_10g_ethernet_CSO$ cat project-spec/configs/config | grep tmp 
CONFIG_TMP_DIR_LOCATION="$PROOT/build/tmp"

再次编译,能够成功编译PetaLinux工程。

posted @ 2023-07-07 17:29  HankFu  阅读(189)  评论(0编辑  收藏  举报