[edk2-devel] Error building OVMF on x86 macOS with Xcode 12.5

Michael D Kinney michael.d.kinney at intel.com
Sun May 2 22:20:21 UTC 2021


Hi Rebecca,

Not sure why it will not apply.  I sent that patch against master as of 5/1, and there at no commits to master since 4/30.

A branch with the change is also posted here:

	https://github.com/mdkinney/edk2/tree/Bug_3359_BaseTools_Expand_Tool_Star

Mike

> -----Original Message-----
> From: Rebecca Cran <rebecca at bsdio.com>
> Sent: Sunday, May 2, 2021 12:07 PM
> To: Kinney, Michael D <michael.d.kinney at intel.com>; devel at edk2.groups.io; Andrew Fish <afish at apple.com>; Laszlo Ersek
> <lersek at redhat.com>
> Subject: Re: [edk2-devel] Error building OVMF on x86 macOS with Xcode 12.5
> 
> It doesn't seem to apply against
> 1e6b0394d6c001802dc454ecff19076aaa80f51c (master as of today):
> 
> patching file BaseTools/Source/Python/AutoGen/ModuleAutoGenHelper.py
> Hunk #1 FAILED at 181.
> Hunk #2 FAILED at 632.
> 2 out of 2 hunks FAILED -- saving rejects to file
> BaseTools/Source/Python/AutoGen/ModuleAutoGenHelper.py.rej
> patching file BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
> Hunk #1 FAILED at 1391.
> Hunk #2 FAILED at 1534.
> 2 out of 2 hunks FAILED -- saving rejects to file
> BaseTools/Source/Python/AutoGen/PlatformAutoGen.py.rej
> patching file BaseTools/Source/Python/build/build.py
> Hunk #1 FAILED at 897.
> Hunk #2 FAILED at 930.
> 2 out of 2 hunks FAILED -- saving rejects to file
> BaseTools/Source/Python/build/build.py.rej
> 
> --
> Rebecca Cran
> 
> On 5/2/21 12:04 PM, Kinney, Michael D wrote:
> > Please try this patch:
> >
> > 	https://edk2.groups.io/g/devel/message/74684
> >
> > If it works, can you please also do a review?  Many community members are offline this week and I want to get these
> fixes in.
> >
> > Mike
> >
> >> -----Original Message-----
> >> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Rebecca Cran
> >> Sent: Saturday, May 1, 2021 9:05 PM
> >> To: devel at edk2.groups.io; Andrew Fish <afish at apple.com>; Laszlo Ersek <lersek at redhat.com>
> >> Subject: [edk2-devel] Error building OVMF on x86 macOS with Xcode 12.5
> >>
> >> I'm trying to build OVMF on an x86 Mac running Big Sur and Xcode 12.5.
> >>
> >> If I run "./OvmfPkg/build.sh -a X64 -t XCODE5 -b RELEASE" it seems to
> >> get quite far, but then tries to run ld with "-z common-page-size",
> >> causing the error:
> >>
> >>
> >> "ld" -arch x86_64 -u __ModuleEntryPoint -e __ModuleEntryPoint -preload
> >> -segalign 0x20 -pie -all_load -dead_strip -seg1addr 0x240 -map
> >>
> /Users/bcran/src/edk2/Build/OvmfX64/RELEASE_XCODE5/X64/MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterR
> >> untimeDxe/DEBUG/MonotonicCounterRuntimeDxe.map
> >> -z common-page-size=0x1000 -seg1addr 0x1000 -segalign 0x1000 -o
> >>
> /Users/bcran/src/edk2/Build/OvmfX64/RELEASE_XCODE5/X64/MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterR
> >> untimeDxe/DEBUG/MonotonicCounterRuntimeDxe.dll
> >> -filelist
> >>
> /Users/bcran/src/edk2/Build/OvmfX64/RELEASE_XCODE5/X64/MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterR
> >> untimeDxe/OUTPUT/static_library_files.lst
> >> Building ... /Users/bcran/src/edk2/UefiCpuPkg/CpuMpPei/CpuMpPei.inf [X64]
> >> make: Nothing to be done for `tbuild'.
> >> ld: unknown option: -z
> >>
> >>
> >> --
> >>
> >> Rebecca Cran
> >>
> >>
> >>
> >>
> >> 
> >>
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#74689): https://edk2.groups.io/g/devel/message/74689
Mute This Topic: https://groups.io/mt/82521472/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list