On 09/12/2020 10.13, John Paul Adrian Glaubitz wrote: > Public bug reported: > > Trying to build QEMU on sparc64 fails with: [...] > /usr/bin/ld: libqemu-ppc64-softmmu.fa.p/hw_ppc_spapr_hcall.c.o: in function > `h_update_dt': > ./b/qemu/../../hw/ppc/spapr_hcall.c:1966: undefined reference to > `fdt_check_full' > collect2: error: ld returned 1 exit status > > Full build log available at: > https://buildd.debian.org/status/fetch.php?pkg=qemu&arch=sparc64&ver=1%3A5.2%2Bdfsg-1&stamp=1607502300&raw=0
Looking at the build log, it seems like your system libfdt is version 1.4.6. However, that fdt_check_full function is only properly available with version >= 1.5.1, if I get that right. As a workaround, you could try to run the configure script with --enable-fdt=git (or of course update your system version to 1.5.1 if somehow possible). But anyway, this also means that the check in the QEMU build system is likely wrong. But it's weird, I can see that we explicitely test for fdt_check_full() in the meson.build script, so no clue what's going wrong here. David, do you have an idea? Thomas