From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by mx.groups.io with SMTP id smtpd.web11.72511.1671803623821802885 for ; Fri, 23 Dec 2022 05:53:43 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=phK8k0M2; spf=pass (domain: gmail.com, ip: 209.85.215.171, mailfrom: pedro.falcato@gmail.com) Received: by mail-pg1-f171.google.com with SMTP id 7so3378908pga.1 for ; Fri, 23 Dec 2022 05:53:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Dom/cZ0k+24hqFmx0vG9+fcMLWksVXHphBSLXDnzJpQ=; b=phK8k0M2GeT+sMRO/Ye1bR3TK6VA+dIovQfrH30SYrewPourjZsT2DIQPolkMnlxag J+KnEdKgLC9/hWrZ9LCmQbQfh+mFKw/vFy0QxbOEdh1ILMca/lbSugYatTjP4ipTisit xc72XXoqoVp0G2GntW4Ey/lilvRMYlKqXzHJ0KkN+If9+r7oz4iov5ChYdfde4RG9f8p 46HYXqbluIrObkqBK+NIpgtTjIzJYj0uHcwoDO8hgLOTHax8LJLzqvxC2ElQuJsRpFVi N5M6HvUm09Jr5QMeXvNTH838ZIr+QNQQPz2betFEdKusmhNF6AiEiR8mGMe08jsqouSk zVwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Dom/cZ0k+24hqFmx0vG9+fcMLWksVXHphBSLXDnzJpQ=; b=Y0JcNC9yXcf3cpIhxaNTn7DZussvKwFkzXx7a2gYlU/kZhuW2A9vbD5vKP5mf/p59a qM6bMTEkjUi8TKOMbGmpgH0BiSJGu9aZA54v+w0BVaFjJaSqiehH18uLbAA4PAJ5N0/n zbu0BmInW13X/ORCM6SPEriyDpot1iFwsiZHgKxK3kqg/vSxaFE1RoOhKqVIJONqMgwB kO4hYZqo6aUsdAo5HbYEIAAGH3TZ/gEkhivH2Y1IgM5vOcRCoKRYuVeYZ61LbPDp+SqY +lMYOlprIyxWKlMUJFJ8SfRv8mCZI29L7khSWpLzxOWvIXbr/zZknYslHvI2l6+6BYWb ka0g== X-Gm-Message-State: AFqh2kqMmavQZ0YpAnYHXAYjrpUn5Fduzt1TdVel67CjZl/ye4nWPrQx NLXVmthErm7YbtLFLIMFh6viTjBCMKgOCHOjWDSc4vj5JEfmbg== X-Google-Smtp-Source: AMrXdXvNLAGFuCLJR4gD5v3LG1d4DZhxsTM9OCNoiyptI437FNDp2eGzoqJIS0WTrJDpW7r408EnbeiXv3C1pj4cKro= X-Received: by 2002:a63:b0e:0:b0:44e:466f:4759 with SMTP id 14-20020a630b0e000000b0044e466f4759mr570448pgl.194.1671803622915; Fri, 23 Dec 2022 05:53:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Pedro Falcato" Date: Fri, 23 Dec 2022 13:53:32 +0000 Message-ID: Subject: Re: [edk2-devel] Error while compiling BOOT build To: devel@edk2.groups.io, spotu@qti.qualcomm.com Content-Type: multipart/alternative; boundary="0000000000001403e805f07f1d3c" --0000000000001403e805f07f1d3c Content-Type: text/plain; charset="UTF-8" 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 --0000000000001403e805f07f1d3c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 21, 2022 at 9:23 PM Siva= Rama Krishna Potu (Temp) <spo= tu@qti.qualcomm.com> wrote:

build.py...

: error C0DE: Tools code failure

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Please se= nd email to devel@edk2.groups.io for help, attaching following call stack trace!=

=C2=A0

Traceback (most recent call last):

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/GenFds/GenFds.py", line 371, in GenFdsApi

=C2=A0=C2=A0=C2=A0 GenFds.GenFd('', FdfParse= rObj, BuildWorkSpace, ArchList)

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/GenFds/GenFds.py", line 510, in GenFd

=C2=A0=C2=A0=C2=A0 FdObj.GenFd()

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/GenFds/Fd.py", line 131, in GenFd

=C2=A0=C2=A0=C2=A0 RegionObj.AddToBuffer (FdBuffer, = self.BaseAddress, self.BlockSizeList, self.ErasePolarity, GenFdsGlobalVaria= ble.ImageBinDict, self.DefineVarDict, Flag=3DFlag)

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/GenFds/Region.py", line 134, in AddToBuffer

=C2=A0=C2=A0=C2=A0 FvObj.AddToBuffer(FvBuffer, FvBas= eAddress, BlockSize, BlockNum, ErasePolarity, Flag=3DFlag)

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/GenFds/Fv.py", line 127, in AddToBuffer

=C2=A0=C2=A0=C2=A0 FileName =3D FfsFile.GenFfs(Macro= Dict, FvParentAddr=3DBaseAddress, IsMakefile=3DFlag, FvName=3Dself.UiFvName= )

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/GenFds/FfsInfStatement.py", line 518, in GenFfs

=C2=A0=C2=A0=C2=A0 InputSectList, InputSectAlignment= s =3D self.__GenComplexFileSection__(Rule, FvChildAddr, FvParentAddr, IsMak= efile=3DIsMakefile)

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/GenFds/FfsInfStatement.py", line 969, in __GenComplexFileSection__<= u>

=C2=A0=C2=A0=C2=A0 SectList, Align =3D Sect.GenSecti= on(self.OutputPath, self.ModuleGuid, SecIndex, self.KeyStringList, self, Is= Makefile =3D IsMakefile)

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/GenFds/EfiSection.py", line 263, in GenSection

=C2=A0=C2=A0=C2=A0 ImageObj =3D PeImageClass (File)<= u>

=C2=A0 File "/local/mnt/workspace/spotu/Palima/= BOOT.MXF.2.0-00864-WAIPIO-1_tbu_dsbl/boot_images/edk2/BaseTools/Source/Pyth= on/Common/Misc.py", line 1638, in __init__

=C2=A0=C2=A0=C2=A0 if ByteArray.tostring() !=3D b= 9;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/43bec9ea3d56f3662ede78= 023baa2a791b66acac). You need it for Python 3.9+ compatibility.

--
Pedro
--0000000000001403e805f07f1d3c--