compulab-yokneam / meta-bsp-imx8mp

13 stars 14 forks source link

Build process fails with error code 1 #3

Closed kremerf closed 2 years ago

kremerf commented 2 years ago

I am trying to build the hardknott-5.10.72-2.2.0 version. All packages install with one exception: tensorflow-lite 2.6.0. Do you have the same problem?

| Protobuf library: /workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot/usr/lib/libprotobuf.so.20.0.2
| -- Configuring done
| CMake Error: CMake can not determine linker language for target: ruy
| -- Generating done
| CMake Warning:
|   Manually-specified variables were not used by the project:
| 
|     LIB_SUFFIX
|     Python3_EXECUTABLE
|     Python_EXECUTABLE
| 
| 
| CMake Generate step failed.  Build files cannot be regenerated correctly.
| WARNING: /workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/temp/run.do_configure.26681:174 exit 1 from 'cmake -G 'Ninja' -DCMAKE_MAKE_PROGRAM=ninja $oecmake_sitefile /workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/git -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=bin -DCMAKE_INSTALL_SBINDIR:PATH=sbin -DCMAKE_INSTALL_LIBEXECDIR:PATH=libexec -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=../com -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_INSTALL_INCLUDEDIR:PATH=include -DCMAKE_INSTALL_DATAROOTDIR:PATH=share -DPYTHON_EXECUTABLE:PATH=/workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 -DPython_EXECUTABLE:PATH=/workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 -DPython3_EXECUTABLE:PATH=/workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3 -DLIB_SUFFIX= -DCMAKE_INSTALL_SO_NO_EXE=0 -DCMAKE_TOOLCHAIN_FILE=/workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/toolchain.cmake -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_SYSROOT=/workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot -DTFLITE_BUILD_EVALTOOLS=on -DTFLITE_BUILD_SHARED_LIB=on -DTFLITE_ENABLE_NNAPI=on -DTFLITE_ENABLE_NNAPI_VERBOSE_VALIDATION=on -DTFLITE_ENABLE_RUY=on -DTFLITE_ENABLE_XNNPACK=on -DTFLITE_PYTHON_WRAPPER_BUILD_CMAKE2=on -DTFLITE_ENABLE_EXTERNAL_DELEGATE=on /workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/git/tensorflow/lite/ -Wno-dev'
| WARNING: Backtrace (BB generated script):
|       #1: cmake_do_configure, /workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/temp/run.do_configure.26681, line 174
|       #2: do_configure, /workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/temp/run.do_configure.26681, line 153
|       #3: main, /workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/temp/run.do_configure.26681, line 209
| ERROR: Execution of '/workspace-vol/test_workspace/compulab-bsp/build-ucm-imx8m-plus/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/temp/run.do_configure.26681' failed with exit code 1
ERROR: Task (/workspace-vol/test_workspace/compulab-bsp/sources/meta-imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.6.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 11437 tasks of which 11436 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /workspace-vol/test_workspace/compulab-bsp/sources/meta-imx/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.6.0.bb:do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

I am using the imx-image-full as described in your readme, the iMX8M-Plus board (ucm) and ubuntu 20.04 as the build-system.

aainka commented 2 years ago

I got bellow error, please let me know reason ?

ERROR: deepview-rt-2.4.25-aarch64-r0 do_package_qa: QA Issue: /usr/lib/python3.9/site-packages/bin/deepview-modelclient contained in package deepview-rt requires /tmp/imx8mp/work/cortexa53-crypto-mx8mp-poky-linux/deepview-rt/2.4.25-aarch64-r0/recipe-sysroot-native/usr/bin/nativepython3, but no providers found in RDEPENDS_deepview-rt? [file-rdeps] ERROR: deepview-rt-2.4.25-aarch64-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. ERROR: Logfile of failure stored in: /tmp/imx8mp/work/cortexa53-crypto-mx8mp-poky-linux/deepview-rt/2.4.25-aarch64-r0/temp/log.do_package_qa.734871 ERROR: Task (/content/compulab-bsp/sources/meta-imx/meta-ml/recipes-libraries/deepview-rt/deepview-rt_2.4.25-aarch64.bb:do_package_qa) failed with exit code '1' NOTE: Tasks Summary: Attempted 10949 tasks of which 10948 didn't need to be rerun and 1 failed.

kremerf commented 2 years ago

Not the most satisfying solution, but I uninstalled Docker and deleted every .vhdx file (If you use WSLv2 on Windows). Installed it again, used the same Dockerfile and built just the Tensorflow-Package. This one worked, built the other packages after that and that worked, too.. Not sure what the error was, as multiple times before, deleting the build-data and redoing the same did no change at all..

do_package_qa: QA run found fatal errors. Please consider fixing them. seems to be the clue for your problem, but I am not familiar with that one.