public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Build does not work in Python 3.9 !
@ 2020-12-29 10:06 Марк Коренберг
  2021-01-05  7:55 ` 回复: [edk2-devel] " gaoliming
  0 siblings, 1 reply; 2+ messages in thread
From: Марк Коренберг @ 2020-12-29 10:06 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 3236 bytes --]

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@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

[-- Attachment #2: Type: text/html, Size: 3763 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* 回复: [edk2-devel] Build does not work in Python 3.9 !
  2020-12-29 10:06 Build does not work in Python 3.9 ! Марк Коренберг
@ 2021-01-05  7:55 ` gaoliming
  0 siblings, 0 replies; 2+ messages in thread
From: gaoliming @ 2021-01-05  7:55 UTC (permalink / raw)
  To: devel, socketpair; +Cc: bob.c.feng

[-- Attachment #1: Type: text/plain, Size: 3806 bytes --]

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@groups.io <bounce+27952+69524+4905953+8761045@groups.io> 代表 Марк Коренберг
发送时间: 2020年12月29日 18:07
收件人: devel@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@edk2.groups.io <mailto:devel@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




[-- Attachment #2: Type: text/html, Size: 7976 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-05  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-29 10:06 Build does not work in Python 3.9 ! Марк Коренберг
2021-01-05  7:55 ` 回复: [edk2-devel] " gaoliming

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox