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 83795941A71 for ; Mon, 27 Nov 2023 19:43:54 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=K1IMudpeHx44LqgwOKyUg0In7y0BhOLZDe3Uz+S3WJs=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Message-ID:Date:User-Agent:Subject:From:To:Cc:Reply-To:References:In-Reply-To:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Language; s=20140610; t=1701114233; v=1; b=GGBc/OAG3tF4JWZJfX8W1uG+YbpoRyDVeNasnmud9/fBA4BRQL5B4lFDyR9OKG3zT2s6e50B rTzDALKX7fqjeAFCrtOmXD5Zw/UTJxH4LqwZdcAfIkZBViYyxRuJS8lelfBNVDdqHlsA9MTMqYU 1Knx7urlGOHEts1v7OFi1a6Q= X-Received: by 127.0.0.2 with SMTP id amAVYY7687511xCfytyJzlR8; Mon, 27 Nov 2023 11:43:53 -0800 X-Received: from NAM02-SN1-obe.outbound.protection.outlook.com (NAM02-SN1-obe.outbound.protection.outlook.com [40.92.44.103]) by mx.groups.io with SMTP id smtpd.web11.104613.1701114232463370356 for ; Mon, 27 Nov 2023 11:43:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=km6IFCd7xfWRAzk7p/1nwXrpbcOeAzjUeEx5sBqZxPbL6cCx5dV3cXfK8zmuBKJrJMXxioXYF2fe+S9f3JVlvgRN3R+a5bh3z1w66GZgGA/IGlqQUbSNLXreFrNl+w4qoS4s9DfBCzjoL/MacD1skUx1OhjFk/ezqY3EKLhMwojTDlDv0z1gxbKYCVVZkCeGhwkj6p0UGmL2myppaNG8X3J+onEMFABlEJjaFZDSyoqWhnwpHIcTBlU72463farvmmfVX6o18VLk5oFLk+ko/yOlz/8XDpUQLlja95XPGA7wsxgMNmxkXnk47/1qAd2UjQVbGsuQBxe4Ymt+qebY1g== 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=q/oUlw+AePgUBfebvtVfrZyYUEZZ3YhYQHVgrQK0BeQ=; b=CBHMGz1KWJBOzRAHi9pisdRjp7n2E6Ihc/WLeUB1iMkmSpa9cnkdEyawCHBDEQ/QaWSHrQfDDinFxZylS8zLbp3jb0oHNUJ+Pt7ECMvC+WEVyfPdeWQmaqGuAUwcNXWG0T2PXo0rwdxbLhljgGvWY+qti0tGxUGRWAKjwS4XbgD1rMSsG4lA91aPgWcyF44WPskYkcvfxiZskdySs5Eld2/eBz84+7z9Zbqz1BDnHqDt4vRPBIhQ8xgp8xnuTrSrn9MZg3aRjDxuiWk6VBTPnBMWpc673yMkojjBF3s+q/AZ27Zon0yYPtyGZFtdoy/YEZ/U3DqjXsqi7rsaJsAfpQ== 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 PH7PR19MB7582.namprd19.prod.outlook.com (2603:10b6:510:271::9) 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 19:43:50 +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 19:43:50 +0000 Message-ID: Date: Mon, 27 Nov 2023 11:43:49 -0800 User-Agent: Mozilla Thunderbird Subject: Re: [edk2-devel] BaseTools KeyError When Building EmulatorPkg From: "Sean" To: "devel@edk2.groups.io" , "lersek@redhat.com" , "ryderkeys@proton.me" Cc: Sean Brogan Reply-To: devel@edk2.groups.io,spbrogan@outlook.com References: <4b054861-5558-c9c8-0850-281abb9ac6e5@redhat.com> <179B8D98556E51B3.32091@groups.io> In-Reply-To: <179B8D98556E51B3.32091@groups.io> X-TMN: [bYz6Fzv/zYDB4UoCzIcM5+xqpCPhjIi8JQ7jzESmwzu/iXjdUFJIvTdvaj3RlZGE] X-ClientProxiedBy: MW3PR06CA0019.namprd06.prod.outlook.com (2603:10b6:303:2a::24) To BY3PR19MB4900.namprd19.prod.outlook.com (2603:10b6:a03:354::11) X-Microsoft-Original-Message-ID: <8207650f-c2c0-4290-8c33-3c1a24678b6d@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY3PR19MB4900:EE_|PH7PR19MB7582:EE_ X-MS-Office365-Filtering-Correlation-Id: 3dd12367-0a79-464a-436a-08dbef812daa X-Microsoft-Antispam-Message-Info: MpPWi7v25T2u1L6k6AnWrwbeFwbKQuPcU+j7Ba1ztPR/U+T8qaUwb6sjCKEgue2VO3W+t3CicdGVgYPnxHIDjp/78XXYvzElKQU4Cpbg9J6c1b1B1hhcOUES61xDq8+nTtu5iaROcKEYJ27wwavMF7Wq1hdvKqRzAXbEeDEnDaFrXerb8s847gkfpvh6TKgF09Pgi7sr5rP480Cwcfa9/bUVIS8zbRKqesJ9DIEmYbzy893LVLcf2HO3/64NgMvhH7axQvOViHgeeGG1mRbIjZeW20sQZWpzHmxh6Iig6dDjYq/PunXSlyxq5OlvarKK/QAVQSOhR6pK3qwO83bg2jMpE4CSDd9qdhLg+rHuzTkFcU7GFAjdoq6XXCAxUdS3BjZV3RuvLdXvvhBA8/EmbovrAR5fl4JpE7s5x05NbC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NSnpDRStST3J2ZjV1bVh3Vkx3bEVMYlVtaXBZdFMreUMrN0VnMnYr?= =?utf-8?B?bDhoZDVmdkpITmFoeUJwc0syMDVqM2FkVUNKcTR6RkcwY0ZDTVV1bmdMUmdz?= =?utf-8?B?Q3hPblVXZEgzK0JyY2FxeC8wcUtPUnd3ZTNFbnJiUnJUeWFaMi9UWUJEK1E5?= =?utf-8?B?THNLdkQxUi9WZG1pQUlJcy9ZYzNmU3Y4dWdKdlF3VU4waTQxbUF5VzZRPT0=?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3dd12367-0a79-464a-436a-08dbef812daa X-MS-Exchange-CrossTenant-AuthSource: BY3PR19MB4900.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2023 19:43:50.4744 (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: PH7PR19MB7582 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 List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: eHBin2Oq44SH9GhugfS7zv0ux7686176AA= Content-Type: multipart/alternative; boundary="------------pgbXXR4WCUHc0SOXeGyg2RdB" 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="GGBc/OAG"; 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 --------------pgbXXR4WCUHc0SOXeGyg2RdB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit @Ryder We have identified the issue. A new issue will be created here Issues · tianocore/edk2-basetools (github.com) to track it. In the meantime there are two easy workarounds (pick one). 1. Create your venv named something like "venv" instead of ".venv".  It just must come later in the default directory sort than "Basetools". or 2. Create your venv outside the edk2 source code tree.  Generally this is what I do as I don't like my virtual environment mixed with my source code. As mentioned before don't forget to build the basetools.  From there, my experience is everything works.  Thanks for reporting your issue. Thanks Sean On 11/27/2023 10:16 AM, Sean wrote: > > 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 (#111757): https://edk2.groups.io/g/devel/message/111757 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] -=-=-=-=-=-=-=-=-=-=-=- --------------pgbXXR4WCUHc0SOXeGyg2RdB Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

@Ryder

We have identified the issue.

A new issue will be created here Issues · tianocore/edk2-basetools (github.com) to track it.

In the meantime there are two easy workarounds (pick one). 


1. Create your venv named something like "venv" instead of ".venv".  It just must come later in the default directory sort than "Basetools".

or

2. Create your venv outside the edk2 source code tree.  Generally this is what I do as I don't like my virtual environment mixed with my source code. 


As mentioned before don't forget to build the basetools.  From there, my experience is everything works.  Thanks for reporting your issue.


Thanks

Sean


On 11/27/2023 10:16 AM, Sean wrote:

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 (#111757) | | Mute This Topic | New Topic
Your Subscription | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--------------pgbXXR4WCUHc0SOXeGyg2RdB--