i.MX8M Yocto build tensor flow lite task error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8M Yocto build tensor flow lite task error

1,022件の閲覧回数
ewil
Contributor I

Trying to build imx-image-full for the i.MX8M Plus Hummingboard by following the steps through this github: https://github.com/SolidRun/meta-solidrun-arm-imx8/tree/kirkstone-imx8m

I'm getting errors regarding tensor flow lite which seems to be common for other versions as well, but I can't seem to find anyone who has posted this issue for my build specifically. One suggestion I see a lot is to edit download_dependencies.sh but I don't have that file. I've followed the Yocto Project User's guide for downloading dependencies. I've also used the -g flag that saves task dependencies to task-depends.dot but I can't figure out how to open the file, even with xdot which is supposed to be able to open that file type.

 

I'm debating posting this question to the solidrun forum as well just to get max amount of views for possible help. Let me know if you have any other sources I should check out, thanks ahead for any help/advice, and let me know if I should provide more info.

 

Here is my output after using bitbake imx-image-full :

Loading cache: 100% |##############################################################################################################################################| Time: 0:00:00
Loaded 4839 entries from dependency cache.
Parsing recipes: 100% |############################################################################################################################################| Time: 0:00:00
Parsing of 3263 .bb files complete (3261 cached, 2 parsed). 4841 targets, 328 skipped, 4 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mpsolidrun"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.15-kirkstone"
TUNE_FEATURES = "aarch64 armv8a crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:24a3f7b3648185e33133f5d96b184a6cb6524f3d"
meta-oe
meta-multimedia
meta-python = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-freescale = "HEAD:c82d4634e7aba8bc0de73ce1dfc997b630051571"
meta-freescale-3rdparty = "HEAD:5977197340c7a7db17fe3e02a4e014ad997565ae"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"
meta-bsp
meta-sdk
meta-ml
meta-v2x = "HEAD:ca68ab5d25322b51f54564275c84ab8de3c74ea6"
meta-nxp-demo-experience = "HEAD:52eaf8bf42f8eda2917a1c8c046003c8c2c8f629"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang = "HEAD:c728c3f9168c8a4ed05163a51dd48ca1ad8ac21d"
meta-gnome
meta-networking
meta-filesystems = "HEAD:744a4b6eda88b9a9ca1cf0df6e18be384d9054e3"
meta-qt6 = "HEAD:ed785a25d12e365d1054700d4fc94a053176eb14"
meta-virtualization = "HEAD:9482648daf0bb42ff3475e7892542cf99f3b8d48"
meta-hailo-accelerator
meta-hailo-libhailort
meta-hailo-tappas = "HEAD:c093ed15914abd456afd6d81ced6e6b2b77e180e"
meta-solidrun-arm-imx8 = "HEAD:dfd308349adad5e49280b426ce2c8caf9101063f"
meta-arm
meta-arm-toolchain = "HEAD:936c02ec13661bd86a05f7f90e1b920d5092d670"

Initialising tasks: 100% |#########################################################################################################################################| Time: 0:00:07
Sstate summary: Wanted 3859 Local 0 Mirrors 0 Missed 3859 Current 606 (0% match, 13% complete)
NOTE: Executing Tasks
WARNING: less-600-r0 do_fetch: Failed to fetch URL http://www.greenwoodsoftware.com/less/less-600.tar.gz, attempting MIRRORS if available
ERROR: tensorflow-lite-host-tools-native-2.9.1-r0 do_configure: ExecutionError('/home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/temp/run.do_configure.1322828', 1, None, None)
ERROR: Logfile of failure stored in: /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/temp/log.do_configure.1322828
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/ewilliams/imx_kernel_build/sources/poky/meta/recipes-devtools/cmake/cmake-native_3.22.3.bb:do_populate_sysroot', '/home/ewilliams/imx_kernel_build/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/ewilliams/imx_kernel_build/sources/poky/meta/recipes-devtools/ninja/ninja_1.10.2.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['cmake-native', 'quilt-native', 'ninja-native', 're2c-native', 'xz-native', 'zlib-native', 'curl-native', 'ncurses-native', 'bzip2-native', 'zstd-native', 'libtool-native', 'gettext-minimal-native', 'openssl-native', 'texinfo-dummy-native', 'perl-native', 'gdbm-native', 'make-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| -- The C compiler identification is GNU 11.4.0
| -- The CXX compiler identification is GNU 11.4.0
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Check for working C compiler: /home/ewilliams/imx_kernel_build/build/tmp/hosttools/gcc - skipped
| -- Detecting C compile features
| -- Detecting C compile features - done
| -- Detecting CXX compiler ABI info
| -- Detecting CXX compiler ABI info - done
| -- Check for working CXX compiler: /home/ewilliams/imx_kernel_build/build/tmp/hosttools/g++ - skipped
| -- Detecting CXX compile features
| -- Detecting CXX compile features - done
| -- Cloning flatbuffers repository from https://github.com/google/flatbuffers/archive/v1.12.0.tar.gz, found in /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/git/tensorflow/../third_party/flatbuffers/workspace.bzl
| -- flatbuffers_source_dir /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/build/flatbuffers
| -- flatbuffers_binary_dir /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/build/_deps/flatbuffers-build
| -- Looking for strtof_l
| -- Looking for strtof_l - found
| -- Looking for strtoull_l
| -- Looking for strtoull_l - found
| -- Using toolchain file: /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/toolchain.cmake.
| fatal: not a git repository (or any of the parent directories): .git
| -- Cloning https://github.com/protocolbuffers/protobuf...
| -- Configuring incomplete, errors occurred!
| See also "/home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/build/CMakeFiles/CMakeOutput.log".
| [1/9] Creating directories for 'protobuf-populate'
| [1/9] Performing download step (git clone) for 'protobuf-populate'
| Cloning into 'protobuf'...
| fatal: unable to access 'https://github.com/protocolbuffers/protobuf/': error setting certificate file: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
| Cloning into 'protobuf'...
| fatal: unable to access 'https://github.com/protocolbuffers/protobuf/': error setting certificate file: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
| Cloning into 'protobuf'...
| fatal: unable to access 'https://github.com/protocolbuffers/protobuf/': error setting certificate file: /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt
| -- Had to git clone more than once:
| 3 times.
| CMake Error at _deps/protobuf-subbuild/protobuf-populate-prefix/tmp/protobuf-populate-gitclone.cmake:31 (message):
| Failed to clone repository: 'https://github.com/protocolbuffers/protobuf'
|
|
| FAILED: protobuf-populate-prefix/src/protobuf-populate-stamp/protobuf-populate-download /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/build/_deps/protobuf-subbuild/protobuf-populate-prefix/src/protobuf-populate-stamp/protobuf-populate-download
| cd /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/build && /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/recipe-sysroot-native/usr/bin/cmake -P /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/build/_deps/protobuf-subbuild/protobuf-populate-prefix/tmp/protobuf-populate-gitclone.cmake && /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/recipe-sysroot-native/usr/bin/cmake -E touch /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/build/_deps/protobuf-subbuild/protobuf-populate-prefix/src/protobuf-populate-stamp/protobuf-populate-download
| ninja: build stopped: subcommand failed.
|
| CMake Error at /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message):
| Build step for protobuf failed: 1
| Call Stack (most recent call first):
| /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate)
| /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language)
| /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/git/tensorflow/lite/tools/cmake/modules/OverridableFetchContent.cmake:531 (FetchContent_Populate)
| /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/git/tensorflow/lite/tools/cmake/modules/protobuf.cmake:37 (OverridableFetchContent_Populate)
| /home/ewilliams/imx_kernel_build/build/tmp/work/x86_64-linux/tensorflow-lite-host-tools-native/2.9.1-r0/git/tensorflow/lite/tools/cmake/modules/Findprotobuf.cmake:18 (include)
| protobuf/CMakeLists.txt:34 (find_package)
|
|
| WARNING: exit code 1 from a shell command.
ERROR: Task (virtual:native:/home/ewilliams/imx_kernel_build/sources/meta-imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite-host-tools_2.9.1.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2980 tasks of which 2929 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
virtual:native:/home/ewilliams/imx_kernel_build/sources/meta-imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite-host-tools_2.9.1.bb:do_configure
Summary: There was 1 WARNING message.
Summary: There was 1 ERROR message, returning a non-zero exit code.

0 件の賞賛
返信
1 返信

979件の閲覧回数
ewil
Contributor I

Update: 

I attempted to bitbake core-image-minimal to see if I would encounter any similar errors but was able to built it no problem. Is there a possibility i would be able to build imx-image-full without the package that has been giving me errors? Might not be not sure if how many (if any) things are dependent on this specific part. Going to look more into this but if anyone has experience with this or knows any good resources please let me know. Thanks!

0 件の賞賛
返信