From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rn-mailsvcp-ppex-lapp14.apple.com (rn-mailsvcp-ppex-lapp14.apple.com [17.179.253.33]) by mx.groups.io with SMTP id smtpd.web08.8000.1655908449376861459 for ; Wed, 22 Jun 2022 07:34:09 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=KLy8D9Wu; spf=pass (domain: apple.com, ip: 17.179.253.33, mailfrom: afish@apple.com) Received: from pps.filterd (rn-mailsvcp-ppex-lapp14.rno.apple.com [127.0.0.1]) by rn-mailsvcp-ppex-lapp14.rno.apple.com (8.16.1.2/8.16.1.2) with SMTP id 25ME9lkG022375; Wed, 22 Jun 2022 07:34:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=content-type : content-transfer-encoding : from : mime-version : subject : date : message-id : references : in-reply-to : to; s=20180706; bh=xeGEQK9dyxctDg6l7ISB4weBoy03TdMdQT6A6Zrj0A0=; b=KLy8D9WuA2Z2dDns1CcYN8K1Cay5xZMeIoQtaNlAmN9GzA9M1GvsF1jToEgiiioRpBz3 3sh2mHz5IG/jBeJ9+Q2Exk4g126xjd7MtJupAs0VMfHqK6yX6L29tho7vlBMX0BbqaDl I448+6A+33IVP+8avoo5vDNE08N4uJpeYjm1kplcIKwI5qwglDFvYdFW9RoxjiQyTUmd BkARjPlbEpDxSpEf+jXZxhya0CKJZwfsbcN7m5yaNHldKWmVdyuie87YcZL3JM3yY2Tu xBpbYTDYlpHHAXCmS6/zUGG2QzuYXFoa6C21D9JTsJfr99PGYFg9MBkjxym5Rva9Pfkh HA== Received: from rn-mailsvcp-mta-lapp04.rno.apple.com (rn-mailsvcp-mta-lapp04.rno.apple.com [10.225.203.152]) by rn-mailsvcp-ppex-lapp14.rno.apple.com with ESMTP id 3gu7caawcn-12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 22 Jun 2022 07:34:08 -0700 Received: from rn-mailsvcp-mmp-lapp03.rno.apple.com (rn-mailsvcp-mmp-lapp03.rno.apple.com [17.179.253.16]) by rn-mailsvcp-mta-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPS id <0RDV00UU9V4U2760@rn-mailsvcp-mta-lapp04.rno.apple.com>; Wed, 22 Jun 2022 07:34:06 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp03.rno.apple.com by rn-mailsvcp-mmp-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) id <0RDV00500UVRKY00@rn-mailsvcp-mmp-lapp03.rno.apple.com>; Wed, 22 Jun 2022 07:34:06 -0700 (PDT) X-Va-A: X-Va-T-CD: 10ff87dd0bbeabd8e9dd968891e54543 X-Va-E-CD: 27d1f218c5a217ed930aa4d044a6f61a X-Va-R-CD: 757addd88c3be859864711ac2269aa67 X-Va-CD: 0 X-Va-ID: bbf915ce-9581-4a8b-a9cf-e14357252edb X-V-A: X-V-T-CD: 10ff87dd0bbeabd8e9dd968891e54543 X-V-E-CD: 27d1f218c5a217ed930aa4d044a6f61a X-V-R-CD: 757addd88c3be859864711ac2269aa67 X-V-CD: 0 X-V-ID: 66db92ac-2f7d-4ddc-a7c0-11f8e9fa9c97 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517,18.0.883 definitions=2022-06-22_04:2022-06-22,2022-06-22 signatures=0 Received: from smtpclient.apple (unknown [17.234.69.47]) by rn-mailsvcp-mmp-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPSA id <0RDV00A51V4U9E00@rn-mailsvcp-mmp-lapp03.rno.apple.com>; Wed, 22 Jun 2022 07:34:06 -0700 (PDT) From: "Andrew Fish" MIME-version: 1.0 (1.0) Subject: Re: [edk2-devel] Aurora build failure Date: Wed, 22 Jun 2022 07:34:05 -0700 Message-id: References: In-reply-to: To: devel@edk2.groups.io, shivpati@qti.qualcomm.com X-Mailer: iPhone Mail (19F77) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517,18.0.883 definitions=2022-06-22_04:2022-06-22,2022-06-22 signatures=0 Content-type: multipart/alternative; boundary=Apple-Mail-44BD7CAA-23BE-47B4-B5F2-1265222681FA Content-transfer-encoding: 7bit --Apple-Mail-44BD7CAA-23BE-47B4-B5F2-1265222681FA Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable That looks like an issue with using Python 3.9 as it changed tostring to to= byte.=20 > On Jun 22, 2022, at 7:25 AM, Shivraj Patil wr= ote: >=20 > =EF=BB=BF > Hello, > I am observing the following failure while trying to build Aurora AU_LINU= X_EMBEDDED_LE.PRODUCT.1.0_TARGET_ALL.01.318.215. Please have a look and pro= vide a solution for the same. > =20 > (Python 3.9.4 on linux) Traceback (most recent call last): > | File "/local/mnt3/workspace3/shivpati/Aurora/build-qti-distro-xr-debu= g/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0/edk2/BaseTools/BinWrappers/Pos= ixLike/../../Source/Python/build/build.py", line 2596, in Main > | MyBuild.Launch() > | File "/local/mnt3/workspace3/shivpati/Aurora/build-qti-distro-xr-debu= g/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0/edk2/BaseTools/BinWrappers/Pos= ixLike/../../Source/Python/build/build.py", line 2391, in Launch > | self._MultiThreadBuildPlatform() > | File "/local/mnt3/workspace3/shivpati/Aurora/build-qti-distro-xr-debu= g/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0/edk2/BaseTools/BinWrappers/Pos= ixLike/../../Source/Python/build/build.py", line 2271, in _MultiThreadBuild= Platform > | self.CreateAsBuiltInf() > | File "/local/mnt3/workspace3/shivpati/Aurora/build-qti-distro-xr-debu= g/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0/edk2/BaseTools/BinWrappers/Pos= ixLike/../../Source/Python/build/build.py", line 2401, in CreateAsBuiltInf > | Module.CreateAsBuiltInf() > | File "/local/mnt3/workspace3/shivpati/Aurora/build-qti-distro-xr-debu= g/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0/edk2/BaseTools/Source/Python/A= utoGen/ModuleAutoGen.py", line 1503, in CreateAsBuiltInf > | PatchList =3D parsePcdInfoFromMapFile( > | File "/local/mnt3/workspace3/shivpati/Aurora/build-qti-distro-xr-debu= g/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0/edk2/BaseTools/Source/Python/G= enPatchPcdTable/GenPatchPcdTable.py", line 56, in parsePcdInfoFromMapFile > | return _parseForGCC(lines, efifilepath) > | File "/local/mnt3/workspace3/shivpati/Aurora/build-qti-distro-xr-debu= g/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0/edk2/BaseTools/Source/Python/G= enPatchPcdTable/GenPatchPcdTable.py", line 113, in _parseForGCC > | efisecs =3D PeImageClass(efifilepath).SectionHeaderList > | File "/local/mnt3/workspace3/shivpati/Aurora/build-qti-distro-xr-debu= g/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0/edk2/BaseTools/Source/Python/C= ommon/Misc.py", line 1638, in __init__ > | if ByteArray.tostring() !=3D b'PE\0\0': > | AttributeError: 'array.array' object has no attribute 'tostring' > =20 > =20 > Thanks & Regards, > Shivraj Patil >=20 --Apple-Mail-44BD7CAA-23BE-47B4-B5F2-1265222681FA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable That looks like an issue with using Pyt= hon 3.9 as it changed tostring to tobyte. 


On Jun 22, 2022, at 7:25 = AM, Shivraj Patil <shivpati@qti.qualcomm.com> wrote:

=EF=BB=BF

Hello,

I am observing the following failure while trying to= build Aurora AU_LINUX_EMBEDDED_LE.PRODUCT.1.0_TARGET_ALL.01.318.215. Pleas= e have a look and provide a solution for the same.

 

(Python 3.9.4 on linux) Traceback (most recent call = last):

|   File "/local/mnt3/workspace3/shivpati/= Aurora/build-qti-distro-xr-debug/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0= /edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", = line 2596, in Main

|     MyBuild.Launch()

|   File "/local/mnt3/workspace3/shivpati/= Aurora/build-qti-distro-xr-debug/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0= /edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", = line 2391, in Launch

|     self._MultiThreadBuildPlat= form()

|   File "/local/mnt3/workspace3/shivpati/= Aurora/build-qti-distro-xr-debug/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0= /edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", = line 2271, in _MultiThreadBuildPlatform

|     self.CreateAsBuiltInf()

|   File "/local/mnt3/workspace3/shivpati/= Aurora/build-qti-distro-xr-debug/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0= /edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", = line 2401, in CreateAsBuiltInf

|     Module.CreateAsBuiltInf()<= o:p>

|   File "/local/mnt3/workspace3/shivpati/= Aurora/build-qti-distro-xr-debug/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0= /edk2/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py", line 1503, in Crea= teAsBuiltInf

|     PatchList =3D parsePcdInfo= FromMapFile(

|   File "/local/mnt3/workspace3/shivpati/= Aurora/build-qti-distro-xr-debug/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0= /edk2/BaseTools/Source/Python/GenPatchPcdTable/GenPatchPcdTable.py", line 5= 6, in parsePcdInfoFromMapFile

|     return _parseForGCC(lines,= efifilepath)

|   File "/local/mnt3/workspace3/shivpati/= Aurora/build-qti-distro-xr-debug/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0= /edk2/BaseTools/Source/Python/GenPatchPcdTable/GenPatchPcdTable.py", line 1= 13, in _parseForGCC

|     efisecs =3D PeImageClass(e= fifilepath).SectionHeaderList

|   File "/local/mnt3/workspace3/shivpati/= Aurora/build-qti-distro-xr-debug/tmp-glibc/work/sxrneo-oe-linux/edk2/git-r0= /edk2/BaseTools/Source/Python/Common/Misc.py", line 1638, in __init__<= /o:p>

|     if ByteArray.tostring() != =3D b'PE\0\0':

| AttributeError: 'array.array' object has no attrib= ute 'tostring'

 

 

Thanks & Regards,

Shivraj Patil

=20
--Apple-Mail-44BD7CAA-23BE-47B4-B5F2-1265222681FA--