The error message changes to:

WriteSections64(): 
/../DEBUG_GCC48/AARCH64/ShellPkg/Application/Shell/Shell/DEBUG/Shell.dll 
AARCH64 small code model requires 4 KB section alignment.
GenFw: ERROR 3000: Invalid

Regards,
Bhupesh


> -----Original Message-----
> From: Sharma Bhupesh-B45370
> Sent: Monday, September 14, 2015 8:38 PM
> To: 'Ard Biesheuvel'
> Cc: edk2-devel@lists.01.org
> Subject: RE: [edk2] ShellPkg: Build errors with ARM64-GCC
> 
> > From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org]
> > Sent: Monday, September 14, 2015 7:01 PM On 14 September 2015 at
> > 12:52, Sharma Bhupesh <bhupesh.sha...@freescale.com> wrote:
> > > Hi Experts,
> > >
> > > I am trying to build the latest ShellPkg using the edk2/master, but
> > keep getting the following relocation related errors:
> > >
> >
> > Are you using the latest BaseTools?
> 
> Same issue with latest Basetools/master:
> http://sourceforge.net/p/tianocore/edk2-BaseTools/ci/master/tree/
> 
> >
> > > Build Environment Details:
> > > --------------------------
> > >
> > > Build environment:
> > > Linux-3.8.0-29-generic-i686-with-Ubuntu-12.04-precise
> > > Architecture(s)  = AARCH64
> > > Build target     = DEBUG
> > > Toolchain        = GCC48
> > >
> > > Toolchain used:
> > > ---------------
> > > gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux
> > >
> > > Error Logs:
> > > -----------
> > >
> > >   WriteRelocations64():
> > /../DEBUG_GCC48/AARCH64/ShellPkg/Application/Shell/Shell/DEBUG/Shell.d
> > ll unsupported ELF EM_AARCH64 relocation R_AARCH64_ADD_ABS_LO12_NC.
> > > GenFw: ERROR 3000: Invalid
> > >   WriteRelocations64():
> > /../DEBUG_GCC48/AARCH64/ShellPkg/Application/Shell/Shell/DEBUG/Shell.d
> > ll unsupported ELF EM_AARCH64 relocation R_AARCH64_ADR_PREL_PG_HI21.
> > > GenFw: ERROR 3000: Invalid
> > >
> > > build.py...
> > >  : error 7000: Failed to execute command
> > >         make tbuild
> > > [/../DEBUG_GCC48/AARCH64/ShellPkg/Application/Shell/Shell]
> > >
> > >
> > > build.py...
> > >  : error F002: Failed to build module
> > >         /../ShellPkg/Application/Shell/Shell.inf [AARCH64, GCC48,
> > > DEBUG]
> > >
> > > Shell.inf invocation in .dsc file:
> > > ----------------------------------
> > >
> > > ShellPkg/Application/Shell/Shell.inf {
> > >     <LibraryClasses>
> > >
> >
> ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.
> > inf
> > >
> > NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2Comman
> > NULL|dsL
> > ib.inf
> > >
> > NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1Comman
> > NULL|dsL
> > ib.inf
> > >
> > NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3Comman
> > NULL|dsL
> > ib.inf
> > >
> > NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1Comm
> > NULL|and
> > sLib.inf
> > >
> > NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1Comman
> > NULL|dsL
> > ib.inf
> > >
> > NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1Co
> > NULL|mma
> > ndsLib.inf
> > >
> > NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1Co
> > NULL|mma
> > ndsLib.inf
> > >
> > HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsi
> > HandleParsingLib|ngL
> > ib.inf
> > >
> > FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
> > >       ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
> > >       SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
> > >       PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
> > >
> > >       }
> > >
> > > Any other platform (like OVMF) hitting the same issue?
> > >
> > > Regards,
> > > Bhupesh
> > > _______________________________________________
> > > edk2-devel mailing list
> > > edk2-devel@lists.01.org
> > > https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to