From: "Pedro Falcato" <pedro.falcato@gmail.com>
To: devel@edk2.groups.io, spotu@qti.qualcomm.com
Subject: Re: [edk2-devel] Error while compiling BOOT build
Date: Fri, 23 Dec 2022 13:53:32 +0000 [thread overview]
Message-ID: <CAKbZUD06868L=djtF277bbRa9LBV2cW1PQ=x6Q9y8zcXepYXeA@mail.gmail.com> (raw)
In-Reply-To: <CO1PR02MB86907A8134FCBE4BE4B8AA6B9FEB9@CO1PR02MB8690.namprd02.prod.outlook.com>
[-- 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 --]
prev parent reply other threads:[~2022-12-23 13:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-21 11:02 Error while compiling BOOT build Siva Rama Krishna Potu (Temp)
2022-12-23 13:53 ` Pedro Falcato [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKbZUD06868L=djtF277bbRa9LBV2cW1PQ=x6Q9y8zcXepYXeA@mail.gmail.com' \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox