public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Getting Below error after edkrepo update
@ 2020-12-21  9:44 Prabhakar Patil, Sandeep
  2020-12-22  0:45 ` 回复: [edk2-devel] " gaoliming
  0 siblings, 1 reply; 2+ messages in thread
From: Prabhakar Patil, Sandeep @ 2020-12-21  9:44 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 2475 bytes --]

Hi,
   I am getting below error after I updated the edkrepo. Can you help me in this.
Below is the log.

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

Generate Region at Offset 0x0
   Region Size = 0x84000
   Region Name = FV

Generating FSP-S FV
####

build.py...
: 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:\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=Flag)
  File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\Region.py", line 134, in AddToBuffer
    FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, ErasePolarity, Flag=Flag)
  File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\Fv.py", line 127, in AddToBuffer
    FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress, IsMakefile=Flag, FvName=self.UiFvName)
  File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\FfsFileStatement.py", line 156, in GenFfs
    sectList, align = section.GenSection(OutputDir, self.NameGuid, SecIndex, self.KeyStringList, None, Dict)
  File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\CompressSection.py", line 67, in GenSection
    ReturnSectList, AlignValue = Sect.GenSection(OutputPath, ModuleName, SecIndex, KeyStringList, FfsInf, Dict, IsMakefile=IsMakefile)
  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=NameString, IsMakefile=IsMakefile)
  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'



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


[-- Attachment #2: Type: text/html, Size: 6305 bytes --]

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

* 回复: [edk2-devel] Getting Below error after edkrepo update
  2020-12-21  9:44 Getting Below error after edkrepo update Prabhakar Patil, Sandeep
@ 2020-12-22  0:45 ` gaoliming
  0 siblings, 0 replies; 2+ messages in thread
From: gaoliming @ 2020-12-22  0:45 UTC (permalink / raw)
  To: devel, sandeep.prabhakar.patil
  Cc: 'Liming Gao', 'Yunhua Feng', bob.c.feng

[-- Attachment #1: Type: text/plain, Size: 3052 bytes --]

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

 

Thanks

Liming

发件人: bounce+27952+69317+4905953+8761045@groups.io
<bounce+27952+69317+4905953+8761045@groups.io> 代表 Prabhakar Patil, Sandeep
发送时间: 2020年12月21日 17:44
收件人: devel@edk2.groups.io
主题: [edk2-devel] Getting Below error after edkrepo update

 

Hi,

   I am getting below error after I updated the edkrepo. Can you help me in
this.

Below is the log.

 

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

 

Generate Region at Offset 0x0

   Region Size = 0x84000

   Region Name = FV

 

Generating FSP-S FV

####

 

build.py...

: error C0DE: Tools code failure

                Please send email to devel@edk2.groups.io
<mailto:devel@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", 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=Flag)

  File "C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\Region.py", line
134, in AddToBuffer

    FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum,
ErasePolarity, Flag=Flag)

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

    FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress,
IsMakefile=Flag, FvName=self.UiFvName)

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

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

  File
"C:\MTL\mtl_wp\Edk2\BaseTools\Source\Python\GenFds\CompressSection.py", line
67, in GenSection

    ReturnSectList, AlignValue = Sect.GenSection(OutputPath, ModuleName,
SecIndex, KeyStringList, FfsInf, Dict, IsMakefile=IsMakefile)

  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=NameString, IsMakefile=IsMakefile)

  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'

 

 

 

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

 




[-- Attachment #2: Type: text/html, Size: 9459 bytes --]

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

end of thread, other threads:[~2020-12-22  0:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-21  9:44 Getting Below error after edkrepo update Prabhakar Patil, Sandeep
2020-12-22  0:45 ` 回复: [edk2-devel] " gaoliming

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