From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web11.5262.1608597902727548361 for ; Mon, 21 Dec 2020 16:45:03 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 22 Dec 2020 08:44:59 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Liming Gao'" , "'Yunhua Feng'" , References: In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gR2V0dGluZyBCZWxvdyBlcnJvciBhZnRlciBlZGtyZXBvIHVwZGF0ZQ==?= Date: Tue, 22 Dec 2020 08:45:00 +0800 Message-ID: <002f01d6d7fb$ada0ad80$08e20880$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGqzSBookoOjxqKx+Cyf18TnXdDLapaXLrQ Content-Type: multipart/alternative; boundary="----=_NextPart_000_0030_01D6D83E.BBC4D7E0" Content-Language: zh-cn ------=_NextPart_000_0030_01D6D83E.BBC4D7E0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable This is BaseTools issue to work with Python39. Original patch is https://edk2.groups.io/g/devel/message/67511.=20 =20 Thanks Liming =B7=A2=BC=FE=C8=CB: bounce+27952+69317+4905953+8761045@groups.io =B4=FA=B1=ED Prabhakar Pati= l, Sandeep =B7=A2=CB=CD=CA=B1=BC=E4: 2020=C4=EA12=D4=C221=C8=D5 17:44 =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io =D6=F7=CC=E2: [edk2-devel] Getting Below error after edkrepo update =20 Hi, I am getting below error after I updated the edkrepo. Can you help me i= n this. Below is the log. =20 Fd File Name:FSP (C:\MTL\mtl_wp\Build\MeteorLakeFspPkg\DEBUG_VS2015x86\FV\FSP.fd) =20 Generate Region at Offset 0x0 Region Size =3D 0x84000 Region Name =3D FV =20 Generating FSP-S FV #### =20 build.py... : error C0DE: Tools code failure Please send email to devel@edk2.groups.io for help, attaching following call stack trace! =20 Traceback (most recent call last): File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\GenFds.py", line 371, in GenFdsApi GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList) File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\GenFds.py", line 510, in GenFd FdObj.GenFd() File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\Fd.py", line 131= , in GenFd RegionObj.AddToBuffer (FdBuffer, self.BaseAddress, self.BlockSizeList, self.ErasePolarity, GenFdsGlobalVariable.ImageBinDict, self.DefineVarDict, Flag=3DFlag) File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\Region.py", line 134, in AddToBuffer FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, ErasePolarity, Flag=3DFlag) File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\Fv.py", line 127= , in AddToBuffer FileName =3D FfsFile.GenFfs(MacroDict, FvParentAddr=3DBaseAddress, IsMakefile=3DFlag, FvName=3Dself.UiFvName) File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\FfsFileStatement.py", line 156, in GenFfs sectList, align =3D section.GenSection(OutputDir, self.NameGuid, SecIn= dex, self.KeyStringList, None, Dict) File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\CompressSection.py", li= ne 67, in GenSection ReturnSectList, AlignValue =3D Sect.GenSection(OutputPath, ModuleName, SecIndex, KeyStringList, FfsInf, Dict, IsMakefile=3DIsMakefile) File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\UiSection.py", line 70, in GenSection GenFdsGlobalVariable.GenerateSection(OutputFile, None, 'EFI_SECTION_USER_INTERFACE', Ui=3DNameString, IsMakefile=3DIsMakefile) File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\GenFdsGlobalVariable.py= ", line 466, in GenerateSection SectionData.fromstring(Ui.encode("utf_16_le")) AttributeError: 'array.array' object has no attribute 'fromstring' =20 =20 =20 build.py... : error 7000: Failed to execute command =20 - Failed - Build end time: 15:11:14, Dec.21 2020 Build total time: 00:01:08 =20 =20 Regards, Sandeep =20 ------=_NextPart_000_0030_01D6D83E.BBC4D7E0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

This is BaseTools issue to work with Python39. Original pat= ch is https://edk2= .groups.io/g/devel/message/67511.

 

Thanks

Liming

=B7=A2=BC=FE=C8=CB: bounce+27= 952+69317+4905953+8761045@groups.io <bounce+27952+69317+4905953+8761045@= groups.io> =B4=FA=B1=ED <= /span>Prabhakar Patil= , Sandeep
=B7=A2=CB=CD=CA= = =B1=BC=E4: 2020=C4= = =EA12=D4=C221=C8=D5 17:44
=CA=D5=BC=FE=C8=CB:<= /span> devel@edk2.groups.io
=D6=F7=CC= =E2: [edk2-devel] Getting= Below error after edkrepo update

<= p class=3DMsoNormal> 

Hi,

   I am getting below error after I update= d the edkrepo. Can you help me in this.

Below is the log.

 

Fd File Name:FSP (C:\MTL\mtl_wp\Build\MeteorLakeF= spPkg\DEBUG_VS2015x86\FV\FSP.fd)

=  

Generate Region at Offset 0x0

   Region Size =3D 0x84000=

   Region Name= =3D FV

&= nbsp;

Generating FS= P-S FV

####

 

build.py...<= /span>

: error C0DE: Tools code = failure

 =             &nb= sp;  Please send email to deve= l@edk2.groups.io for help, attaching following call stack trace!

 

Traceback (most recent call= last):

 = File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\GenFds.py&quo= t;, line 371, in GenFdsApi

    GenFds.GenFd('', FdfParserObj, BuildWorkSpa= ce, ArchList)

=   File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\GenFds.= py", line 510, in GenFd

    FdObj.GenFd()

  File "C:\MTL\mtl_wp\Edk2\Base= Tools\Source\Python\GenFds\Fd.py", line 131, in GenFd

    RegionObj.A= ddToBuffer (FdBuffer, self.BaseAddress, self.BlockSizeList, self.ErasePolar= ity, GenFdsGlobalVariable.ImageBinDict, self.DefineVarDict, Flag=3DFlag)

  File &quo= t;C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\Region.py", line 1= 34, in AddToBuffer

    FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSiz= e, BlockNum, ErasePolarity, Flag=3DFlag)

  File "C:\MTL\mtl_wp\Edk2\BaseTools\S= ource\Python\GenFds\Fv.py", line 127, in AddToBuffer=

    FileName =3D= FfsFile.GenFfs(MacroDict, FvParentAddr=3DBaseAddress, IsMakefile=3DFlag, F= vName=3Dself.UiFvName)

  File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenF= ds\FfsFileStatement.py", line 156, in GenFfs

    sectList, align =3D = section.GenSection(OutputDir, self.NameGuid, SecIndex, self.KeyStringList, = None, Dict)

&n= bsp; File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\CompressS= ection.py", line 67, in GenSection

    ReturnSectList, AlignValue =3D= Sect.GenSection(OutputPath, ModuleName, SecIndex, KeyStringList, FfsInf, D= ict, IsMakefile=3DIsMakefile)

  File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Pytho= n\GenFds\UiSection.py", line 70, in GenSection

    GenFdsGlobalVariab= le.GenerateSection(OutputFile, None, 'EFI_SECTION_USER_INTERFACE', Ui=3DNam= eString, IsMakefile=3DIsMakefile)

  File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\P= ython\GenFds\GenFdsGlobalVariable.py", line 466, in GenerateSection

  &nbs= p; SectionData.fromstring(Ui.encode("utf_16_le"))

AttributeError: 'array.array'= object has no attribute 'fromstring'

 

 

 

build.py...

: error 7000: Failed to execute command

        =        

 

- Failed -

Build end time: 15:11:14, Dec.21 2020

Build total time: 00:01:08

 

 

Regards,=

Sandeep

 

=

------=_NextPart_000_0030_01D6D83E.BBC4D7E0--