* UEFI compile error @ 2021-02-03 6:10 suchenyu 2021-02-04 0:39 ` [edk2-devel] " Guomin Jiang 0 siblings, 1 reply; 3+ messages in thread From: suchenyu @ 2021-02-03 6:10 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 2950 bytes --] Hi, The error information occur when I compile a new platform UEFI source, so I need some help to correct this error, please. This is the error information under: build.py... : error C0DE: Unknown fatal error when processing [/home/git/sw-edkII/edkII/SenweiPkg/SenweiPkg.dec] (Please send email to devel@edk2.groups.io for help, attaching following call stack trace!) (Python 2.7.12 on linux2) Traceback (most recent call last): File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2637, in Main MyBuild.Launch() File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2432, in Launch self._MultiThreadBuildPlatform() File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2239, in _MultiThreadBuildPlatform Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain) File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2103, in PerformAutoGen self.Progress File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 43, in __init__ self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 117, in _InitWorker self.ProcessPcdType() File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 264, in ProcessPcdType Platform.Pcds File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1198, in Pcds self._Pcds.update(self._GetPcd(MODEL_PCD_FIXED_AT_BUILD)) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1691, in _GetPcd PcdValue, DatumType, MaxDatumSize = self._ValidatePcd(PcdCName, TokenSpaceGuid, Setting, Type, Dummy4) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 917, in _ValidatePcd self._DecPcds, self._GuidDict = GetDeclaredPcd(self, self._Bdb, self._Arch, self._Target, self._Toolchain, PkgSet) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 68, in GetDeclaredPcd for Pcd in Pkg.Pcds: File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 355, in Pcds self._Pcds.update(self._GetPcd(MODEL_PCD_DYNAMIC)) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 468, in _GetPcd EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s.%s header file is not found in %s line %s \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName, pcd.DefinitionPosition[0], pcd.DefinitionPosition[1] )) AttributeError: 'StructurePcd' object has no attribute 'DefinitionPosition' suchenyu@zoyatek.com.cn [-- Attachment #2: Type: text/html, Size: 4549 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [edk2-devel] UEFI compile error 2021-02-03 6:10 UEFI compile error suchenyu @ 2021-02-04 0:39 ` Guomin Jiang 2021-02-04 7:33 ` 回复: " gaoliming 0 siblings, 1 reply; 3+ messages in thread From: Guomin Jiang @ 2021-02-04 0:39 UTC (permalink / raw) To: devel@edk2.groups.io, suchenyu@zoyatek.com.cn [-- Attachment #1: Type: text/plain, Size: 3789 bytes --] It seem that you use some PCD directly but haven't declare it in DEC file as below error. File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 468, in _GetPcd EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s.%s header file is not found in %s line %s \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName, pcd.DefinitionPosition[0], pcd.DefinitionPosition[1] )) AttributeError: 'StructurePcd' object has no attribute 'DefinitionPosition' Please double confirm it. Thanks. From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of suchenyu@zoyatek.com.cn Sent: Wednesday, February 3, 2021 2:11 PM To: devel <devel@edk2.groups.io> Subject: [edk2-devel] UEFI compile error Hi, The error information occur when I compile a new platform UEFI source, so I need some help to correct this error, please. This is the error information under: build.py... : error C0DE: Unknown fatal error when processing [/home/git/sw-edkII/edkII/SenweiPkg/SenweiPkg.dec] (Please send email to devel@edk2.groups.io<mailto:devel@edk2.groups.io> for help, attaching following call stack trace!) (Python 2.7.12 on linux2) Traceback (most recent call last): File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2637, in Main MyBuild.Launch() File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2432, in Launch self._MultiThreadBuildPlatform() File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2239, in _MultiThreadBuildPlatform Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain) File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2103, in PerformAutoGen self.Progress File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 43, in __init__ self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 117, in _InitWorker self.ProcessPcdType() File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 264, in ProcessPcdType Platform.Pcds File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1198, in Pcds self._Pcds.update(self._GetPcd(MODEL_PCD_FIXED_AT_BUILD)) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1691, in _GetPcd PcdValue, DatumType, MaxDatumSize = self._ValidatePcd(PcdCName, TokenSpaceGuid, Setting, Type, Dummy4) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 917, in _ValidatePcd self._DecPcds, self._GuidDict = GetDeclaredPcd(self, self._Bdb, self._Arch, self._Target, self._Toolchain, PkgSet) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 68, in GetDeclaredPcd for Pcd in Pkg.Pcds: File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 355, in Pcds self._Pcds.update(self._GetPcd(MODEL_PCD_DYNAMIC)) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 468, in _GetPcd EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s.%s header file is not found in %s line %s \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName, pcd.DefinitionPosition[0], pcd.DefinitionPosition[1] )) AttributeError: 'StructurePcd' object has no attribute 'DefinitionPosition' ________________________________ suchenyu@zoyatek.com.cn<mailto:suchenyu@zoyatek.com.cn> [-- Attachment #2: Type: text/html, Size: 12859 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* 回复: [edk2-devel] UEFI compile error 2021-02-04 0:39 ` [edk2-devel] " Guomin Jiang @ 2021-02-04 7:33 ` gaoliming 0 siblings, 0 replies; 3+ messages in thread From: gaoliming @ 2021-02-04 7:33 UTC (permalink / raw) To: devel, guomin.jiang, suchenyu [-- Attachment #1: Type: text/plain, Size: 4863 bytes --] You can change this error message, then print the error message with pcd name, next to check this PCD definition in package DEC file. EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s.%s header file is not found in %s line %s \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName, pcd.DefinitionPosition[0], pcd.DefinitionPosition[1] )) ==> EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s.%s header file is not found \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName)) Thanks Liming 发件人: bounce+27952+71125+4905953+8761045@groups.io <bounce+27952+71125+4905953+8761045@groups.io> 代表 Guomin Jiang 发送时间: 2021年2月4日 8:40 收件人: devel@edk2.groups.io; suchenyu@zoyatek.com.cn 主题: Re: [edk2-devel] UEFI compile error It seem that you use some PCD directly but haven’t declare it in DEC file as below error. File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py" , line 468, in _GetPcd EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s. %s header file is not found in %s line %s \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName, pcd.DefinitionPosition[0], pcd.DefinitionPosition[1] )) AttributeError: 'StructurePcd' object has no attribute 'DefinitionPosition' Please double confirm it. Thanks. From: devel@edk2.groups.io <mailto:devel@edk2.groups.io> <devel@edk2.groups.io <mailto:devel@edk2.groups.io> > On Behalf Of suchenyu@zoyatek.com.cn <mailto:suchenyu@zoyatek.com.cn> Sent: Wednesday, February 3, 2021 2:11 PM To: devel <devel@edk2.groups.io <mailto:devel@edk2.groups.io> > Subject: [edk2-devel] UEFI compile error Hi, The error information occur when I compile a new platform UEFI source, so I need some help to correct this error, please. This is the error information under: build.py... : error C0DE: Unknown fatal error when processing [/home/git/sw-edkII/edkII/SenweiPkg/SenweiPkg.dec] (Please send email to devel@edk2.groups.io <mailto:devel@edk2.groups.io> for help, attaching following call stack trace!) (Python 2.7.12 on linux2) Traceback (most recent call last): File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Pyth on/build/build.py", line 2637, in Main MyBuild.Launch() File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Pyth on/build/build.py", line 2432, in Launch self._MultiThreadBuildPlatform() File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Pyth on/build/build.py", line 2239, in _MultiThreadBuildPlatform Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain) File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Pyth on/build/build.py", line 2103, in PerformAutoGen self.Progress File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.p y", line 43, in __init__ self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.p y", line 117, in _InitWorker self.ProcessPcdType() File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.p y", line 264, in ProcessPcdType Platform.Pcds File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py" , line 1198, in Pcds self._Pcds.update(self._GetPcd(MODEL_PCD_FIXED_AT_BUILD)) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py" , line 1691, in _GetPcd PcdValue, DatumType, MaxDatumSize = self._ValidatePcd(PcdCName, TokenSpaceGuid, Setting, Type, Dummy4) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py" , line 917, in _ValidatePcd self._DecPcds, self._GuidDict = GetDeclaredPcd(self, self._Bdb, self._Arch, self._Target, self._Toolchain, PkgSet) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/WorkspaceCommon. py", line 68, in GetDeclaredPcd for Pcd in Pkg.Pcds: File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py" , line 355, in Pcds self._Pcds.update(self._GetPcd(MODEL_PCD_DYNAMIC)) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py" , line 468, in _GetPcd EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s. %s header file is not found in %s line %s \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName, pcd.DefinitionPosition[0], pcd.DefinitionPosition[1] )) AttributeError: 'StructurePcd' object has no attribute 'DefinitionPosition' _____ suchenyu@zoyatek.com.cn <mailto:suchenyu@zoyatek.com.cn> [-- Attachment #2: Type: text/html, Size: 15491 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-04 7:33 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-02-03 6:10 UEFI compile error suchenyu 2021-02-04 0:39 ` [edk2-devel] " Guomin Jiang 2021-02-04 7:33 ` 回复: " gaoliming
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox