I am new in Yocto and trying to build a petalinux project in the Yocto, and met following errors: <p>ERROR: dpu-1.0-r0 do_compile: oe_runmake failed</p>
In the end it shows:
| cc1: some warnings being treated as errors
| make[3]: *** [/home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work-shared/zynq-generic/kernel-source/scripts/Makefile.build:277: /home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/dpu/1.0-r0/dpucore.o] Error 1
| make[2]: *** [/home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work-shared/zynq-generic/kernel-source/Makefile:1868: /home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/dpu/1.0-r0] Error 2
| make[2]: Leaving directory '/home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work-shared/zynq-generic/kernel-build-artifacts'
| make[1]: Leaving directory '/home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/build/tmp/work-shared/zynq-generic/kernel-source'
| make[1]: *** [Makefile:219: __sub-make] Error 2
| make: *** [Makefile:34: all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/project-spec/meta-user/recipes-modules/dpu/dpu.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6587 tasks of which 6549 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/project-spec/meta-user/recipes-modules/dpu/dpu.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project. Check the /home/zhaoqi/Desktop/dpu_integration/pynqz2_dpu/build/build.log file for more details...
How can I fix this problem? Thank you so much!