SK-AM62B-P1: compile error with AM62xx processor-sdk

Part Number: SK-AM62B-P1

Tool/software:

Hi,

I follow the https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM62X/10_00_07_04/exports/docs/linux/Overview_Building_the_SDK.html to build yocto on Ubuntu 22.04.

The command ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-scarthgap-chromium-10.00.07.04-config.tx runs OK, but when I run MACHINE=am62xx-evm bitbake -k tisdk-default-image to build image, I meet the error two times as attachment.

How to deal with the error?

Besides, I found that my ubuntu would crash easily when it's compiling. Is there anyway to configure less CPU kernal or other resources to compile so that it wouldn't crash so easily?

For example, use -j4 or -j8 when using make command to compile.