PacktPublishing / Mastering-Embedded-Linux-Programming-Third-Edition

Mastering Embedded Linux Programming Third Edition, published by Packt
MIT License
532 stars 151 forks source link

Chapter 7 : do_rootfs: The postinstall intercept hook 'update_font_cache' failed #66

Closed MohamedSa3eed closed 10 months ago

MohamedSa3eed commented 10 months ago

can you help me with this issue

I am trying to build a yocto image for raspberrypi3 and i got this when typing bitbake rpi-test-image :

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

Loaded 3302 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 = "aarch64-poky-linux"

MACHINE = "raspberrypi3-64"

DISTRO = "poky"

DISTRO_VERSION = "3.1.28"

TUNE_FEATURES = "aarch64 cortexa53 crc"

TARGET_FPU = ""

meta

meta-poky

meta-yocto-bsp = "dunfell:f980ef9fec58217b4b743c0ee103d5957894676a"

meta-oe

meta-python

meta-networking

meta-multimedia = "dunfell:e42d1e758f9f08b98c0e8c6f0532316951bb276f"

meta-raspberrypi = "dunfell:2081e1bb9a44025db7297bfd5d024977d42191ed"

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

Sstate summary: Wanted 3 Found 0 Missed 3 Current 1810 (0% match, 99% complete)

NOTE: Executing Tasks

ERROR: rpi-test-image-1.0-r0 do_rootfs: The postinstall intercept hook 'update_font_cache' failed, details in /home/sa3ed/yocto/test/build-rpi/tmp/work/raspberrypi3_64-poky-linux/rpi-test-image/1.0-r0/temp/log.do_rootfs

ERROR: Logfile of failure stored in: /home/sa3ed/yocto/test/build-rpi/tmp/work/raspberrypi3_64-poky-linux/rpi-test-image/1.0-r0/temp/log.do_rootfs.2996

ERROR: Task (/home/sa3ed/yocto/test/meta-raspberrypi/recipes-core/images/rpi-test-image.bb:do_rootfs) failed with exit code '1'

NOTE: Tasks Summary: Attempted 4609 tasks of which 4608 didn't need to be rerun and 1 failed.

Summary: 1 task failed:

/home/sa3ed/yocto/test/meta-raspberrypi/recipes-core/images/rpi-test-image.bb:do_rootfs

Summary: There was 1 ERROR message shown, returning a non-zero exit code.
fvasquez commented 10 months ago

@MohamedSa3eed are you running bitbake as root? I assume you are not.

Maybe log.do_rootfs has some clues as to why this error is occurring.

fvasquez commented 10 months ago

Closing this issue since the Raspberry Pi 3 is not one of the targets supported by the book.

MohamedSa3eed commented 8 months ago

I was running bitbake on a virtual machine because my distribution isn't supported by Yocto. I switched to using Docker instead, and now everything works fine.

fvasquez commented 8 months ago

I was running bitbake on a virtual machine because my distribution isn't supported by Yocto. I switched to using Docker instead, and now everything works fine.

Lots of things won't work when running on a distribution that isn't supported by Yocto.