public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* EDK2 master build failure
@ 2016-11-17 20:11 Bhupesh Sharma
  2016-11-18  5:14 ` Gao, Liming
  0 siblings, 1 reply; 3+ messages in thread
From: Bhupesh Sharma @ 2016-11-17 20:11 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hi EDK2 experts,

I have just rebased my code on the latest EDK2 master branch and now when I am trying to compile the same
I am getting the following errors (for my ARMv8 build):

# ./build.sh RELEASE clean; ./build.sh RELEASE
..........................................
Welcome to LS1043A UEFI Build environment
..........................................
Cleaning up the build directory '../../../../Build/LS1043aRdb/'..
..........................................
Welcome to LS1043A UEFI Build environment
..........................................
Initializing workspace
Loading previous configuration from /media/sf_VBox-Share/LS1043A/edk2/Conf/BuildEnv.sh
WORKSPACE: /media/sf_VBox-Share/LS1043A/edk2
EDK_TOOLS_PATH: /media/sf_VBox-Share/LS1043A/edk2/BaseTools
CONF_PATH: /media/sf_VBox-Share/LS1043A/edk2/Conf
Copying $EDK_TOOLS_PATH/Conf/tools_def.template
     to /media/sf_VBox-Share/LS1043A/edk2/Conf/tools_def.txt
Build environment: Linux-4.2.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
Build start time: 01:19:30, Nov.18 2016

WORKSPACE        = /media/sf_VBox-Share/LS1043A/edk2
ECP_SOURCE       = /media/sf_VBox-Share/LS1043A/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /media/sf_VBox-Share/LS1043A/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /media/sf_VBox-Share/LS1043A/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /media/sf_VBox-Share/LS1043A/edk2/BaseTools
CONF_PATH        = /media/sf_VBox-Share/LS1043A/edk2/Conf


Architecture(s)  = AARCH64
Build target     = RELEASE
Toolchain        = GCC49

Active Platform          = /media/sf_VBox-Share/LS1043A/edk2/OpenPlatformPkg/Platforms/Nxp/LS1043aRdb/LS1043aRdbPkg.dsc
Flash Image Definition   = /media/sf_VBox-Share/LS1043A/edk2/OpenPlatformPkg/Platforms/Nxp/LS1043aRdb/LS1043aRdbPkg.fdf

Processing meta-data ....... 


build.py...
 : error C0DE: Unknown fatal error when processing [/media/sf_VBox-Share/LS1043A/edk2/MdePkg/MdePkg.dec]
	
(Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace!)

(Python 2.7.6 on linux2) Traceback (most recent call last):
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2276, in Main
    MyBuild.Launch()
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2028, in Launch
    self._MultiThreadBuildPlatform()
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1823, in _MultiThreadBuildPlatform
    self.Progress
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line 176, in __new__
    if not AutoGenObject._Init(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs):
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line 464, in _Init
    for key in BuildData.Pcds:
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 2469, in _GetPcds
    self._Pcds.update(self._GetPcd(MODEL_PCD_FEATURE_FLAG))
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 2583, in _GetPcd
    if TokenSpaceGuid not in self.Guids:
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 2368, in _GetGuids
    Value = GuidValue(CName, self.Packages, self.MetaFile.Path)
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Common/Misc.py", line 804, in GuidValue
    GuidKeys = P.Guids.keys()
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 1482, in _GetGuid
    RecordList = self._RawData[MODEL_EFI_GUID, self._Arch]
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.py", line 239, in __getitem__
    self.Start()
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.py", line 1671, in Start
    self._SectionParser[self._SectionType[0]](self)
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.py", line 43, in MacroParser
    Parser(self)
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.py", line 1896, in _PcdParser
    IsValid, Cause = CheckPcdDatum(ValueList[1], ValueList[0])
  File "/media/sf_VBox-Share/LS1043A/edk2/BaseTools/Source/Python/Common/Misc.py", line 1639, in CheckPcdDatum
    Printset = set(string.printable)
AttributeError: 'module' object has no attribute 'printable'


- Failed -
Build end time: 01:19:43,

Is this a known issue?

Regards,
Bhupesh


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: EDK2 master build failure
  2016-11-17 20:11 EDK2 master build failure Bhupesh Sharma
@ 2016-11-18  5:14 ` Gao, Liming
  2016-11-18  9:51   ` Bhupesh Sharma
  0 siblings, 1 reply; 3+ messages in thread
From: Gao, Liming @ 2016-11-18  5:14 UTC (permalink / raw)
  To: Bhupesh Sharma, edk2-devel@lists.01.org

In Misc.py, it import string class. But, in the same directory, there is source file String.py. Seemly, python interpreter wrongly imports String.py and cause this issue. This issue may happen on the case insensitive file system. 

We meet with such issue before. We set up virtual machine on windows OS to run Linux build, edk2 source code is downloaded in windows OS and shared to virtual linux machine, then do linux build will cause such issue. To avoid it, we download edk2 source code in Linux machine and build them pass. 

Thanks
Liming
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> Bhupesh Sharma
> Sent: Friday, November 18, 2016 4:12 AM
> To: edk2-devel@lists.01.org
> Subject: [edk2] EDK2 master build failure
> 
> Hi EDK2 experts,
> 
> I have just rebased my code on the latest EDK2 master branch and now when
> I am trying to compile the same
> I am getting the following errors (for my ARMv8 build):
> 
> # ./build.sh RELEASE clean; ./build.sh RELEASE
> ..........................................
> Welcome to LS1043A UEFI Build environment
> ..........................................
> Cleaning up the build directory '../../../../Build/LS1043aRdb/'..
> ..........................................
> Welcome to LS1043A UEFI Build environment
> ..........................................
> Initializing workspace
> Loading previous configuration from /media/sf_VBox-
> Share/LS1043A/edk2/Conf/BuildEnv.sh
> WORKSPACE: /media/sf_VBox-Share/LS1043A/edk2
> EDK_TOOLS_PATH: /media/sf_VBox-Share/LS1043A/edk2/BaseTools
> CONF_PATH: /media/sf_VBox-Share/LS1043A/edk2/Conf
> Copying $EDK_TOOLS_PATH/Conf/tools_def.template
>      to /media/sf_VBox-Share/LS1043A/edk2/Conf/tools_def.txt
> Build environment: Linux-4.2.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
> Build start time: 01:19:30, Nov.18 2016
> 
> WORKSPACE        = /media/sf_VBox-Share/LS1043A/edk2
> ECP_SOURCE       = /media/sf_VBox-
> Share/LS1043A/edk2/EdkCompatibilityPkg
> EDK_SOURCE       = /media/sf_VBox-
> Share/LS1043A/edk2/EdkCompatibilityPkg
> EFI_SOURCE       = /media/sf_VBox-
> Share/LS1043A/edk2/EdkCompatibilityPkg
> EDK_TOOLS_PATH   = /media/sf_VBox-Share/LS1043A/edk2/BaseTools
> CONF_PATH        = /media/sf_VBox-Share/LS1043A/edk2/Conf
> 
> 
> Architecture(s)  = AARCH64
> Build target     = RELEASE
> Toolchain        = GCC49
> 
> Active Platform          = /media/sf_VBox-
> Share/LS1043A/edk2/OpenPlatformPkg/Platforms/Nxp/LS1043aRdb/LS1043a
> RdbPkg.dsc
> Flash Image Definition   = /media/sf_VBox-
> Share/LS1043A/edk2/OpenPlatformPkg/Platforms/Nxp/LS1043aRdb/LS1043a
> RdbPkg.fdf
> 
> Processing meta-data .......
> 
> 
> build.py...
>  : error C0DE: Unknown fatal error when processing [/media/sf_VBox-
> Share/LS1043A/edk2/MdePkg/MdePkg.dec]
> 
> (Please send email to edk2-devel@lists.01.org for help, attaching following
> call stack trace!)
> 
> (Python 2.7.6 on linux2) Traceback (most recent call last):
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python
> /build/build.py", line 2276, in Main
>     MyBuild.Launch()
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python
> /build/build.py", line 2028, in Launch
>     self._MultiThreadBuildPlatform()
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python
> /build/build.py", line 1823, in _MultiThreadBuildPlatform
>     self.Progress
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line
> 176, in __new__
>     if not AutoGenObject._Init(Workspace, MetaFile, Target, Toolchain, Arch,
> *args, **kwargs):
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line
> 464, in _Init
>     for key in BuildData.Pcds:
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceData
> base.py", line 2469, in _GetPcds
>     self._Pcds.update(self._GetPcd(MODEL_PCD_FEATURE_FLAG))
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceData
> base.py", line 2583, in _GetPcd
>     if TokenSpaceGuid not in self.Guids:
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceData
> base.py", line 2368, in _GetGuids
>     Value = GuidValue(CName, self.Packages, self.MetaFile.Path)
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Common/Misc.py", line 804,
> in GuidValue
>     GuidKeys = P.Guids.keys()
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceData
> base.py", line 1482, in _GetGuid
>     RecordList = self._RawData[MODEL_EFI_GUID, self._Arch]
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.
> py", line 239, in __getitem__
>     self.Start()
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.
> py", line 1671, in Start
>     self._SectionParser[self._SectionType[0]](self)
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.
> py", line 43, in MacroParser
>     Parser(self)
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.
> py", line 1896, in _PcdParser
>     IsValid, Cause = CheckPcdDatum(ValueList[1], ValueList[0])
>   File "/media/sf_VBox-
> Share/LS1043A/edk2/BaseTools/Source/Python/Common/Misc.py", line
> 1639, in CheckPcdDatum
>     Printset = set(string.printable)
> AttributeError: 'module' object has no attribute 'printable'
> 
> 
> - Failed -
> Build end time: 01:19:43,
> 
> Is this a known issue?
> 
> Regards,
> Bhupesh
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: EDK2 master build failure
  2016-11-18  5:14 ` Gao, Liming
@ 2016-11-18  9:51   ` Bhupesh Sharma
  0 siblings, 0 replies; 3+ messages in thread
From: Bhupesh Sharma @ 2016-11-18  9:51 UTC (permalink / raw)
  To: Gao, Liming, edk2-devel@lists.01.org; +Cc: bhupesh.linux@gmail.com

Thanks Liming.

I will try building this on a native Linux Host rather than VirtualBox.

Regards,
Bhupesh

> From: Gao, Liming [mailto:liming.gao@intel.com]
> Sent: Friday, November 18, 2016 10:45 AM
> 
> In Misc.py, it import string class. But, in the same directory, there
> is source file String.py. Seemly, python interpreter wrongly imports
> String.py and cause this issue. This issue may happen on the case
> insensitive file system.
> 
> We meet with such issue before. We set up virtual machine on windows OS
> to run Linux build, edk2 source code is downloaded in windows OS and
> shared to virtual linux machine, then do linux build will cause such
> issue. To avoid it, we download edk2 source code in Linux machine and
> build them pass.
> 
> Thanks
> Liming
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf
> Of
> > Bhupesh Sharma
> > Sent: Friday, November 18, 2016 4:12 AM
> > To: edk2-devel@lists.01.org
> > Subject: [edk2] EDK2 master build failure
> >
> > Hi EDK2 experts,
> >
> > I have just rebased my code on the latest EDK2 master branch and now
> > when I am trying to compile the same I am getting the following
> errors
> > (for my ARMv8 build):
> >
> > # ./build.sh RELEASE clean; ./build.sh RELEASE
> > ..........................................
> > Welcome to LS1043A UEFI Build environment
> > ..........................................
> > Cleaning up the build directory '../../../../Build/LS1043aRdb/'..
> > ..........................................
> > Welcome to LS1043A UEFI Build environment
> > ..........................................
> > Initializing workspace
> > Loading previous configuration from /media/sf_VBox-
> > Share/LS1043A/edk2/Conf/BuildEnv.sh
> > WORKSPACE: /media/sf_VBox-Share/LS1043A/edk2
> > EDK_TOOLS_PATH: /media/sf_VBox-Share/LS1043A/edk2/BaseTools
> > CONF_PATH: /media/sf_VBox-Share/LS1043A/edk2/Conf
> > Copying $EDK_TOOLS_PATH/Conf/tools_def.template
> >      to /media/sf_VBox-Share/LS1043A/edk2/Conf/tools_def.txt
> > Build environment:
> > Linux-4.2.0-27-generic-x86_64-with-Ubuntu-14.04-trusty
> > Build start time: 01:19:30, Nov.18 2016
> >
> > WORKSPACE        = /media/sf_VBox-Share/LS1043A/edk2
> > ECP_SOURCE       = /media/sf_VBox-
> > Share/LS1043A/edk2/EdkCompatibilityPkg
> > EDK_SOURCE       = /media/sf_VBox-
> > Share/LS1043A/edk2/EdkCompatibilityPkg
> > EFI_SOURCE       = /media/sf_VBox-
> > Share/LS1043A/edk2/EdkCompatibilityPkg
> > EDK_TOOLS_PATH   = /media/sf_VBox-Share/LS1043A/edk2/BaseTools
> > CONF_PATH        = /media/sf_VBox-Share/LS1043A/edk2/Conf
> >
> >
> > Architecture(s)  = AARCH64
> > Build target     = RELEASE
> > Toolchain        = GCC49
> >
> > Active Platform          = /media/sf_VBox-
> > Share/LS1043A/edk2/OpenPlatformPkg/Platforms/Nxp/LS1043aRdb/LS1043a
> > RdbPkg.dsc
> > Flash Image Definition   = /media/sf_VBox-
> > Share/LS1043A/edk2/OpenPlatformPkg/Platforms/Nxp/LS1043aRdb/LS1043a
> > RdbPkg.fdf
> >
> > Processing meta-data .......
> >
> >
> > build.py...
> >  : error C0DE: Unknown fatal error when processing [/media/sf_VBox-
> > Share/LS1043A/edk2/MdePkg/MdePkg.dec]
> >
> > (Please send email to edk2-devel@lists.01.org for help, attaching
> > following call stack trace!)
> >
> > (Python 2.7.6 on linux2) Traceback (most recent call last):
> >   File "/media/sf_VBox-
> >
> Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python
> > /build/build.py", line 2276, in Main
> >     MyBuild.Launch()
> >   File "/media/sf_VBox-
> >
> Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python
> > /build/build.py", line 2028, in Launch
> >     self._MultiThreadBuildPlatform()
> >   File "/media/sf_VBox-
> >
> Share/LS1043A/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python
> > /build/build.py", line 1823, in _MultiThreadBuildPlatform
> >     self.Progress
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line
> > 176, in __new__
> >     if not AutoGenObject._Init(Workspace, MetaFile, Target,
> Toolchain,
> > Arch, *args, **kwargs):
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/AutoGen/AutoGen.py", line
> > 464, in _Init
> >     for key in BuildData.Pcds:
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceData
> > base.py", line 2469, in _GetPcds
> >     self._Pcds.update(self._GetPcd(MODEL_PCD_FEATURE_FLAG))
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceData
> > base.py", line 2583, in _GetPcd
> >     if TokenSpaceGuid not in self.Guids:
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceData
> > base.py", line 2368, in _GetGuids
> >     Value = GuidValue(CName, self.Packages, self.MetaFile.Path)
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Common/Misc.py", line 804,
> > in GuidValue
> >     GuidKeys = P.Guids.keys()
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/WorkspaceData
> > base.py", line 1482, in _GetGuid
> >     RecordList = self._RawData[MODEL_EFI_GUID, self._Arch]
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.
> > py", line 239, in __getitem__
> >     self.Start()
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.
> > py", line 1671, in Start
> >     self._SectionParser[self._SectionType[0]](self)
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.
> > py", line 43, in MacroParser
> >     Parser(self)
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Workspace/MetaFileParser.
> > py", line 1896, in _PcdParser
> >     IsValid, Cause = CheckPcdDatum(ValueList[1], ValueList[0])
> >   File "/media/sf_VBox-
> > Share/LS1043A/edk2/BaseTools/Source/Python/Common/Misc.py", line
> 1639,
> > in CheckPcdDatum
> >     Printset = set(string.printable)
> > AttributeError: 'module' object has no attribute 'printable'
> >
> >
> > - Failed -
> > Build end time: 01:19:43,
> >
> > Is this a known issue?
> >
> > Regards,
> > Bhupesh
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-11-18  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-17 20:11 EDK2 master build failure Bhupesh Sharma
2016-11-18  5:14 ` Gao, Liming
2016-11-18  9:51   ` Bhupesh Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox