<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:????;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.apple-tab-span
        {mso-style-name:apple-tab-span;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:DengXian;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:DengXian'>You can change this error message, then print the error message with pcd name, next to check this PCD definition in package DEC file. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:DengXian'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:DengXian'>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] ))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Wingdings'>è</span><span lang=EN-US style='font-size:10.5pt;font-family:DengXian'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:DengXian'>EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s.%s header file is not found \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:DengXian'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:DengXian'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:DengXian'>Liming<o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-family:DengXian'>发件人<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-family:DengXian'> bounce+27952+71125+4905953+8761045@groups.io <bounce+27952+71125+4905953+8761045@groups.io> </span><b><span style='font-family:DengXian'>代表 </span></b><span lang=EN-US style='font-family:DengXian'>Guomin Jiang<br></span><b><span style='font-family:DengXian'>发送时间<span lang=EN-US>:</span></span></b><span lang=EN-US style='font-family:DengXian'> 2021</span><span style='font-family:DengXian'>年<span lang=EN-US>2</span>月<span lang=EN-US>4</span>日<span lang=EN-US> 8:40<br></span><b>收件人<span lang=EN-US>:</span></b><span lang=EN-US> devel@edk2.groups.io; suchenyu@zoyatek.com.cn<br></span><b>主题<span lang=EN-US>:</span></b><span lang=EN-US> Re: [edk2-devel] UEFI compile error<o:p></o:p></span></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>It seem that you use some PCD directly but haven’t declare it in DEC file as below error.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 468, in _GetPcd<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    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] ))<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>AttributeError: 'StructurePcd' object has no attribute 'DefinitionPosition'<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Please double confirm it.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks.<o:p></o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> <a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a> <<a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>> <b>On Behalf Of </b><a href="mailto:suchenyu@zoyatek.com.cn">suchenyu@zoyatek.com.cn</a><br><b>Sent:</b> Wednesday, February 3, 2021 2:11 PM<br><b>To:</b> devel <<a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a>><br><b>Subject:</b> [edk2-devel] UEFI compile error<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>Hi,<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>     The error information occur when I compile a new platform UEFI source, so I need some help to correct this error, please.<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    This is the error information under: <o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>build.py...<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'> : error C0DE: Unknown fatal error when processing [/home/git/sw-edkII/edkII/SenweiPkg/SenweiPkg.dec]<o:p></o:p></span></p></div><div><p class=MsoNormal><span class=apple-tab-span><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>                </span></span><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'><o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>(Please send email to <a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a> for help, attaching following call stack trace!)<o:p></o:p></span></p></div></div><div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>(Python 2.7.12 on linux2) Traceback (most recent call last):<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2637, in Main<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    MyBuild.Launch()<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2432, in Launch<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    self._MultiThreadBuildPlatform()<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2239, in _MultiThreadBuildPlatform<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2103, in PerformAutoGen<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    self.Progress<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 43, in __init__<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 117, in _InitWorker<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    self.ProcessPcdType()<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 264, in ProcessPcdType<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    Platform.Pcds<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1198, in Pcds<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    self._Pcds.update(self._GetPcd(MODEL_PCD_FIXED_AT_BUILD))<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 1691, in _GetPcd<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    PcdValue, DatumType, MaxDatumSize = self._ValidatePcd(PcdCName, TokenSpaceGuid, Setting, Type, Dummy4)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.py", line 917, in _ValidatePcd<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    self._DecPcds, self._GuidDict = GetDeclaredPcd(self, self._Bdb, self._Arch, self._Target, self._Toolchain, PkgSet)<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/WorkspaceCommon.py", line 68, in GetDeclaredPcd<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    for Pcd in Pkg.Pcds:<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 355, in Pcds<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    self._Pcds.update(self._GetPcd(MODEL_PCD_DYNAMIC))<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 468, in _GetPcd<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>    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] ))<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'>AttributeError: 'StructurePcd' object has no attribute 'DefinitionPosition'<o:p></o:p></span></p></div><div><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'><o:p> </o:p></span></p></div></div><div><div class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"????",serif;color:black'><hr size=1 width=168 style='width:126.0pt' noshade style='color:#B5C4DF' align=left></span></div></div><div><div style='margin-left:7.5pt;margin-top:7.5pt;margin-right:7.5pt;margin-bottom:7.5pt'><div><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif;color:black'><a href="mailto:suchenyu@zoyatek.com.cn">suchenyu@zoyatek.com.cn</a><o:p></o:p></span></p></div></div></div><div><p class=MsoNormal></o:p></span></p></div></div></body></html>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr> Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/71186">View/Reply Online (#71186)</a> |    |  <a target="_blank" href="https://groups.io/mt/80375041/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>