Skip to contentSkip to conversation

Yocto Project Build Failure at do_rootfs Task

DISCUSSION [email protected] 2 participants 2 messages Nov 1, 2024 – Nov 2, 2024

lore
Share & tools
lore
#0 lore raw

*Description* : I'm working on a Yocto Project ( kirkistone) build for a Toradex Apalis i.MX8 target, creating a custom multimedia image. During the final build stage, specifically at the do_rootfs task, the process fails when trying to install several packages (such as alsa-utils , bluealsa , ffmpeg , etc.).

The error shows repeated instances of a configuration problem with unknown items SYSLOG_SU_ENAB and SYSLOG_SG_ENAB. Additionally, warnings indicate a missing or non-executable shell ( /bin/false ) when running useradd and groupadd commands for certain services (e.g., dbus , rpcbind , systemd ).

Quoted 16 lines

ERROR: Unable to install packages. Command '/home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/opkg.conf
-t /home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/temp/ipktemp/ -o
/home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version   install alsa-utils bash
bluealsa connman connman-client connman-plugin-ethernet
connman-plugin-loopback connman-plugin-wifi coreutils curl ffmpeg gpicview
less makedevs media-files mime-support net-tools opkg
packagegroup-base-extended packagegroup-base-tdx-cli packagegroup-basic
packagegroup-boot packagegroup-core-boot packagegroup-core-weston
packagegroup-fsl-isp packagegroup-machine-tdx-cli packagegroup-tdx-cli

Quoted 10 lines

packagegroup-tdx-graphical packagegroup-tdx-qt5 packagegroup-wifi-fw-tdx-cli packagegroup-wifi-tdx-cli python3-openai python3-pip python3-pyaudio python3-pydub python3-pyttsx3 python3-websockets rsync run-postinsts scooter-dash systemd-analyze timestamp-service udev-extraconf util-linux v4l-utils wayland-qtdemo-launch-cinematicexperience weston-xwayland xterm' returned 255:
Installing media-files (1.2) on root

configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator)
configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator)
useradd: Warning: missing or non-executable shell '/bin/false'
Running useradd commands...
NOTE: dbus: Performing useradd with [--root /home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/rootfs --system --home /var/lib/dbus                              --no-create-home --shell /bin/false                              --user-group messagebus] configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator)
configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator)
useradd: Warning: missing or non-executable shell '/bin/false'
Running useradd commands...
NOTE: rpcbind: Performing useradd with [--root /home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/rootfs --system --no-create-home --home-dir /                        --shell /bin/false --user-group rpc] configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator)
configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator)
useradd: Warning: missing or non-executable shell '/bin/false'
Running useradd commands...
NOTE: systemd: Performing useradd with [--root /home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/rootfs --system -d / -M --shell /sbin/nologin systemd-bus-proxy]
configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator)
configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator)
Running groupadd commands...
NOTE: systemd: Performing groupadd with [--root /home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/rootfs -r render]
configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator)
configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator)
NOTE: systemd: Performing groupadd with [--root /home/rania/pixii_os/pixii_os/build/tmp/work/apalis_imx8-tdx-linux/tdx-reference-multimedia-image/1.0-r0/rootfs -r sgx]
configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator)
configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator)

#1 lore raw

The repeated logs about SYSLOG_SU_ENAB and SYSLOG_SG_ENAB don't fail the build[0]. Somewhere deep in the same logs there should be some extra info about the actual fatal error, that fails your build - grep the spam out.

[0] - these are poorly worded warnings/printouts, AFAICT mostly harmless(TM). In my understanding these messages are a side-effect of 0001-Disable-use-of-syslog-for-sysroot.patch, which is applied on shadow-native in Kirkstone (but in later releases this patch was removed).