From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vs1-f43.google.com (mail-vs1-f43.google.com [209.85.217.43]) by mx.groups.io with SMTP id smtpd.web11.10148.1653501785556267651 for ; Wed, 25 May 2022 11:03:05 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=X4w4anT1; spf=pass (domain: gmail.com, ip: 209.85.217.43, mailfrom: pedro.falcato@gmail.com) Received: by mail-vs1-f43.google.com with SMTP id z6so22038334vsp.0 for ; Wed, 25 May 2022 11:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=75kAU86zqQI9G0SR37laEeZiQmORRELlsM8wgbkv8Eg=; b=X4w4anT1XiQuDjiRweWaqe8oUSufxh4xKTjyHdCzPg+dJjjJfzllt++QriOKwudJ+0 5hYh41ZQGcTE4fhHHlWzm0wzhSjvjsnA2JHwdQilbiImhzsrCr1cl3MAlt46l0vA+o2R TASHImFK97w7eRKSl5XXDqHSIDvwIeWO6eri3d6JQ/+Uq2fwG0aIim/xNLkzF32DCTWy VOrbRVDDDsOU/i98SyaVlVbEYxNGmvIordEjkFZI9+/Y9wPtpwu/HEGSE8z5jgw1J72o WzadzFHaLdIAzB48zN+EsLsrtiwpHI8EBoZJj2EcrEyW6OlDEdg9vRtx8WPDyGzwfcTt D0ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=75kAU86zqQI9G0SR37laEeZiQmORRELlsM8wgbkv8Eg=; b=JRTM0z7j0i2x3xk8krrZzAs4HX83rB/E3nn37175aM1E1nf6ERSTHkpjJt3zLbaeou 21cywcMUUorNBPCBhpKOXwqdQAKo2LbSj8n97jVMUT4fz0eKASXOpHsA79Iqaa3KG5+Q /uEXe4dTS8VggL7gL7Devj7wrW2+C/sxLN1vBAEACS5BqMIShxhFBiiuJ1ZV5Z54ad4H CY+Md/jh0mYy+lci5JZa3G92JkYAJ8DJU9huNuBg5L3tnTUbcD4V2yWu05OV63/TNS2W SZHy7Yt2EokjoH4Wu7l3ktpW1iWXpvI0DvfoKf4E5HIkOThKRTXlKxbVLNqDHSEarEdp Ki7g== X-Gm-Message-State: AOAM5310WDF2ECyz8ip8LS3YviwRYUbpZhyy9HDxOhVn9QIOCDSbH3MI mVR7Qq20NB5aT4xPSoftS2eGmQ5TnK5ZIHnfqzfe9+khyMBBzQ== X-Google-Smtp-Source: ABdhPJwl0ts4tKtdSuixLRwyVQkzW6pYCzbzQJNg49hUAxQN7xCCDL8/AzdsI9Cgfy8D2lCFhReVdRyJ+qfnuApSYkg= X-Received: by 2002:a67:c806:0:b0:338:a949:47f8 with SMTP id u6-20020a67c806000000b00338a94947f8mr1249599vsk.7.1653501784627; Wed, 25 May 2022 11:03:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Pedro Falcato" Date: Wed, 25 May 2022 19:02:53 +0100 Message-ID: Subject: Re: [edk2-devel] OvmfPkgX64 doesn't build with XCODE5 (Apple clang 12.0.5) - symbol `_AsmRelocateApMailBoxLoopStart' not defined To: edk2-devel-groups-io , Rebecca Cran Cc: Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann Content-Type: multipart/alternative; boundary="000000000000821de605dfd9e20e" --000000000000821de605dfd9e20e Content-Type: text/plain; charset="UTF-8" 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 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 --000000000000821de605dfd9e20e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 a= s 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&= #39;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-501A2C249581SE= C4.ver
Building ...
/Users/bcran/src/uefi/edk2/MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDx= e.inf
[X64]
/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/X64/OvmfPkg/TdxDxe/Td= xDxe/OUTPUT/X64/ApRunLoop.iii:86:
error: symbol `_AsmRelocateApMailBoxLoopStart' not defined
make: ***
[/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/X64/OvmfPkg/TdxDxe/T= dxDxe/OUTPUT/X64/ApRunLoop.obj]
Error 1


build.py...
=C2=A0=C2=A0: error 7000: Failed to execute command
=C2=A0=C2=A0=C2=A0 =C2=A0make tbuild
[/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/X64/OvmfPkg/TdxDxe/T= dxDxe]


build.py...
=C2=A0=C2=A0: error 7000: Failed to execute command
=C2=A0=C2=A0=C2=A0 =C2=A0make tbuild
[/Users/bcran/src/uefi/edk2/Build/OvmfX64/DEBUG_XCODE5/X64/CryptoPkg/Librar= y/OpensslLib/OpensslLibCrypto]


build.py...
=C2=A0=C2=A0: error F002: Failed to build module
=C2=A0=C2=A0=C2=A0 =C2=A0/Users/bcran/src/uefi/edk2/OvmfPkg/TdxDxe/TdxDxe.i= nf [X64, XCODE5,
DEBUG]

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


--
Rebecca Cran












--
Pedro Falcato
--000000000000821de605dfd9e20e--