openvino: OpenVINO build from source failed in Ubuntu 20.04 in Raspberry Pi.

Hi, I am trying to build OpenVINO from source in Ubuntu 20.04 in Raspberry Pi 4 4-GB.

I followed the build steps from https://github.com/openvinotoolkit/openvino/wiki/BuildingForLinux

I used the command inside the build folder to create CMake dependencies which works correctly :

cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON -DENABLE_WHEEL=ON ..

When I try to build the project using the following command, I get the error at [98%] :

make --jobs=$(nproc --all)

The build process took almost 4-5 hours. I was stuck at 98% for an hour and then I got this error for build fail.

Error message

[ 98%] Built target py_onnx_frontend [ 98%] Built target py_ov_frontends [ 98%] Built target template_extension c++: fatal error: Killed signal terminated program cc1plus compilation terminated. make[2]: *** [src/plugins/template/backend/CMakeFiles/interpreter_backend.dir/build.make:174: src/plugins/template/backend/CMakeFiles/interpreter_backend.dir/evaluates_map.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:4975: src/plugins/template/backend/CMakeFiles/interpreter_backend.dir/all] Error 2 make: *** [Makefile:166: all] Error 2

I have attached a screenshot of the error I get while building OpenVINO

Thank you Screenshot from 2023-02-07 00-40-44

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 22 (13 by maintainers)

Most upvoted comments

But you have some files in build/wheels folder? Try to install it

@nilutpolkashyap Raspberry Pi 4 RAM size is not big enough(4GB), you can set less number building jobs to avoid it is killed due to lack of memory.

Hi @nilutpolkashyap Please, try:

cmake -DENABLE_TEMPLATE=OFF
make ie_wheel -j8

In this case evaluates_map.cpp will not be compiled (it’s a very big file and we need to split it into smaller ones to avoid such issues)