yocto :failed to build Machine Learning for linux 5.10.9 imx8qxpC0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

yocto :failed to build Machine Learning for linux 5.10.9 imx8qxpC0

4,120 Views
jackey267
Contributor II

hello team : 

1 Target: try to add machine learning features into yocto bsp for imx8qxpC0 but failed: 

1.2 Used cmds: 

$ DISTRO=fsl-imx-xwayland MACHINE=imx8qxpc0mek source imx-setup-release.sh -b build-full

$ bitbake imx-image-full

CMake Error: Generator: execution of make failed. Make command was: ninja -v -j 12 install &&
WARNING: exit code 1 from a shell command.
ERROR: Execution of '/home/zsh/project/imx/build-full/tmp/work/cortexa35-mx8-poky-linux/opencv/4.4.0.imx-r0/temp/run.do_install.343759' failed with exit code 1:
abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
Child aborted
CMake Error: Generator: execution of make failed. Make command was: ninja -v -j 12 install &&
WARNING: exit code 1 from a shell command.

2 Linux kernel  reference document version :5.10.9.1.0.0 

3 The follow three lines had been added into local.conf which copied from i.MX Yocto Project User's Guide: 

3.1 5.6.7 NXP eIQ TM machine learning:

3.1.1 IMAGE_INSTALL_append = "packagegroup-imx-ml"

3.1.2 TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev armnn-dev onnxruntime-dev"

3.1.3 PACKAGECONFIG_append_pn-opencv_mx8 += " test"

4 After deleted that 3 lines ,the yocto can be build successful as early phase. 

NOTE: Tasks Summary: Attempted 9847 tasks of which 9847 didn't need to be rerun and all succeeded.

5 Could you help me figure out what happened? 

thanks. 

 

0 Kudos
Reply
7 Replies

4,114 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The document has some errors, you should remove 'tensorflow-lite-staticdev'

0 Kudos
Reply

4,108 Views
jackey267
Contributor II

jackey267_0-1639729968028.png

hello team:

1 another 2 lines has been deleted but keep  PACKAGECONFIG_append_pn-opencv_mx8 += " test"

1.1 the error info were the same as before:

CMake Error: Generator: execution of make failed. Make command was: ninja -v -j 12 install &&
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/zsh/project/imx/build-full/tmp/work/cortexa35-mx8-poky-linux/opencv/4.4.0.imx-r0/temp/run.do_install.25878' failed with exit code 1:
| abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
| Child aborted
| CMake Error: Generator: execution of make failed. Make command was: ninja -v -j 12 install &&
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/zsh/project/imx/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.4.0.imx.bb:do_install) failed with exit code '1'

 

thanks 

0 Kudos
Reply

4,101 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

PACKAGECONFIG_append_pn-opencv_mx8 += " tests"

0 Kudos
Reply

4,085 Views
jackey267
Contributor II

hi team : 

1 that didn't work .

2 error msg: 

| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/zsh/project/imx/build-full/tmp/work/cortexa35-mx8-poky-linux/opencv/4.4.0.imx-r0/temp/run.do_install.81941' failed with exit code 1:
| abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
| Child aborted
| CMake Error: Generator: execution of make failed. Make command was: ninja -v -j 1 install &&
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/zsh/project/imx/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.4.0.imx.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4996 tasks of which 4995 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/zsh/project/imx/sources/meta-imx/meta-bsp/recipes-support/opencv/opencv_4.4.0.imx.bb:do_install

 

 

 

3 the follow lines are  our local.conf file 

MACHINE ??= 'imx8qxpc0mek'

DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"

BB_NUMBER_THREADS ='1'
PARALLEL_MAKE ='-j 1'
PACKAGECONFIG_append_pn-opencv_mx8 += " tests"

 

thanks 

 

 

0 Kudos
Reply

4,081 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport
MACHINE ??= 'imx8qxpc0mek'

DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"

BB_NUMBER_THREADS ='1'
PARALLEL_MAKE ='-j 1'
IMAGE_INSTALL_append = "packagegroup-imx-ml"
TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-dev armnn-dev onnxruntime-dev"
PACKAGECONFIG_append_pn-opencv_mx8 += " tests tests-imx"
0 Kudos
Reply

4,064 Views
jackey267
Contributor II

hi team:

1 there were 2 warnings before compiling and 1errors after built .


WARNING: opencv-4.4.0.imx-r0 do_configure: QA Issue: opencv: invalid PACKAGECONFIG: tests [invalid-packageconfig]
WARNING: opencv-4.4.0.imx-r0 do_configure: QA Issue: opencv: invalid PACKAGECONFIG: tests-imx [invalid-packageconfig]

 

ERROR: opencv-4.4.0.imx-r0 do_install: Execution of '/home/zsh/project/imx/build-full/tmp/work/cortexa35-mx8-poky-linux/opencv/4.4.0.imx-r0/temp/run.do_install.122674' failed with exit code 1:
abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
Child aborted
CMake Error: Generator: execution of make failed. Make command was: ninja -v -j 1 install &&
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/zsh/project/imx/build-full/tmp/work/cortexa35-mx8-poky-linux/opencv/4.4.0.imx-r0/temp/log.do_install.122674
Log data follows:

thanks

0 Kudos
Reply

4,049 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You can try L5.10.52/72,this two versions i tried has no issue.

0 Kudos
Reply