Attempting to build meta-hailo (mickledore) with langdale ... pyhailort fails to build

Hello,

I have successfully build the meta-hailo (honister) recipes with an AMD Zynq-UltraScale+ based project, version 2022.2 (aligned with honister & linux kernel 5.15).

I am now attempting to build the meta-hailo (mickledore) recipes with a new project, version 2023.2 (aligned with langdale & linux kernel 6.1).
When I change the conf/layer.conf files from “mickledore” to “langdale”, most of the packages build (and execute) fine:

  • hailo-pci
  • hailo-firmware
  • libhailort
  • libgsthailo
  • hailortcli

The following package, however, failed to build:

  • pyhailort

It fails when trying to fetch the pybind11 repo from github.com … as shown below:

INFO: bitbake pyhailort -f
NOTE: Started PRServer with DBfile: /media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/build/cache/prserv.sqlite3, Address: 127.0.0.1:34147, PID: 2725379
Loading cache: 100% |########################################################################################################| Time: 0:00:01
Loaded 6388 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################| Time: 0:00:02
Parsing of 4462 .bb files complete (4449 cached, 13 parsed). 6401 targets, 346 skipped, 1 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Tainting hash to force rebuild of task /media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/project-spec/meta-hailo/meta-hailo-libhailort/recipes-hailo/pyhailort/pyhailort_4.18.0.bb, do_build
WARNING: /media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/project-spec/meta-hailo/meta-hailo-libhailort/recipes-hailo/pyhailort/pyhailort_4.18.0.bb:do_build is tainted from a forced run
Initialising tasks: 100% |###################################################################################################| Time: 0:00:05
Sstate summary: Wanted 422 Local 378 Mirrors 0 Missed 44 Current 1000 (89% match, 96% complete)

NOTE: Executing Tasks
ERROR: pyhailort-4.18.0-r0 do_compile: ‘python3 setup.py bdist_wheel ’ execution failed.
ERROR: pyhailort-4.18.0-r0 do_compile: ExecutionError(’/media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/build/tmp/work/cortexa72-cortexa53-xilinx-linux/pyhailort/4.18.0-r0/temp/run.do_compile.2726635’, 1, None, None)
ERROR: Logfile of failure stored in: /media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/build/tmp/work/cortexa72-cortexa53-xilinx-linux/pyhailort/4.18.0-r0/temp/log.do_compile.2726635
Log data follows:
| DEBUG: Executing shell function do_compile
| running bdist_wheel
| running build
| running build_py
| running build_ext
| [ 11%] Performing download step (git clone) for ‘pybind11-populate’
| Cloning into ‘pybind11-src’…
| fatal: unable to access ‘GitHub - pybind/pybind11: Seamless operability between C++11 and Python’: Could not resolve host: github.com
| Cloning into ‘pybind11-src’…
| fatal: unable to access ‘GitHub - pybind/pybind11: Seamless operability between C++11 and Python’: Could not resolve host: github.com
| Cloning into ‘pybind11-src’…
| fatal: unable to access ‘GitHub - pybind/pybind11: Seamless operability between C++11 and Python’: Could not resolve host: github.com
| – Had to git clone more than once: 3 times.
| CMake Error at pybind11-subbuild/pybind11-populate-prefix/tmp/pybind11-populate-gitclone.cmake:39 (message):
| Failed to clone repository: ‘GitHub - pybind/pybind11: Seamless operability between C++11 and Python
|
|
| make[2]: *** [CMakeFiles/pybind11-populate.dir/build.make:102: pybind11-populate-prefix/src/pybind11-populate-stamp/pybind11-populate-download] Error 1
| make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/pybind11-populate.dir/all] Error 2
| make: *** [Makefile:91: all] Error 2
|
| – Configuring incomplete, errors occurred!
| See also “/media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/build/tmp/work/cortexa72-cortexa53-xilinx-linux/pyhailort/4.18.0-r0/git/hailort/libhailort/bindings/python/platform/build/temp.linux-x86_64-cpython-310/CMakeFiles/CMakeOutput.log”.
| CMake Error at /media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/build/tmp/work/cortexa72-cortexa53-xilinx-linux/pyhailort/4.18.0-r0/recipe-sysroot-native/usr/share/cmake-3.24/Modules/FetchContent.cmake:1604 (message):
| Build step for pybind11 failed: 2
| Call Stack (most recent call first):
| /media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/build/tmp/work/cortexa72-cortexa53-xilinx-linux/pyhailort/4.18.0-r0/recipe-sysroot-native/usr/share/cmake-3.24/Modules/FetchContent.cmake:1744:EVAL:2 (__FetchContent_directPopulate)
| /media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/build/tmp/work/cortexa72-cortexa53-xilinx-linux/pyhailort/4.18.0-r0/recipe-sysroot-native/usr/share/cmake-3.24/Modules/FetchContent.cmake:1744 (cmake_language)
| /media/albertabeef/Tycho/AlbertaBeef_2023_2/tria-vitis-platforms/zub1cg/petalinux/build/tmp/work/cortexa72-cortexa53-xilinx-linux/pyhailort/4.18.0-r0/git/hailort/cmake/external/pybind11.cmake:17 (FetchContent_Populate)
| CMakeLists.txt:16 (include)
|
|

Any idea how to resolve this ?

I have the same issue building pyhailort from meta-hailo (kirkstone-v3.29.1), linux kernel 5.15.71

1 Like

Riccardo,
Although I have not resolved my issue of building the pylibhailort package in my langdale project, I did find a workaround.

In my case, I downloaded the pre-built python wheel and installed it directly on my embedded platform:

pip3 install hailort-4.18.0-cp310-cp310-linux_aarch64.whl

This worked :slight_smile: :+1: