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:
Code
Jul 17 13:58:26 amd systemd[1]: Created slice Slice /system/systemd-coredump.
Jul 17 13:58:26 amd systemd[1]: Started Process Core Dump (PID 25228/UID 0).
Jul 17 13:58:26 amd systemd-coredump[25229]: [🡕] Process 25227 (conftest) of user 1000 dumped core.
Module /local/src/LibreELEC.tv/build.LibreELEC-RPi4.aarch64-13.0-devel/build/bison-3.8.2/.x86_64-pc-linux-gnu/conftest without build-id.
Module ld-linux-x86-64.so.2 without build-id.
Module libc.so.6 without build-id.
Stack trace of thread 25227:
#0 0x00007f069053adbc n/a (libc.so.6 + 0x95dbc)
#1 0x00007f06904e28e6 raise (libc.so.6 + 0x3d8e6)
#2 0x00007f06904ca34b abort (libc.so.6 + 0x2534b)
#3 0x00007f06904cb516 n/a (libc.so.6 + 0x26516)
#4 0x00007f069052e70b __libc_fatal (libc.so.6 + 0x8970b)
#5 0x00007f0690508e23 n/a (libc.so.6 + 0x63e23)
#6 0x00007f06905264f3 n/a (libc.so.6 + 0x814f3)
#7 0x00007f06905c7fb9 __sprintf_chk (libc.so.6 + 0x122fb9)
#8 0x00005618d71e00e1 main (/local/src/LibreELEC.tv/build.LibreELEC-RPi4.aarch64-13.0-devel/build/bison-3.8.2/.x86_64-pc-linux-gnu/conftest + 0x10e1)
#9 0x00007f06904cc4ae n/a (libc.so.6 + 0x274ae)
#10 0x00007f06904cc569 __libc_start_main (libc.so.6 + 0x27569)
#11 0x00005618d71e0155 _start (/local/src/LibreELEC.tv/build.LibreELEC-RPi4.aarch64-13.0-devel/build/bison-3.8.2/.x86_64-pc-linux-gnu/conftest + 0x1155)
ELF object binary architecture: AMD x86-64
Jul 17 13:58:26 amd systemd[1]: [email protected]: Deactivated successfully.
Display More
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?