2019-03-05 04:00 AM
I've build a docker container to run bitbake on it. I took as base this dockerfile https://hub.docker.com/r/gmacario/build-yocto/dockerfile and replaced
On the docker container, I set up default environment, "DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh". After running "bitbake st-image-weston", everything builds except for do_rootfs steps for st-image related recipes:
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 3526 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-openstlinux_weston-linux-gnueabi"
MACHINE = "stm32mp1"
DISTRO = "openstlinux-weston"
DISTRO_VERSION = "2.6-snapshot-20190305"
TUNE_FEATURES = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard cortexa7"
TARGET_FPU = "hard"
DISTRO_CODENAME = "thud"
ACCEPT_EULA_stm32mp1 = "1"
GCCVERSION = "8.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"
meta-oe
meta-gnome
meta-xfce
meta-initramfs
meta-multimedia
meta-networking
meta-webserver
meta-filesystems
meta-perl
meta-python = "HEAD:f1511d254632a34c1deb51f4bf8b8c21e7423f51"
meta-st-stm32mp = "HEAD:dcc955d6992cc46ce07440caaa5a17942776bbe6"
meta-qt5 = "HEAD:fd1f0f47312e7ee80e5ca65b8b2992cb068b1656"
meta-st-openstlinux = "HEAD:4e36cf0c7c7bdb24700a990f73afcda84cdcf0cf"
meta = "HEAD:f0394e80a37f1da47042a1aa0487594f390603f9"
Initialising tasks: 100% |#######################################| Time: 0:00:06
Sstate summary: Wanted 441 Found 433 Missed 8 Current 3020 (98% match, 99% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: st-image-vendorfs-1.0-r0 do_rootfs: The postinstall intercept hook 'update_icon_cache' failed, details in /repo/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-openstlinux_weston-linux-gnueabi/st-image-vendorfs/1.0-r0/temp/log.do_rootfs
ERROR: st-image-vendorfs-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /repo/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-openstlinux_weston-linux-gnueabi/st-image-vendorfs/1.0-r0/temp/log.do_rootfs.418
ERROR: Task (/repo/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-vendorfs.bb:do_rootfs) failed with exit code '1'
ERROR: st-image-bootfs-1.0-r0 do_rootfs: The postinstall intercept hook 'update_icon_cache' failed, details in /repo/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-openstlinux_weston-linux-gnueabi/st-image-bootfs/1.0-r0/temp/log.do_rootfs
ERROR: st-image-bootfs-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /repo/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-openstlinux_weston-linux-gnueabi/st-image-bootfs/1.0-r0/temp/log.do_rootfs.424
ERROR: Task (/repo/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-bootfs.bb:do_rootfs) failed with exit code '1'
ERROR: st-image-userfs-1.0-r0 do_rootfs: The postinstall intercept hook 'update_gtk_immodules_cache' failed, details in /repo/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-openstlinux_weston-linux-gnueabi/st-image-userfs/1.0-r0/temp/log.do_rootfs
ERROR: st-image-userfs-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /repo/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-openstlinux_weston-linux-gnueabi/st-image-userfs/1.0-r0/temp/log.do_rootfs.421
ERROR: Task (/repo/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-userfs.bb:do_rootfs) failed with exit code '1'
ERROR: st-image-weston-1.0-r0 do_rootfs: The postinstall intercept hook 'update_gtk_immodules_cache' failed, details in /repo/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-openstlinux_weston-linux-gnueabi/st-image-weston/1.0-r0/temp/log.do_rootfs
ERROR: st-image-weston-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /repo/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-openstlinux_weston-linux-gnueabi/st-image-weston/1.0-r0/temp/log.do_rootfs.433
ERROR: Task (/repo/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 9289 tasks of which 9285 didn't need to be rerun and 4 failed.
NOTE: Writing buildhistory
Summary: 4 tasks failed:
/repo/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-vendorfs.bb:do_rootfs
/repo/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-bootfs.bb:do_rootfs
/repo/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-userfs.bb:do_rootfs
/repo/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb:do_rootfs
Summary: There were 8 ERROR messages shown, returning a non-zero exit code.
I've found similar issues pointing to missing qemuwrapper-cross missing for the image (https://lists.yoctoproject.org/pipermail/yocto/2017-August/037344.html), but that it's already included in the recipes
$ bitbake-layers show-cross-depends | grep st-image-weston
meta-st-openstlinux/recipes-st/images/st-image-weston.bb DEPENDS meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb
meta-st-openstlinux/recipes-st/images/st-image-weston.bb DEPENDS meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb
meta-st-openstlinux/recipes-st/images/st-image-weston.bb DEPENDS meta/recipes-core/glibc/cross-localedef-native_2.28.bb
meta-st-openstlinux/recipes-st/images/st-image-weston.bb RDEPENDS meta/recipes-core/packagegroups/packagegroup-core-boot.bb
...
Any ideas how could this be fixed ?
Solved! Go to Solution.
2019-03-22 09:28 AM
Could you please try installing these packages in your Docker 18.04 image:
$> sudo apt-get update
$> sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping libsdl1.2-dev xterm make xsltproc docbook-utils fop dblatex xmlto python-git libxml2-utils language-pack-en live-build rsync
2019-03-22 09:28 AM
Could you please try installing these packages in your Docker 18.04 image:
$> sudo apt-get update
$> sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping libsdl1.2-dev xterm make xsltproc docbook-utils fop dblatex xmlto python-git libxml2-utils language-pack-en live-build rsync
2019-10-02 03:28 AM
Hello,
could you please post your resulting dockerfile and tell if it finally succeeded...
A repository with a working docker configuration on https://github.com/STMicroelectronics would be very nice.
ups found it: https://github.com/kbumsik/docker-build-yocto.git