Thanks to catch this. Look forward to the patch.

I hope this can be resolved in this stable tag.

 

The mismatch on ASM_PFX seems a big problem.

If we can extend CI to catch it earlier, that would be great.

 

Thank you

Yao Jiewen

 

From: Pedro Falcato <pedro.falcato@gmail.com>
Sent: Thursday, May 26, 2022 2:03 AM
To: edk2-devel-groups-io <devel@edk2.groups.io>; Rebecca Cran <quic_rcran@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>; Yao, Jiewen <jiewen.yao@intel.com>; Justen, Jordan L <jordan.l.justen@intel.com>; Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [edk2-devel] OvmfPkgX64 doesn't build with XCODE5 (Apple clang 12.0.5) - symbol `_AsmRelocateApMailBoxLoopStart' not defined

 

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