From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web12.4613.1612423995480197899 for ; Wed, 03 Feb 2021 23:33:17 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 04 Feb 2021 15:33:05 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , , References: <202102031410537949606@zoyatek.com.cn> In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gVUVGSSBjb21waWxlIGVycm9y?= Date: Thu, 4 Feb 2021 15:33:13 +0800 Message-ID: <006601d6fac7$fee08050$fca180f0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQGURTlFdhcWKa2HUiErlDtnauHQZAJRsDQBqrp3c0A= Content-Type: multipart/alternative; boundary="----=_NextPart_000_0067_01D6FB0B.0D056E00" Content-Language: zh-cn ------=_NextPart_000_0067_01D6FB0B.0D056E00 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable You can change this error message, then print the error message with pcd name, next to check this PCD definition in package DEC file.=20 =20 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] )) =3D=3D> EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pcd %s.%s header file is not found \n" % (pcd.TokenSpaceGuidCName, pcd.TokenCName)) =20 Thanks Liming =B7=A2=BC=FE=C8=CB: bounce+27952+71125+4905953+8761045@groups.io =B4=FA=B1=ED Guomin Jiang =B7=A2=CB=CD=CA=B1=BC=E4: 2021=C4=EA2=D4=C24=C8=D5 8:40 =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io; suchenyu@zoyatek.com.cn =D6=F7=CC=E2: Re: [edk2-devel] UEFI compile error =20 It seem that you use some PCD directly but haven=A1=AFt declare it in DEC = file as below error. =20 File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.p= y" , 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= ' =20 Please double confirm it. Thanks. From: devel@edk2.groups.io > On Behalf Of suchenyu@zoyatek.com.cn =20 Sent: Wednesday, February 3, 2021 2:11 PM To: devel > Subject: [edk2-devel] UEFI compile error =20 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:=20 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!) =20 (Python 2.7.12 on linux2) Traceback (most recent call last): File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Py= th on/build/build.py", line 2637, in Main MyBuild.Launch() File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Py= th on/build/build.py", line 2432, in Launch self._MultiThreadBuildPlatform() File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Py= th on/build/build.py", line 2239, in _MultiThreadBuildPlatform Wa, self.BuildModules =3D self.PerformAutoGen(BuildTarget,ToolChain) File "/home/git/sw-edkII/edkII/BaseTools//BinWrappers/PosixLike/../../Source/Py= th 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.p= y" , 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.p= y" , line 1691, in _GetPcd PcdValue, DatumType, MaxDatumSize =3D self._ValidatePcd(PcdCName, TokenSpaceGuid, Setting, Type, Dummy4) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DscBuildData.p= y" , line 917, in _ValidatePcd self._DecPcds, self._GuidDict =3D GetDeclaredPcd(self, self._Bdb, self._Arch, self._Target, self._Toolchain, PkgSet) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/WorkspaceCommo= n. py", line 68, in GetDeclaredPcd for Pcd in Pkg.Pcds: File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.p= y" , line 355, in Pcds self._Pcds.update(self._GetPcd(MODEL_PCD_DYNAMIC)) File "/home/git/sw-edkII/edkII/BaseTools/Source/Python/Workspace/DecBuildData.p= y" , 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= ' =20 _____ suchenyu@zoyatek.com.cn =20 ------=_NextPart_000_0067_01D6FB0B.0D056E00 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

You can change this error message, then print the error message wit= h pcd name, next to check this PCD definition in package DEC file.

 

EdkLogg= er.error("build", PCD_STRUCTURE_PCD_ERROR, "The structure Pc= d %s.%s header file is not found in %s line %s \n" % (pcd.TokenSpaceGu= idCName, pcd.TokenCName, pcd.DefinitionPosition[0], pcd.DefinitionPosition[= 1] ))

=A8=A8

EdkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The= structure Pcd %s.%s header file is not found \n" % (pcd.TokenSpaceGui= dCName, pcd.TokenCName))

 

Thanks

<= span lang=3DEN-US style=3D'font-size:10.5pt;font-family:DengXian'>Liming

=B7=A2=BC=FE=C8=CB:= bounce+27952+71125+49059= 53+8761045@groups.io <bounce+27952+71125+4905953+8761045@groups.io> <= /span>=B4=FA=B1=ED Guomin Jiang
=B7=A2=CB=CD=CA=B1=BC=E4: 2021= =C4=EA2=D4=C24=C8=D5 8:40
=CA=D5=BC=FE=C8=CB: de= vel@edk2.groups.io; suchenyu@zoyatek.com.cn
=D6=F7=CC=E2: Re: [edk2-devel] UEFI compile = error

 

It seem= that you use some PCD directly but haven=A1=AFt declare it in DEC file as = below error.

 <= /o:p>

File "/home/git/sw-edkII/= edkII/BaseTools/Source/Python/Workspace/DecBuildData.py", line 468, in= _GetPcd

    E= dkLogger.error("build", PCD_STRUCTURE_PCD_ERROR, "The struct= ure Pcd %s.%s header file is not found in %s line %s \n" % (pcd.TokenS= paceGuidCName, pcd.TokenCName, pcd.DefinitionPosition[0], pcd.DefinitionPos= ition[1] ))

AttributeErro= r: 'StructurePcd' object has no attribute 'DefinitionPosition'

 

Please double confirm it.

Thanks.

From: devel@edk= 2.groups.io <devel@edk2.grou= ps.io> On Behalf Of suchenyu@zoyatek.com.cn
Sent: Wednesday, February 3, 2021 2= :11 PM
To: devel <deve= l@edk2.groups.io>
Subject: [edk2-devel] UEFI compile error=

<= o:p> 

Hi,<= /o:p>

    =  The error information occur when I compile a new platform UEFI source= , so I need some help to correct this error, please.

<= /div>

    This is the error info= rmation under: 

<= span lang=3DEN-US style=3D'font-size:10.5pt;font-family:"????",serif;color:= black'>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 linu= x2) Traceback (most recent call last):

  File "/home/git/sw-edkII/edkII/BaseToo= ls//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 26= 37, in Main

&= nbsp;   MyBuild.Launch()

  File "/home/git/sw-edkII/edkII/BaseTools//BinWr= appers/PosixLike/../../Source/Python/build/build.py", line 2432, in La= unch

  &n= bsp; self._MultiThreadBuildPlatform()

  File "/home/git/sw-edkII/edkII/BaseTool= s//BinWrappers/PosixLike/../../Source/Python/build/build.py", line 223= 9, in _MultiThreadBuildPlatform

    Wa, self.BuildModules =3D self.PerformAutoG= en(BuildTarget,ToolChain)

  File "/home/git/sw-edkII/edkII/BaseTools//BinWrappe= rs/PosixLike/../../Source/Python/build/build.py", line 2103, in Perfor= mAutoGen

 = ;   self.Progress

  File "/home/git/sw-edkII/edkII/BaseTools/Source/Python= /AutoGen/WorkspaceAutoGen.py", line 43, in __init__<= /p>

    self._InitWorker(W= orkspace, MetaFile, Target, Toolchain, Arch, *args, **kwargs)

  File "/home/git= /sw-edkII/edkII/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", = line 117, in _InitWorker

    self.ProcessPcdType()

<= div>

  File "/home/git/sw-edkII/edkII= /BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py", line 264, in Pr= ocessPcdType

&= nbsp;   Platform.Pcds

  File "/home/git/sw-edkII/edkII/BaseTools/Source/Py= thon/Workspace/DscBuildData.py", line 1198, in Pcds<= /p>

    self._Pcds.update(= self._GetPcd(MODEL_PCD_FIXED_AT_BUILD))

  File "/home/git/sw-edkII/edkII/BaseTo= ols/Source/Python/Workspace/DscBuildData.py", line 1691, in _GetPcd

    P= cdValue, DatumType, MaxDatumSize =3D self._ValidatePcd(PcdCName, TokenSpace= Guid, Setting, Type, Dummy4)

  File "/home/git/sw-edkII/edkII/BaseTools/Source/= Python/Workspace/DscBuildData.py", line 917, in _ValidatePcd

    self._Dec= Pcds, self._GuidDict =3D 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 GetDeclaredPc= d

   = ; 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/P= ython/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'

 

=
------=_NextPart_000_0067_01D6FB0B.0D056E00--