[if gte mso 9]>

Re: [edk2] [Patch][Basetools]Fix a build failure in Linux

Subject: Re: [edk2] [Patch][Basetools]Fix a build failure in Linux

From: "Olivier Martin" <olivier.martin@arm.com>

To: <edk2-devel@lists.sourceforge.net>

Date: 2014-08-20 00:10:46

The attached patch should fix the issue.

 

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Olivier Martin <olivier.martin@arm.com>

 

From: Olivier Martin [mailto:olivier.martin@arm.com]
Sent: 19 August 2014 15:31
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] [Patch][Basetools]Fix a build failure in Linux

 

GenFds.py...

: error C0DE: Tools code failure

        Please send email to edk2-buildtools-devel@lists.sourceforge.net for help, attaching following call stack trace!

 

Traceback (most recent call last):

  File "/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/BaseTools/BinWrappers/PosixLike/../../Source/Python/GenFds/GenFds.py", line 195, in main

    TargetArchList = set(BuildWorkSpace.BuildObject[GenFdsGlobalVariable.ActivePlatform, 'COMMON', Options.BuildTarget, Options.ToolChain].SupArchList) & set(ArchList)

  File "/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 309, in _GetSupArch

    self._GetHeaderInfo()

  File "/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 183, in _GetHeaderInfo

    RecordList = self._RawData[MODEL_META_DATA_HEADER, self._Arch]

  File "/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/BaseTools/Source/Python/Workspace/MetaFileParser.py", line 235, in __getitem__

    self._PostProcess()

  File "/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/BaseTools/Source/Python/Workspace/MetaFileParser.py", line 1253, in _PostProcess

    Processer[self._ItemType]()

  File "/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/BaseTools/Source/Python/Workspace/MetaFileParser.py", line 1427, in __ProcessDirective

    __IncludeMacros['WORKSPACE'] = GlobalData.gGlobalDefines['WORKSPACE']

KeyError: 'WORKSPACE'

 

 

 

build.py...

: error 7000: Failed to execute command

        GenFds -f /tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-MPCore.fdf -o /tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/Build/ArmRealViewEb-RTSM-A9x2/DEBUG_GCC48 -t GCC48 -b DEBUG -p /tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc -a ARM -D "EFI_SOURCE=/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/EdkCompatibilityPkg" -D "EDK_SOURCE=/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/EdkCompatibilityPkg" -D "TOOL_CHAIN_TAG=GCC48" -D "TOOLCHAIN=GCC48" -D "TARGET=DEBUG" -D "WORKSPACE=/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw" -D "EDK_TOOLS_PATH=/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/BaseTools" -D "ARCH=ARM" -D "ECP_SOURCE=/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw/EdkCompatibilityPkg" [/tmp/workspace/workspace/ap-uefi-master/EDK2_PLATFORM/ArmRealViewEb-RTSM-A9x2/label/sas-sw]

 

- Failed -

Build end time: 15:14:17, Aug.19 2014

Build total time: 00:00:39

 

make: *** [all] Error 1

 

 

From: Gao, Liming [mailto:liming.gao@intel.com]
Sent: 19 August 2014 10:14
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] [Patch][Basetools]Fix a build failure in Linux

 

Could you show the error message?

 

 

 

From: Sergey Isakov [mailto:isakov-sl@bk.ru]
Sent: Tuesday, August 19, 2014 5:05 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] [Patch][Basetools]Fix a build failure in Linux

 

No,

revision 15831 is still not working in OSX.

 

On 19.08.2014, at 12:07, Gao, Liming wrote:

 

Hess:

  The patch is good.

Reviewed-by: Gao, Liming <liming.gao@intel.com>

 

From: Chen, Hesheng [mailto:hesheng.chen@intel.com] 
Sent: Tuesday, August 19, 2014 2:44 PM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] [Patch][Basetools]Fix a build failure in Linux

 

Hello all,

Could you help review this patch?

 

This patch is going to fix a build failure in Linux system.

 

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Hess Chen <hesheng.chen@intel.com>

 

 

Best Regards,

Chen, Hess

Intel China Software Center

Tel: +86-21-6116-6740

Email: hesheng.chen@intel.com

 

------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel