It can build successfully when I add IoLib, is this the correct fix ? --- a/OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.inf +++ b/OvmfPkg/VirtMmCommunicationDxe/VirtMmCommunication.inf @@ -39,6 +39,7 @@ DebugLib DxeServicesTableLib HobLib + IoLib MemoryAllocationLib UefiDriverEntryPoint Best Regards LiminWang 发件人: wanglimin 发送时间: 2025年5月20日 10:10 收件人: devel@edk2.groups.io 主题: RELEASE build error with QEMU_PV_VARS Hello, I met undefined reference to `MmioWrite32' error when building AARCH64 with -D QEMU_PV_VARS=TRUE on RELEASE mode, build -n 128 -p ArmVirtPkg/ArmVirtQemu.dsc -a AARCH64 -b RELEASE -D QEMU_PV_VARS=TRUE -t GCC5 … OvmfPkg/VirtMmCommunicationDxe/QemuMmio.c:159: undefined reference to `MmioWrite32' OvmfPkg/VirtMmCommunicationDxe/QemuMmio.c:161: undefined reference to `MmioRead32' …. It is built successfully without the option QEMU_PV_VARS, or build with DEBUG mode. Not sure if I am missing anything? Best Regards Limin Wang. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#121352): https://edk2.groups.io/g/devel/message/121352 Mute This Topic: https://groups.io/mt/113204735/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-