public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Error while compiling BOOT build
@ 2022-12-21 11:02 Siva Rama Krishna Potu (Temp)
  2022-12-23 13:53 ` [edk2-devel] " Pedro Falcato
  0 siblings, 1 reply; 2+ messages in thread
From: Siva Rama Krishna Potu (Temp) @ 2022-12-21 11:02 UTC (permalink / raw)
  To: devel@edk2.groups.io

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

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 "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py", line 371, in GenFdsApi
    GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList)
  File "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py", line 510, in GenFd
    FdObj.GenFd()
  File "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/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 "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/Region.py", line 134, in AddToBuffer
    FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum, ErasePolarity, Flag=Flag)
  File "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/Fv.py", line 127, in AddToBuffer
    FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress, IsMakefile=Flag, FvName=self.UiFvName)
  File "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 518, in GenFfs
    InputSectList, InputSectAlignments = self.__GenComplexFileSection__(Rule, FvChildAddr, FvParentAddr, IsMakefile=IsMakefile)
  File "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 969, in __GenComplexFileSection__
    SectList, Align = Sect.GenSection(self.OutputPath, self.ModuleGuid, SecIndex, self.KeyStringList, self, IsMakefile = IsMakefile)
  File "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/EfiSection.py", line 263, in GenSection
    ImageObj = PeImageClass (File)
  File "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/Common/Misc.py", line 1638, in __init__
    if ByteArray.tostring() != b'PE\0\0':
AttributeError: 'array.array' object has no attribute 'tostring'



build.py...
: error 7000: Failed to execute command

Regards,
Siva Rama Krishna


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

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

* Re: [edk2-devel] Error while compiling BOOT build
  2022-12-21 11:02 Error while compiling BOOT build Siva Rama Krishna Potu (Temp)
@ 2022-12-23 13:53 ` Pedro Falcato
  0 siblings, 0 replies; 2+ messages in thread
From: Pedro Falcato @ 2022-12-23 13:53 UTC (permalink / raw)
  To: devel, spotu

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

On Wed, Dec 21, 2022 at 9:23 PM Siva Rama Krishna Potu (Temp) <
spotu@qti.qualcomm.com> wrote:

> 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
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py",
> line 371, in GenFdsApi
>
>     GenFds.GenFd('', FdfParserObj, BuildWorkSpace, ArchList)
>
>   File
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/GenFds.py",
> line 510, in GenFd
>
>     FdObj.GenFd()
>
>   File
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/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
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/Region.py",
> line 134, in AddToBuffer
>
>     FvObj.AddToBuffer(FvBuffer, FvBaseAddress, BlockSize, BlockNum,
> ErasePolarity, Flag=Flag)
>
>   File
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/Fv.py",
> line 127, in AddToBuffer
>
>     FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress,
> IsMakefile=Flag, FvName=self.UiFvName)
>
>   File
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py",
> line 518, in GenFfs
>
>     InputSectList, InputSectAlignments =
> self.__GenComplexFileSection__(Rule, FvChildAddr, FvParentAddr,
> IsMakefile=IsMakefile)
>
>   File
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py",
> line 969, in __GenComplexFileSection__
>
>     SectList, Align = Sect.GenSection(self.OutputPath, self.ModuleGuid,
> SecIndex, self.KeyStringList, self, IsMakefile = IsMakefile)
>
>   File
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/GenFds/EfiSection.py",
> line 263, in GenSection
>
>     ImageObj = PeImageClass (File)
>
>   File
> "/local/mnt/workspace/spotu/Palima/BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Python/Common/Misc.py",
> line 1638, in __init__
>
>     if ByteArray.tostring() != b'PE\0\0':
>
> AttributeError: 'array.array' object has no attribute 'tostring'
>

Siva,

Seems like your local tree does not have commit (
https://github.com/tianocore/edk2/commit/43bec9ea3d56f3662ede78023baa2a791b66acac).
You need it for Python 3.9+ compatibility.

-- 
Pedro

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

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

end of thread, other threads:[~2022-12-23 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-21 11:02 Error while compiling BOOT build Siva Rama Krishna Potu (Temp)
2022-12-23 13:53 ` [edk2-devel] " Pedro Falcato

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