Failed to build OpenCV 4.5.2


Trying to build an Yocto image based with OpenCV added to it. Have managed to do so just fine before, but discovered the image lacked ffmpeg, so had to rebuild it. Long story, short, building the opencv layer now fails with the following error. Must admit, I’m very new to Yocto and willing to learn, but not sure how to approach this.

I’ve attached the log file of the build, any tips would be greatly appreciated.

95QvFGy5.txt (8.7 KB)

Hi @alexxs !

From your error log we can see the following error:

Error: open CFI at the end of file;

Seems like this error is related to GCC being interrupted during compilation. This could happen because of a lack of RAM.

Could you check the RAM utilization while building it? Maybe your machine is running out of free RAM?

Best regards,