From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 83B38AC1617 for ; Mon, 27 Nov 2023 18:16:11 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=HruYtZn6JsC2gMbcMYtsl6UoM6SKnVJs5k8C5BjH0nw=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Message-ID:Date:User-Agent:Subject:To:Cc:References:From:In-Reply-To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Language; s=20140610; t=1701108970; v=1; b=auWtq9fjbJGwUtZCsdDS+YtuM7lR4eyrY3uv1HwqKZ+SjCTMcqLp6f7qeVaeGKSHN3tngGQc K79r+oX11XSCCCbG+2IYPzD+XYo5rzL15KOyMsPFJa+LIddIuuagRLEwJRE8jkSYHqKVs/YXrwx FrITHYs3Inq4WaHx6HYgBNXY= X-Received: by 127.0.0.2 with SMTP id 8frTYY7687511xCmazmj9fxg; Mon, 27 Nov 2023 10:16:10 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.92.41.103]) by mx.groups.io with SMTP id smtpd.web11.102278.1701108969317198588 for ; Mon, 27 Nov 2023 10:16:09 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l5HcVET/tHcJHbHoxlSQvN5oNAKifoLNSWZgjCNFR0amUxIi0QfpNE5Og4QZH32anXMFPEX5kEOK4vrZBzrjMjt9amlh1GYNULwKDYDEVS+JOMmAMjF4xcLrX1TTUn+ctO2Xts0vkfAlkJ++RMGth3rwGBK+ox5uzllLXhkne9Yk9VDs4Og5P1yIyTJl6EXgReeCpOwjQNZhULpKo4FOE9blvF/a4XTuXObgCk/TQeMpMD/ASZkRLeyKZOFhGnyCLyd07x/jZ3muD35hriOPfgJ/POE7ju4zoUriKTIrSEaTojwi0H9Gx3EnFt5lCya7R+QZNSdxLzySopAM9wtw1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=i8QZeKklwdLk/ZcoB0yJtzAcRHMLikWt66q66quVw8k=; b=PlPTRGv4vapOsJazbgJkG3sAFy85wAGnxyHvPL48UKPkAfqEPYtlCmSBQ+8Xag4Xja68QAGFlSX6eFGY8jBLUQ+RChGnn9ZLDGD91jp/XK8XWxWZpEZSCGmfod7wPm0RVKykkplMzAwIEQDZRh3O2VKJv/nylsIY6+QdT5oIV3vMDMmY+DjvTw28PiqiOrZKkkKDlLugpHRnAfFkMSqKrNWFNGd7GsA1UFxJtE31B00NxjhxfDAkCdZrw2IoUugkD0DUnFhgzITxVaycSkKZUVtpaP4V5wEz7SHYvt+74TcUGrF9Y8IJd+db1pvRiiuC8caxypZBGTJMUXdAdk5dKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none X-Received: from BY3PR19MB4900.namprd19.prod.outlook.com (2603:10b6:a03:354::11) by PH0PR19MB4842.namprd19.prod.outlook.com (2603:10b6:510:96::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.29; Mon, 27 Nov 2023 18:16:07 +0000 X-Received: from BY3PR19MB4900.namprd19.prod.outlook.com ([fe80::657a:4f05:22fd:32dc]) by BY3PR19MB4900.namprd19.prod.outlook.com ([fe80::657a:4f05:22fd:32dc%6]) with mapi id 15.20.7025.022; Mon, 27 Nov 2023 18:16:01 +0000 Message-ID: Date: Mon, 27 Nov 2023 10:16:00 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] BaseTools KeyError When Building EmulatorPkg To: "devel@edk2.groups.io" , "lersek@redhat.com" , "ryderkeys@proton.me" Cc: Sean Brogan References: <4b054861-5558-c9c8-0850-281abb9ac6e5@redhat.com> From: "Sean" In-Reply-To: <4b054861-5558-c9c8-0850-281abb9ac6e5@redhat.com> X-TMN: [xAR+ci5m502DvuaUEW0c7mLNYWfNdcuLhi/YzKSQScY0P0w/ldMCv7ERJQGox3mE] X-ClientProxiedBy: MW4P221CA0022.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::27) To BY3PR19MB4900.namprd19.prod.outlook.com (2603:10b6:a03:354::11) X-Microsoft-Original-Message-ID: <0edd0d40-042c-4310-a642-9d7131193975@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY3PR19MB4900:EE_|PH0PR19MB4842:EE_ X-MS-Office365-Filtering-Correlation-Id: c40609ae-d453-49d2-0f56-08dbef74e8fa X-Microsoft-Antispam-Message-Info: CTYEel16pUW42YeUDw8WnxWV4JRfIp6zXlbg0ajF9dVbOOr1kN0xEiEu9n6rIuLzb8UPoqrshIsONu9kIDeHmjfDtj9z2gzTIYO5ymt85z7uoybGV14z7sP7CQUAMnWer93dOAlNWTDPmJ1tGx55uFbmf3fTNHlbGJ9E2U9j9Ko5LxXu/Wzjipy3/PEpW84MCTtS8gzfHVZYKxmsugCsiK42nORZw1CfBCYTqqEXQPPh4Cz62LM6IyGcDYNZJFmu32eUiMnYJowzv24RLsYNtL84hj5owNhtwI0X8gdtZHyWR9XegghZ/z0iOGPhPOPgDIePKntP0p9CwHp7akGd8gQ4Z/FMwnXpycCUx7OoOsM7tElRVSBEfuQ3bi5sT6f/5LsFqvDf+7x5rvHfjFmL5HfhUkE6ktTUSikJHeIES99O2WnpHpOPet2O6Yx9F2IBw3D6fgWQMKMiGN6XnghU9EFnLfHcK3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2QnU3ZS81RXhUcmZPdXd1MDNWNVA5a3BrMXZKVVZYcG8wL1c0?= =?utf-8?B?dHBBSmNnMzdYby9NOW10VFVNQ2lwcDlmK1hTcXBMVTk1N3drcEIvaitIWFc0?= =?utf-8?B?VUZEUHZlVG5zcTFKcmtIWng4M093aXJuZEE3WFhMaGpuQ1AxQWVXM0dRPT0=?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c40609ae-d453-49d2-0f56-08dbef74e8fa X-MS-Exchange-CrossTenant-AuthSource: BY3PR19MB4900.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2023 18:16:01.2426 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR19MB4842 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,spbrogan@outlook.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 2NaU6n8pBeWtqJHM0Vbyn5EQx7686176AA= Content-Type: multipart/alternative; boundary="------------vGh60GLKesDHMna9ZJv4GMfu" Content-Language: en-US X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=auWtq9fj; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=outlook.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --------------vGh60GLKesDHMna9ZJv4GMfu Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit We are looking at it. It seems to be a problem in the edk2-basetools but at this point it still isn't obvious. You can do a 'pip uninstall edk2-basetools' and then I would expect your build would work. I also see that you didn't build edk2 basetools (step 6) documented here: edk2/EmulatorPkg/PlatformCI at master · tianocore/edk2 (github.com) .  Without doing that your build will fail as well. The CI system is building fine so we are still looking into it. I'll update the thread when we have more info. Thanks Sean On 11/21/2023 8:22 AM, Laszlo Ersek wrote: > Adding Sean > > Laszlo > > On 11/19/23 23:43, ryderkeys via groups.io wrote: >> Hi all, >> >> I am trying to build EDK2 from most recent Github (namely, EmulatorPkg) with the new Stuart build system on Windows 10 22H2 64 bit with VS 2019. I'm getting the following error which directed me to this mailing list. More details on my build process below. >> >> INFO - build.py... >> INFO - : error C0DE: Unknown fatal error when processing [c:\users\ryder\edk2_2023\edk2\EmulatorPkg\EmulatorPkg.dsc] >> INFO - >> INFO - (Please send email todevel@edk2.groups.io for help, attaching following call stack trace!) >> INFO - >> INFO - (Python 3.11.5 on win32) Traceback (most recent call last): >> INFO - File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 2692, in Main >> INFO - MyBuild = Build(Target, Workspace, Option,LogQ) >> INFO - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> INFO - File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 815, in __init__ >> INFO - self.InitPreBuild() >> INFO - File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 1015, in InitPreBuild >> INFO - self.LoadConfiguration() >> INFO - File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 971, in LoadConfiguration >> INFO - self.GetToolChainAndFamilyFromDsc (self.PlatformFile) >> INFO - File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 905, in GetToolChainAndFamilyFromDsc >> INFO - dscobj = self.BuildDatabase[File, BuildArch] >> INFO - ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ >> INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py", line 104, in __getitem__ >> INFO - BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain) >> INFO - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py", line 125, in CreateBuildObject >> INFO - BuildObject = self._GENERATOR_[FileType]( >> INFO - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 231, in __init__ >> INFO - self.SkuIdMgr = SkuClass(self.SkuName, self.SkuIds) >> INFO - ^^^^^^^^^^^^ >> INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 510, in SkuName >> INFO - self._GetHeaderInfo() >> INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 310, in _GetHeaderInfo >> INFO - RecordList = self._RawData[MODEL_META_DATA_HEADER, self._Arch] >> INFO - ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", line 250, in __getitem__ >> INFO - self._PostProcess() >> INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", line 1429, in _PostProcess >> INFO - Processer[self._ItemType]() >> INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", line 1609, in __ProcessDirective >> INFO - __IncludeMacros['WORKSPACE'] = GlobalData.gGlobalDefines['WORKSPACE'] >> INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ >> INFO - KeyError: 'WORKSPACE' >> >> I followed the directions on and. Are these the correct set of instructions to follow? If so, I entered the following commands and received the error above. >> >> git clonehttps://github.com/tianocore/edk2.git >> cd edk2 >> python -m venv .venv >> .\.venv\Scripts\Activate.ps1 >> stuart_setup -c EmulatorPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=VS2019 -a X64 >> stuart_update -c EmulatorPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=VS2019 -a X64 >> stuart_build -c EmulatorPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=VS2019 -a X64 >> >> A quick couple of print statements in the python code of basetools reveal that gGlobalDefines is an empty dictionary. Help would be greatly appreciated. Let me know if you need more information. >> >> Thank you, >> Ryder >> >> >> >> >> > > > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111736): https://edk2.groups.io/g/devel/message/111736 Mute This Topic: https://groups.io/mt/102698986/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- --------------vGh60GLKesDHMna9ZJv4GMfu Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

We are looking at it. 

It seems to be a problem in the edk2-basetools but at this point it still isn't obvious. 

You can do a 'pip uninstall edk2-basetools' and then I would expect your build would work.

I also see that you didn't build edk2 basetools (step 6) documented here: edk2/EmulatorPkg/PlatformCI at master · tianocore/edk2 (github.com).  Without doing that your build will fail as well. 


The CI system is building fine so we are still looking into it.

I'll update the thread when we have more info.


Thanks

Sean



On 11/21/2023 8:22 AM, Laszlo Ersek wrote:
Adding Sean

Laszlo

On 11/19/23 23:43, ryderkeys via groups.io wrote:
Hi all,

I am trying to build EDK2 from most recent Github (namely, EmulatorPkg) with the new Stuart build system on Windows 10 22H2 64 bit with VS 2019. I'm getting the following error which directed me to this mailing list. More details on my build process below.  

INFO - build.py...
INFO -  : error C0DE: Unknown fatal error when processing [c:\users\ryder\edk2_2023\edk2\EmulatorPkg\EmulatorPkg.dsc]
INFO - 
INFO - (Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)
INFO - 
INFO - (Python 3.11.5 on win32) Traceback (most recent call last):
INFO -   File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 2692, in Main
INFO -     MyBuild = Build(Target, Workspace, Option,LogQ)
INFO -               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INFO -   File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 815, in __init__
INFO -     self.InitPreBuild()
INFO -   File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 1015, in InitPreBuild
INFO -     self.LoadConfiguration()
INFO -   File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 971, in LoadConfiguration
INFO -     self.GetToolChainAndFamilyFromDsc (self.PlatformFile)
INFO -   File "C:\Users\ryder\edk2_2023\edk2\BaseTools\Source\Python\build\build.py", line 905, in GetToolChainAndFamilyFromDsc
INFO -     dscobj = self.BuildDatabase[File, BuildArch]
INFO -              ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
INFO -   File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py", line 104, in __getitem__
INFO -     BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain)
INFO -                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INFO -   File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py", line 125, in CreateBuildObject
INFO -     BuildObject = self._GENERATOR_[FileType](
INFO -                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
INFO -   File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 231, in __init__
INFO -     self.SkuIdMgr = SkuClass(self.SkuName, self.SkuIds)
INFO -                              ^^^^^^^^^^^^
INFO -   File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 510, in SkuName
INFO -     self._GetHeaderInfo()
INFO -   File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 310, in _GetHeaderInfo
INFO -     RecordList = self._RawData[MODEL_META_DATA_HEADER, self._Arch]
INFO -                  ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INFO -   File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", line 250, in __getitem__
INFO -     self._PostProcess()
INFO -   File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", line 1429, in _PostProcess
INFO -     Processer[self._ItemType]()
INFO -   File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", line 1609, in __ProcessDirective
INFO -     __IncludeMacros['WORKSPACE'] = GlobalData.gGlobalDefines['WORKSPACE']
INFO -                                    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
INFO - KeyError: 'WORKSPACE'

I followed the directions on <https://github.com/tianocore/tianocore.github.io/wiki/How-to-Build-With-Stuart> and <https://github.com/tianocore/edk2/tree/master/EmulatorPkg/PlatformCI>. Are these the correct set of instructions to follow? If so, I entered the following commands and received the error above.

git clone https://github.com/tianocore/edk2.git
cd edk2
python -m venv .venv
.\.venv\Scripts\Activate.ps1
stuart_setup -c EmulatorPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=VS2019 -a X64
stuart_update -c EmulatorPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=VS2019 -a X64
stuart_build -c EmulatorPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=VS2019 -a X64

A quick couple of print statements in the python code of basetools reveal that gGlobalDefines is an empty dictionary. Help would be greatly appreciated. Let me know if you need more information.

Thank you,
Ryder










_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#111736) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--------------vGh60GLKesDHMna9ZJv4GMfu--