Skip to main content
Visitor II
November 29, 2020
Question

ERROR: st-image-resize-initrd-1.0-r0 do_rootfs: The postinstall intercept hook 'update_font_cache' failed

  • November 29, 2020
  • 2 replies
  • 2440 views

HI,all,

env:virtualbox, ubuntu18.04 64bits, 10G memory,500G disk.

I tried to build rootfs image from stm32 Yocto prject, followed by wiki(https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package).

but I got some error at last like below.

I am a newer for YOCTO, what can I do next? any idea?

Thanks a lot.

error log:

ERROR: st-image-resize-initrd-1.0-r0 do_rootfs: The postinstall intercept hook 'update_font_cache' failed, details in /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs

ERROR: Logfile of failure stored in: /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs.11363

ERROR: Task (/media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb:do_rootfs) failed with exit code '1'

    This topic has been closed for replies.

    2 replies

    ST Employee
    November 30, 2020

    Hi @LKevi.1​ ,

    Did you have this error after executing bitbake st-image-weston ?

    Could you please share the logfile of failure (log.do_rootfs.11363) ?

    BR,

    Christophe

    LKevi.1Author
    Visitor II
    November 30, 2020

    Hi, Christophe Guibout:

    Yes, I got this error after executing bitbake st-image-weston, like below log, and the detail log as attach

    Thanks for your reply!

    $ bitbake st-image-weston

    NOTE: Started PRServer with DBfile: /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 36013, PID: 21361

    Loading cache: 100% |###########################################################################################| Time: 0:00:03

    Loaded 3743 entries from dependency cache.

    NOTE: Resolving any missing task queue dependencies

    Build Configuration:

    BB_VERSION      = "1.46.0"

    BUILD_SYS      = "x86_64-linux"

    NATIVELSBSTRING   = "universal"

    TARGET_SYS      = "arm-ostl-linux-gnueabi"

    MACHINE       = "stm32mp1"

    DISTRO        = "openstlinux-weston"

    DISTRO_VERSION    = "3.1-snapshot-20201130"

    TUNE_FEATURES    = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"

    TARGET_FPU      = "hard"

    DISTRO_CODENAME   = "dunfell"

    ACCEPT_EULA_stm32mp1 = "1"

    GCCVERSION      = "9.%"

    PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"

    meta-python      

    meta-oe        

    meta-gnome      

    meta-initramfs    

    meta-multimedia    

    meta-networking    

    meta-webserver    

    meta-filesystems   

    meta-perl      = "HEAD:144077083457ccb75700777d5e6b1da9aaff01aa"

    meta-st-stm32mp   = "HEAD:955b1d9a5f706013d718687b1afa6e3022c68fac"

    meta-qt5       = "HEAD:fdd19517e17240b0b61765bd02fc483a1bde986f"

    meta-st-openstlinux = "HEAD:9160c08dfcd0b7ec0eb8f1fd96672695b09680d5"

    meta         = "HEAD:b39bda4cc62db12c0edfbe489d5a7f5988ede6a9"

    Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:14

    Sstate summary: Wanted 415 Found 398 Missed 17 Current 2904 (95% match, 99% complete)

    NOTE: Executing Tasks

    ERROR: st-image-resize-initrd-1.0-r0 do_rootfs: The postinstall intercept hook 'update_font_cache' failed, details in /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs

    ERROR: Logfile of failure stored in: /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-resize-initrd/1.0-r0/temp/log.do_rootfs.21480

    ERROR: Task (/media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb:do_rootfs) failed with exit code '1'

    Waiting for 3 running tasks to finish:

    ERROR: st-image-userfs-1.0-r0 do_rootfs: The postinstall intercept hook 'update_gtk_immodules_cache' failed, details in /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-userfs/1.0-r0/temp/log.do_rootfs

    ERROR: Logfile of failure stored in: /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-userfs/1.0-r0/temp/log.do_rootfs.21635

    ERROR: Task (/media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/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 /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-weston/1.0-r0/temp/log.do_rootfs

    ERROR: Logfile of failure stored in: /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-weston/1.0-r0/temp/log.do_rootfs.21723

    ERROR: Task (/media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb:do_rootfs) failed with exit code '1'

    ERROR: st-image-vendorfs-1.0-r0 do_rootfs: The postinstall intercept hook 'update_font_cache' failed, details in /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-vendorfs/1.0-r0/temp/log.do_rootfs

    ERROR: Logfile of failure stored in: /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-vendorfs/1.0-r0/temp/log.do_rootfs.21645

    ERROR: Task (/media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-vendorfs.bb:do_rootfs) failed with exit code '1'

    NOTE: Tasks Summary: Attempted 9046 tasks of which 9031 didn't need to be rerun and 4 failed.

    NOTE: Writing buildhistory

    NOTE: Writing buildhistory took: 20 seconds

    Summary: 4 tasks failed:

     /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb:do_rootfs

     /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-userfs.bb:do_rootfs

     /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-weston.bb:do_rootfs

     /media/kevin/D2/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-st/meta-st-stm32mp/recipes-st/images/st-image-vendorfs.bb:do_rootfs

    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

    ST Employee
    December 1, 2020

    HI @LKevi.1​ ,

    Unfortunately, the logs don't give more information.

    I would recommand to restart the compilation : bitbake st-image-weston -c cleansstate && bitbake st-image-weston

    If it still doesn't work, you can cleanup a bit more : bitbake st-image-weston -c cleanall && bitbake st-image-weston

    BR,

    Christophe