> -----Original Message-----
> From: Ard Biesheuvel [mailto:[email protected]]
> Sent: Monday, November 9, 2015 1:43 PM
> To: Hao, Xudong <[email protected]>
> Cc: [email protected]
> Subject: Re: [edk2] edk2 build failure on GCC44
> 
> On 9 November 2015 at 02:34, Hao, Xudong <[email protected]> wrote:
> > Hi, all
> >
> > I'm using edk2 as Xen HVM guest firmware, but the edk2 build fail with GCC
> 4.4.7 (RHEL6.5). I clone the edk2 source from
> git://git.code.sf.net/p/tianocore/edk2, and the commit is
> a100d0073b365bc4f0ac95d30934e639e31175ac.
> >
> > Command: OvmfPkg/build.sh -a X64 -b RELEASE -n 4 The whole compile log
> > attached, the simple error log is:
> > ...
> > /home/hao/src/tianocore-edk2/BaseTools/Scripts/GccBase.lds:1:
> > undefined symbol `PECOFF_HEADER_SIZE' referenced in expression
> > make: ***
> > [/home/hao/src/tianocore-
> edk2/Build/OvmfX64/RELEASE_GCC44/X64/OvmfPkg/Sec/SecMain/DEBUG/Sec
> Main.dll] Error 1 ...
> >
> 
> I don't see the attachment. Could you paste the ld command line (the one that
> references PECOFF_HEADER_SIZE') from the build log?
> 

Ard, 

Thanks response. The command line is:
"ld" -o 
/home/hao/src/tianocore-edk2/Build/OvmfX64/RELEASE_GCC44/X64/OvmfPkg/Sec/SecMain/DEBUG/SecMain.dll
 -nostdlib -n -q --gc-sections -z c    ommon-page-size=0x20 --entry 
_ModuleEntryPoint -u _ModuleEntryPoint -Map 
/home/hao/src/tianocore-edk2/Build/OvmfX64/RELEASE_GCC44/X64/OvmfPkg    
/Sec/SecMain/DEBUG/SecMain.map -melf_x86_64 --oformat=elf64-x86-64 
--start-group  @/home/hao/src/tianocore-edk2/Build/OvmfX64/RELEASE_GCC44/X    
64/OvmfPkg/Sec/SecMain/OUTPUT/static_library_files.lst --end-group 
--script=/home/hao/src/tianocore-edk2/BaseTools/Scripts/GccBase.lds --defs    
ym=PECOFF_HEADER_SIZE=0x228


> I think this was reported at the time, and a fix was proposed and incorporated
> into the patch (as far as I remember) but perhaps we missed something there.
> 
> --
> Ard.
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to