yocto编译出现错误如何定位

yocto编译出现错误如何定位

错误示例:

Makefile:150: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:24: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| make: Leaving directory '/home/zgt/work/zynq7000/elphel393/poky/build/tmp/work/elphel393-poky-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.3+gitAUTOINC+9c2e29b2c8-r0/linux-elphel393-standard-build'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/zgt/work/zynq7000/elphel393/poky/build/tmp/work/elphel393-poky-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.3+gitAUTOINC+9c2e29b2c8-r0/temp/log.do_compile.127632)
ERROR: Task (/home/zgt/work/zynq7000/elphel393/meta/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2017.3.bb:do_compile) failed with exit code '1'

仔细阅读提示发现这么一句话log file is located at /home/zgt/work/zynq7000/elphel393/poky/build/tmp/work/elphel393-poky-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.3+gitAUTOINC+9c2e29b2c8-r0/temp/log.do_compile.127632

打开log.do_compile.127632文件,搜索Error等关键字可定位出错误位置

posted @ 2019-02-15 08:15  NoneNull  阅读(3131)  评论(0编辑  收藏  举报