[BUILDSYSTEM] cant create working upgrade .tar file for RPi4 with gentoo linux

  • This may be gentoo related and I can not figure out what is going wrong:

    The Bildsystem with PROJECT=RPi DEVICE=RPi4 ARCH=aach64 make runs through but the resulting binary wont boot.

    A journalctl reaveals it is spamming lines like this:


    It looks like the compiler produces x86-64 code or tries linking the x86-64 libc.so.6 Does someone have an idea how to fix this?

  • Dissecting the SYSTEM file from a broken and a working .tar file reveals:

    file usr/lib/systemd/systemd

    LibreELEC-RPi4.aarch64-13.0-devel-20250803115117-88c8e3c
    systemd: ELF 64-bit LSB executable, no machine, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 6.12.0, stripped

    LibreELEC-RPi4.aarch64-13.0-devel-20250628054217-b3719f8
    systemd: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 6.12.0, stripped

    notice: "no machine" versus "ARM aarch64"

    The same is true for these .so files in usr/lib: no  machine