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
发送时间: 2025520 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) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_