crops / poky-container

A container image that is able to run bitbake/poky. It has helpers to create users and groups within the container. This is so that the output generated in the container will be readable by the user on the host.
GNU General Public License v2.0
209 stars 95 forks source link

Error installing openssl / building toolchain #66

Open aanntthhoo opened 3 years ago

aanntthhoo commented 3 years ago

Hi all, Bitbake fails when populating the target toolchain into the container (bitbake -c populate_sdk core-image-base). I'm using the docker image crops/poky:ubuntu-18.04, and the repo yocto warrior from nxp 4.19.35. Dnf cannot install openssl-1.1.1b for the sdk (see logs). If I remove it from my local.conf (TOOLCHAIN_HOST_TASK_append = " openssl"), then the task ends well. But I really do need openssl to build my application. My current yocto project used to run fine without the use of docker on an other computer, running Ubuntu 14.04.

bitbake logs :

ERROR: core-image-base-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/sdk/image/etc/dnf/dnf.conf --setopt=reposdir=/workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/sdk/image/etc/yum.repos.d --installroot=/workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/sdk/image --setopt=logdir=/workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/temp --repofrompath=oe-repo,/workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/oe-sdk-repo --nogpgcheck install nativesdk-packagegroup-sdk-host openssl packagegroup-cross-canadian-imx8mm-tac2' returned 1: DNF version: 4.1.0 cachedir: /workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/sdk/image/var/cache/dnf Added oe-repo repo from /workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/oe-sdk-repo repo: using cache for: oe-repo not found other for: not found modules for: not found deltainfo for: not found updateinfo for: oe-repo: using metadata from Wed 08 Sep 2021 10:11:44 AM UTC. Last metadata expiration check: 0:00:01 ago on Wed 08 Sep 2021 10:11:44 AM UTC. No module defaults found --> Starting dependency resolution --> Finished dependency resolution Error: Problem: conflicting requests

ERROR: core-image-base-1.0-r0 do_populate_sdk: ERROR: core-image-base-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk ERROR: Logfile of failure stored in: /workdir/build/tmp/work/imx8mm_tac2-poky-linux/core-image-base/1.0-r0/temp/log.do_populate_sdk.23262 ERROR: Task (/workdir/sources/poky/meta/recipes-core/images/core-image-base.bb:do_populate_sdk) failed with exit code '1'