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.web09.1911.1641266396831523208 for ; Mon, 03 Jan 2022 19:19:59 -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, 04 Jan 2022 11:19:54 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Jayaseelan, MelwinX'" References: In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gSGVscCBuZWVk?= Date: Tue, 4 Jan 2022 11:19:55 +0800 Message-ID: <011a01d80119$f20d07a0$d62716e0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJuWgE+n6wrKiMDLopvP6TxonN/rgKhi4elqxBzANA= Content-Type: multipart/alternative; boundary="----=_NextPart_000_011B_01D8015D.00310AF0" Content-Language: zh-cn ------=_NextPart_000_011B_01D8015D.00310AF0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable This issue has been fixed in edk2 master (commit 20b292d0cdf7dce58d824fdf9ab1613c2a1ad2ec 2020/12/29). Please make sure new edk2 be used.=20 =20 Thanks Liming =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io =B4=FA=B1= =ED Bin Yusof, Muhammad RaihanX =B7=A2=CB=CD=CA=B1=BC=E4: 2022=C4=EA1=D4=C24=C8=D5 10:00 =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io =B3=AD=CB=CD: Jayaseelan, MelwinX =D6=F7=CC=E2: Re: [edk2-devel] Help need =20 Hello There,=20 =20 Any update on the below issue? =20 =20 Best Regards, Raihan =20 From: Bin Yusof, Muhammad RaihanX=20 Sent: Wednesday, December 22, 2021 5:03 PM To: devel@edk2.groups.io =20 Cc: Jayaseelan, MelwinX > Subject: Help need=20 =20 Hello There,=20 =20 The below error happened when I tried to build. I=A1=AFm using this command line>> py -3 BuildPayload.py build Cfl =20 Below is the host machine configuration: Python 3.9=20 Visual Studio 2017=20 =20 Please advise. Thanks! =20 Please find the screenshot of the error: build.py... : error C0DE: Tools code failure Please send email to devel@edk2.groups.io fo= r help, attaching following call stack trace! Traceback (most recent call last): File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Op= e n\BaseTools\Source\Python\GenFds\GenFds.py", line 371, in GenFdsApi GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList) File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Op= e n\BaseTools\Source\Python\GenFds\GenFds.py", line 510, in GenFd FdObj.GenFd() File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Op= e n\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:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Op= e n\BaseTools\Source\Python\GenFds\Region.py", line 134, in AddToBuffer FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, ErasePolarity, Flag=3DFlag) File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Op= e n\BaseTools\Source\Python\GenFds\Fv.py", line 127, in AddToBuffer FileName =3D FfsFile.GenFfs(MacroDict, FvParentAddr=3DBaseAddress, IsMakefile=3DFlag, FvName=3Dself.UiFvName) File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Op= e n\BaseTools\Source\Python\GenFds\FfsFileStatement.py", line 153, in GenFfs sectList, align =3D section.GenSection(OutputDir, self.NameGuid, SecIndex, self.KeyStringList, None, Dict) File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Op= e n\BaseTools\Source\Python\GenFds\UiSection.py", line 70, in GenSection GenFdsGlobalVariable.GenerateSection(OutputFile, None, 'EFI_SECTION_USER_INTERFACE', Ui=3DNameString, IsMakefile=3DIsMakefile) File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Op= e n\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 Best Regards, Raihan =20 ------=_NextPart_000_011B_01D8015D.00310AF0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

This issue has been fixed in edk2 master (commit 20b292d0cdf= 7dce58d824fdf9ab1613c2a1ad2ec 2020/12/29). Please make sure new edk2 be use= d.

 

Thanks

Liming

<= div>

= =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io <devel@edk2.groups.= io> =B4=FA=B1=ED <= /b>Bin Yusof, Muhammad Ra= ihanX
=B7=A2=CB=CD=CA=B1= =BC=E4: 2022=C4=EA<= span lang=3DEN-US>1=D4=C24=C8=D5 10:00
=CA=D5=BC=FE=C8=CB:<= /b> devel@edk2.groups.io
=B3=AD=CB=CD: Jayaseelan, MelwinX <melwin= x.jayaseelan@intel.com>
=D6=F7=CC=E2: Re: [edk2-devel] Help need

 

Hello There,

 

Any update on the below issue= ?

 <= /o:p>

 

Best Regards,

Raihan<= /o:p>

 =

F= rom: Bin Yusof, Muhammad RaihanX
Sent:= Wednesday, December 22, 2021 5:03 PM
To: devel@edk2.groups.io
Cc: Jayaseelan, Mel= winX <melwinx.jayaseelan= @intel.com>
Subject: Help need

 

=

Hello There,

=

 

The below error happened when I tried to build. I=A1= =AFm using this command line>> py -3 BuildPayload.py build Cfl

<= o:p> 

Below is the host machine configu= ration:

Python 3.9 =

Visual Studio = 2017

 =

Please advise. Thanks!

 

Please find the screenshot of the error:

build.p= y...
: error C0DE: Tools code failure
Please send email to devel@edk2.groups.io for help, attaching = following call stack trace!

Traceback (most recent call last):
File "C:\Jenkins\= workspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Open\BaseTools= \Source\Python\GenFds\GenFds.py", line 371, in GenFdsApi
GenFds.Gen= Fd('', FdfParserObj, BuildWorkSpace, ArchList)
File "C:\Jenkins\wor= kspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Open\BaseTools\So= urce\Python\GenFds\GenFds.py", line 510, in GenFd
FdObj.GenFd()
= File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatf= orm\Edk2Open\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:\Jenkins\workspace\Production\WHL_SBL_UefiPayl= oad\uefipldplatform\Edk2Open\BaseTools\Source\Python\GenFds\Region.py"= , line 134, in AddToBuffer
FvObj.AddToBuffer(FvBuffer, FvBaseAddress, Bl= ockSize, BlockNum, ErasePolarity, Flag=3DFlag)
File "C:\Jenkins\wor= kspace\Production\WHL_SBL_UefiPayload\uefipldplatform\Edk2Open\BaseTools\So= urce\Python\GenFds\Fv.py", line 127, in AddToBuffer
FileName =3D Ff= sFile.GenFfs(MacroDict, FvParentAddr=3DBaseAddress, IsMakefile=3DFlag, FvNa= me=3Dself.UiFvName)
File "C:\Jenkins\workspace\Production\WHL_SBL_U= efiPayload\uefipldplatform\Edk2Open\BaseTools\Source\Python\GenFds\FfsFileS= tatement.py", line 153, in GenFfs
sectList, align =3D section.GenSe= ction(OutputDir, self.NameGuid, SecIndex, self.KeyStringList, None, Dict)File "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldpla= tform\Edk2Open\BaseTools\Source\Python\GenFds\UiSection.py", line 70, = in GenSection
GenFdsGlobalVariable.GenerateSection(OutputFile, None, 'EF= I_SECTION_USER_INTERFACE', Ui=3DNameString, IsMakefile=3DIsMakefile)
Fil= e "C:\Jenkins\workspace\Production\WHL_SBL_UefiPayload\uefipldplatform= \Edk2Open\BaseTools\Source\Python\GenFds\GenFdsGlobalVariable.py", lin= e 466, in GenerateSection
SectionData.fromstring(Ui.encode("utf_16_= le"))
AttributeError: 'array.array' object has no attribute 'fromst= ring'

 

= Best Regards,

Raihan

 

------=_NextPart_000_011B_01D8015D.00310AF0--