Re: [edk2-devel] Aurora build failure

2022-06-22 Thread Andrew Fish via groups.io
I’m guessing all the CI testing is on Python 3.8.x

I noticed one of the CI pipes is asking for Python 3.8 [1]

[1] 
https://github.com/tianocore/edk2/blob/master/.azurepipelines/Ubuntu-PatchCheck.yml

Thanks,

Andrew Fish


> On Jun 22, 2022, at 7:34 AM, Andrew (EFI) Fish  wrote:
> 
> That looks like an issue with using Python 3.9 as it changed tostring to 
> tobyte. 
> 
> Sent from my iPhone
> 
>> On Jun 22, 2022, at 7:25 AM, Shivraj Patil  wrote:
>> 
>> 
>> Hello,
>> I am observing the following failure while trying to build Aurora 
>> AU_LINUX_EMBEDDED_LE.PRODUCT.1.0_TARGET_ALL.01.318.215. Please 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._MultiThreadBuildPlatform()
>> |   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()
>> |   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 CreateAsBuiltInf
>> | PatchList = parsePcdInfoFromMapFile(
>> |   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 56, 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 113, in _parseForGCC
>> | efisecs = PeImageClass(efifilepath).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__
>> | if ByteArray.tostring() != b'PE\0\0':
>> | AttributeError: 'array.array' object has no attribute 'tostring'
>>  
>>  
>> Thanks & Regards,
>> Shivraj Patil
>> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90697): https://edk2.groups.io/g/devel/message/90697
Mute This Topic: https://groups.io/mt/91922911/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-




Re: [edk2-devel] Aurora build failure

2022-06-22 Thread Andrew Fish via groups.io
That looks like an issue with using Python 3.9 as it changed tostring to 
tobyte. 
> On Jun 22, 2022, at 7:25 AM, Shivraj Patil  wrote:
> 
> 
> Hello,
> I am observing the following failure while trying to build Aurora 
> AU_LINUX_EMBEDDED_LE.PRODUCT.1.0_TARGET_ALL.01.318.215. Please 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._MultiThreadBuildPlatform()
> |   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()
> |   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 CreateAsBuiltInf
> | PatchList = parsePcdInfoFromMapFile(
> |   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 56, 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 113, in _parseForGCC
> | efisecs = PeImageClass(efifilepath).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__
> | if ByteArray.tostring() != b'PE\0\0':
> | AttributeError: 'array.array' object has no attribute 'tostring'
>  
>  
> Thanks & Regards,
> Shivraj Patil
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90683): https://edk2.groups.io/g/devel/message/90683
Mute This Topic: https://groups.io/mt/91922911/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-




[edk2-devel] Aurora build failure

2022-06-22 Thread Shivraj Patil
Hello,
I am observing the following failure while trying to build Aurora 
AU_LINUX_EMBEDDED_LE.PRODUCT.1.0_TARGET_ALL.01.318.215. Please 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._MultiThreadBuildPlatform()
|   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()
|   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 CreateAsBuiltInf
| PatchList = parsePcdInfoFromMapFile(
|   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 56, 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 113, in _parseForGCC
| efisecs = PeImageClass(efifilepath).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__
| if ByteArray.tostring() != b'PE\0\0':
| AttributeError: 'array.array' object has no attribute 'tostring'


Thanks & Regards,
Shivraj Patil


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90682): https://edk2.groups.io/g/devel/message/90682
Mute This Topic: https://groups.io/mt/91922911/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-