Hi Rebecca,

That does indeed look like a bug for toolchains that prepend the underscore.
Our GSoC student already caught that bug and he's going to submit a patch as soon as possible to fix it.
Mind waiting a few hours? This is a really nice way for him to learn the ropes WRT edk2 patches :)

On Wed, May 25, 2022 at 5:56 PM Rebecca Cran <quic_rcran@quicinc.com> wrote:
I noticed OvmfPkg/OvmfPkgX64.dsc doesn't build with `-t XCODE5` (with
Apple clang 12.0.5)) with the latest edk2 master
(07c0c2eb0a5970db614ebce1060fc79d6904bdfd).


GenSec -s EFI_SECTION_VERSION -n 1.0 -o
/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/FV/Ffs/BDCE85BB-FBAA-4f4e-9264-501A2C249581S3SaveStateDxe/BDCE85BB-FBAA-4f4e-9264-501A2C249581SEC4.ver
Building ...
/Users/bcran/src/uefi/edk2/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
[X64]
/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/X64/OvmfPkg/TdxDxe/TdxDxe/OUTPUT/X64/ApRunLoop.iii:86:
error: symbol `_AsmRelocateApMailBoxLoopStart' not defined
make: ***
[/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/X64/OvmfPkg/TdxDxe/TdxDxe/OUTPUT/X64/ApRunLoop.obj]
Error 1


build.py...
  : error 7000: Failed to execute command
     make tbuild
[/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/X64/OvmfPkg/TdxDxe/TdxDxe]


build.py...
  : error 7000: Failed to execute command
     make tbuild
[/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/X64/CryptoPkg/Library/OpensslLib/OpensslLibCrypto]


build.py...
  : error F002: Failed to build module
     /Users/bcran/src/uefi/edk2/OvmfPkg/TdxDxe/TdxDxe.inf [X64, XCODE5,
DEBUG]

- Failed -
Build end time: 10:10:54, May.25 2022
Build total time: 00:01:00


--
Rebecca Cran












--
Pedro Falcato