Building Yocto on AWS container getting ERROR: The postinstall intercept hook 'update_icon_cache' failed, #yocto
Hi All,
I am trying to build Yocto image on aws code buildfor SAMA5D27 from Microchip. Created container.
Able to setup the environment successfully with the dependencies installed on container. At the final step while creating rootfs image i am getting below error.
"ERROR: The postinstall intercept hook 'update_icon_cache' failed,... ERROR:
DEBUG: Python function do_rootfs finished
ERROR: Function failed: do_rootfs
"
Tried couple of options by installing libgdk-pixbuf2.0-0 in container, for bb image script DEPENDS += "qemuwrapper-cross"
However I was able to build Yocto in virtual box ubuntu 16.04.
Please let me know what i have missed..
Regards,
Vijay
Quoted 12 lines · On Mon, Sep 6, 2021 at 1:46 AM <[email protected]> wrote:
Hi All,
I am trying to build Yocto image on aws code buildfor SAMA5D27 from Microchip. Created container.
Able to setup the environment successfully with the dependencies installed on container. At the final step while creating rootfs image i am getting below error."ERROR: The postinstall intercept hook '
update_icon_cache' failed,... ERROR:
DEBUG: Python functiondo_rootfsfinished
ERROR: Function failed:do_rootfs
"
Usually these errors pop up when qemu usermode fails to run the needed programs during cross build.
check the logs thoroughly and see if it leaves traces when executing update_icon_cache of any such issues in executing qemu
Quoted 10 lines
Tried couple of options by installing libgdk-pixbuf2.0-0 in container, for bb image script DEPENDS += "qemuwrapper-cross"
However I was able to build Yocto in virtual box ubuntu 16.04.
Please let me know what i have missed..
Regards,
Vijay
Raj thanks for the response. Couldnt able to find error from the logs..
Attached detailed logs..
It's right there at the very end:
NOTE: Exit code 127. Output:/home/wlsom/YoctoCode/poky/build-microchip/tmp/work/sama5d27_wlsom1_ek_sd-poky-linux-gnueabi/utec-mcdgrill-image/1.0-r0/intercept_scripts-7f1ca27092c337bb8d06dfe7837dad99a9fb3e5e5ff266e8ce34762c23025acb/update_icon_cache:
9:/home/wlsom/YoctoCode/poky/build-microchip/tmp/work/sama5d27_wlsom1_ek_sd-poky-linux-gnueabi/utec-mcdgrill-image/1.0-r0/intercept_scripts-7f1ca27092c337bb8d06dfe7837dad99a9fb3e5e5ff266e8ce34762c23025acb/update_icon_cache:/home/wlsom/YoctoCode/poky/build-microchip/tmp/work/sama5d27_wlsom1_ek_sd-poky-linux-gnueabi/utec-mcdgrill-image/1.0-r0/recipe-sysroot-native//gdk-pixbuf-2.0/gdk-pixbuf-query-loaders:
not found
This isn't easy to diagnose without having access to your build tree, but you can build plain core-image-sato for example and check that the binary does exist there and gets executed, and then untangle where the difference come from.
Alex
Quoted 7 lines · On Wed, 8 Sept 2021 at 06:47, <[email protected]> wrote:
Raj thanks for the response. Couldnt able to find error from the logs..
Attached detailed logs..
For the error, i have tried installed below package in aws container libgdk-pixbuf2.0-0 in container,
and added DEPENDS += "qemuwrapper-cross" in bb file.
Will try the option building "core-image-minimal" or "core-image-sato"
Regards,
Vijay