yocto imx8qmmek python3 failed to build these modules: _sqlite3

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

yocto imx8qmmek python3 failed to build these modules: _sqlite3

917 Views
imx_proc_user
Contributor I

Sstate summary: Wanted 217 Local 0 Mirrors 0 Missed 217 Current 1896 (0% match, 89% complete)
NOTE: Executing Tasks
ERROR: python3-3.10.6-r0 do_install: ExecutionError('/work/yocto/build/tmp/work/cortexa57-poky-linux/python3/3.10.6-r0/temp/run.do_install.2318615', 1, None, None)
ERROR: Logfile of failure stored in: /work/yocto/build/tmp/work/cortexa57-poky-linux/python3/3.10.6-r0/temp/log.do_install.2318615
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/work/yocto/poky/meta/recipes-connectivity/openssl/openssl_3.0.8.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-core/glibc/glibc_2.36.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-core/libxcrypt/libxcrypt_4.4.30.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-core/readline/readline_8.1.2.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-core/util-linux/util-linux-libuuid_2.38.1.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-core/zlib/zlib_1.2.13.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_12.2.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-devtools/gcc/gcc-runtime_12.2.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-devtools/libtool/libtool-cross_2.4.7.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-devtools/libtool/libtool-native_2.4.7.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.5.0.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-extended/bzip2/bzip2_1.0.8.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-extended/libnsl/libnsl2_git.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-extended/libtirpc/libtirpc_1.3.3.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-extended/xz/xz_5.2.6.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-support/gdbm/gdbm_1.23.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-support/libffi/libffi_3.4.4.bb:do_populate_sysroot', '/work/yocto/poky/meta/recipes-support/sqlite/sqlite3_3.39.3.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-devtools/autoconf-archive/autoconf-archive_2022.09.03.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-devtools/autoconf/autoconf_2.71.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-devtools/automake/automake_1.16.5.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-devtools/python/python3_3.10.6.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-extended/bzip2/bzip2_1.0.8.bb:do_populate_sysroot', 'virtual:native:/work/yocto/poky/meta/recipes-extended/xz/xz_5.2.6.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['openssl', 'glibc', 'libxcrypt', 'ncurses', 'readline', 'util-linux-libuuid', 'zlib', 'gcc-cross-aarch64', 'gcc-runtime', 'libtool-cross', 'libtool-native', 'opkg-utils', 'quilt-native', 'bzip2', 'libnsl2', 'libtirpc', 'xz', 'gdbm', 'libffi', 'sqlite3', 'autoconf-archive-native', 'autoconf-native', 'automake-native', 'patch-native', 'pkgconfig-native', 'pseudo-native', 'python3-native', 'bzip2-native', 'xz-native', 'gnu-config-native', 'm4-native', 'texinfo-dummy-native', 'binutils-cross-aarch64', 'zstd-native', 'gmp-native', 'flex-native', 'mpfr-native', 'zlib-native', 'libmpc-native', 'linux-libc-headers', 'libtirpc-native', 'libnsl2-native', 'sqlite3-native', 'ncurses-native', 'gdbm-native', 'libffi-native', 'readline-native', 'openssl-native', 'util-linux-libuuid-native', 'attr-native', 'libgcc', 'gettext-minimal-native', 'perl-native', 'make-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_install
| Failed to build these modules:
| _sqlite3
| WARNING: exit code 1 from a shell command.
ERROR: Task (/work/yocto/poky/meta/recipes-devtools/python/python3_3.10.6.bb:do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4837 tasks of which 4836 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/work/yocto/poky/meta/recipes-devtools/python/python3_3.10.6.bb:do_install
Summary: There was 1 ERROR message, returning a non-zero exit code.

I switched between python 3.8 and 3.10, results are same.

Any package missed at host ?

Thanks

 

0 Kudos
Reply
1 Reply

871 Views
brian14
NXP TechSupport
NXP TechSupport

Hi @imx_proc_user

Yes, the error can be related to a missed package on your host.

Please try with the following packages described on Yocto Project User Guide:

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio pylint3 xterm rsync curl zstd pzstd xz-utils python python3 python3-pip python3-pexpect python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev debianutils iputils-ping zstd liblz4-tool libssl-dev

If this doesn't work, help me by sharing the log file created by Yocto. For example, on your shared error Yocto give the path to find the log.

"State summary: Wanted 217 Local 0 Mirrors 0 Missed 217 Current 1896 (0% match, 89% complete)
NOTE: Executing Tasks
ERROR: python3-3.10.6-r0 do_install: ExecutionError('/work/yocto/build/tmp/work/cortexa57-poky-linux/python3/3.10.6-r0/temp/run.do_install.2318615', 1, None, None)
ERROR: Logfile of failure stored in: /work/yocto/build/tmp/work/cortexa57-poky-linux/python3/3.10.6-r0/temp/log.do_install.2318615"

Have a great day!

0 Kudos
Reply