回复: [edk2-devel] Build does not work in Python 3.9 !

gaoliming gaoliming at byosoft.com.cn
Tue Jan 5 07:55:12 UTC 2021


Yes. This issue has been submitted https://bugzilla.tianocore.org/show_bug.cgi?id=3136.

 

Bob has provided the patch to fix it. Now, the patch is under code review. 

 

Thanks

Liming

发件人: bounce+27952+69524+4905953+8761045 at groups.io <bounce+27952+69524+4905953+8761045 at groups.io> 代表 Марк Коренберг
发送时间: 2020年12月29日 18:07
收件人: devel at edk2.groups.io
主题: [edk2-devel] Build does not work in Python 3.9 !

 




Processing meta-data .

Architecture(s)  = AARCH64
Build target     = RELEASE
Toolchain        = GCC5

Active Platform          = /home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2-platforms/Platform/SolidRun/LX2160aCex7/LX2160aCex7.dsc
.... 


build.py...
 : error C0DE: Unknown fatal error when processing [/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf [AARCH64, GCC5, RELEASE]]

(Please send email to devel at edk2.groups.io <mailto:devel at edk2.groups.io>  for help, attaching following call stack trace!)

(Python 3.9.0 on linux) Traceback (most recent call last):
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2635, in Main
    MyBuild.Launch()
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2430, in Launch
    self._MultiThreadBuildPlatform()
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2238, in _MultiThreadBuildPlatform
    Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain)
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2112, in PerformAutoGen
    CmdListDict = self._GenFfsCmd(Wa.ArchList)
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2009, in _GenFfsCmd
    GenFfsDict = GenFds.GenFfsMakefile('', GlobalData.gFdfParser, self, ArchList, GlobalData)
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/Python/GenFds/GenFds.py", line 544, in GenFfsMakefile
    FvObj.AddToBuffer(Buffer=None, Flag=True)
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/Python/GenFds/Fv.py", line 127, in AddToBuffer
    FileName = FfsFile.GenFfs(MacroDict, FvParentAddr=BaseAddress, IsMakefile=Flag, FvName=self.UiFvName)
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/Python/GenFds/FfsInfStatement.py", line 518, in GenFfs
    InputSectList, InputSectAlignments = self.__GenComplexFileSection__(Rule, FvChildAddr, FvParentAddr, IsMakefile=IsMakefile)
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/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 "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/Python/GenFds/EfiSection.py", line 218, in GenSection
    GenFdsGlobalVariable.GenerateSection(OutputFile, [], 'EFI_SECTION_USER_INTERFACE',
  File "/home/mmarkk/SOLIDRUN/lx2160a_uefi/build/tianocore/edk2/BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py", line 466, in GenerateSection
    SectionData.fromstring(Ui.encode("utf_16_le"))
AttributeError: 'array.array' object has no attribute 'fromstring'


- Failed -
Build end time: 15:02:00, Dec.29 2020
Build total time: 00:00:05

-- 

Segmentation fault





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#69682): https://edk2.groups.io/g/devel/message/69682
Mute This Topic: https://groups.io/mt/79446111/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20210105/f3698290/attachment.htm>


More information about the edk2-devel-archive mailing list