hw/ppc/vof.c:1033: undefined reference to `fdt_get_max_phandle' in qemu-6.1.1, qemu-6.2.0

Host environment

  • Operating system: Funtoo Linux 1.4

  • OS/kernel version: Linux eb1 5.15.5_p2-debian-sources #1 SMP Mon Dec 27 07:27:59 EST 2021 x86_64 Intel(R) Core(TM) i7-3840QM CPU @ 2.80GHz GenuineIntel GNU/Linux

  • Architecture: x86_64

  • QEMU flavor: n/a

  • QEMU version: 6.2.0, 6.1.1

  • QEMU command line: n/a

Emulated/Virtualized environment

  • Operating system: n/a
  • OS/kernel version: n/a
  • Architecture: n/a

Description of problem

Compilation of the source code of 6.1.1 and 6.2.0 fails in the qemu-system-ppc target ath the linking stage. Specifically the error in both cases is usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libqemu-ppc-softmmu.fa.p/hw_ppc_vof.c.o: in function vof_build_dt': /home/silviu/qemu-work/qemu-6.1.1/build/../hw/ppc/vof.c:1033: undefined reference to fdt_get_max_phandle'

(same error for 6.2.0)

This system has qemu-5.2.0 installed, which is the default for Funtoo currently. There were no compilation errors with 5.2.0. gcc is version 9.2.0

Steps to reproduce

  1. download qemu-6.1.1.tar.xz/qemu-6.2.0.tar.xz and uncompress
  2. configure
  3. makeerror.txt

Additional information

the final part of the build log attached as text