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 0845DAC003C for ; Mon, 20 Nov 2023 00:51:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=6jb+VTvVdZTj9LlGgiSivVmXHspLvub9ES8b0Z1oCnM=; c=relaxed/simple; d=groups.io; h=Date:To:From:Subject:Message-ID:Feedback-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1700441489; v=1; b=B4ERzaFPeWeG1LSpOyvAVDKGzkh0xBAHFyvEuL4ZbaEBRx/HGmMJgh36EDhI/CeOiEUTUwY+ wdhCKXoKlrwP0vaDDXGU2kXKvjs/QiA5HiL6iYbDRbiNFv3WJ2t6ZchwIZHiCpTjC9bAxAqecVR KB/T9Nh7fVyQd3BE6sW6o1jw= X-Received: by 127.0.0.2 with SMTP id WQD6YY7687511xFnaIPJdVRO; Sun, 19 Nov 2023 16:51:29 -0800 X-Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by mx.groups.io with SMTP id smtpd.web11.38458.1700433798114068512 for ; Sun, 19 Nov 2023 14:43:18 -0800 Date: Sun, 19 Nov 2023 22:43:00 +0000 To: "devel@edk2.groups.io" From: "ryderkeys via groups.io" Subject: [edk2-devel] BaseTools KeyError When Building EmulatorPkg Message-ID: Feedback-ID: 87951057:user:proton MIME-Version: 1.0 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,ryderkeys@proton.me List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 3pIpRvJUNl31gRsMPoqRRKXBx7686176AA= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=B4ERzaFP; dmarc=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 Hi all, I am trying to build EDK2 from most recent Github (namely, EmulatorPkg) wit= h the new Stuart build system on Windows 10 22H2 64 bit with VS 2019. I'm g= etting the following error which directed me to this mailing list. More det= ails on my build process below. =20 INFO - build.py... INFO - : error C0DE: Unknown fatal error when processing [c:\users\ryder\e= dk2_2023\edk2\EmulatorPkg\EmulatorPkg.dsc] INFO -=20 INFO - (Please send email to devel@edk2.groups.io for help, attaching follo= wing call stack trace!) INFO -=20 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 =3D 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 =3D self.BuildDatabase[File, BuildArch] INFO - ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\WorkspaceDatabase.py", line 104, in __getitem__ INFO - BuildObject =3D self.CreateBuildObject(FilePath, Arch, Target, T= oolchain) INFO - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^= ^^^^^^^ INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\WorkspaceDatabase.py", line 125, in CreateBuildObject INFO - BuildObject =3D self._GENERATOR_[FileType]( INFO - ^^^^^^^^^^^^^^^^^^^^^^^^^^^ INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\DscBuildData.py", line 231, in __init__ INFO - self.SkuIdMgr =3D SkuClass(self.SkuName, self.SkuIds) INFO - ^^^^^^^^^^^^ INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\DscBuildData.py", line 510, in SkuName INFO - self._GetHeaderInfo() INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\DscBuildData.py", line 310, in _GetHeaderInfo INFO - RecordList =3D self._RawData[MODEL_META_DATA_HEADER, self._Arch] INFO - ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\MetaFileParser.py", line 250, in __getitem__ INFO - self._PostProcess() INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\MetaFileParser.py", line 1429, in _PostProcess INFO - Processer[self._ItemType]() INFO - File "C:\Users\ryder\edk2_2023\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\MetaFileParser.py", line 1609, in __ProcessDirective INFO - __IncludeMacros['WORKSPACE'] =3D GlobalData.gGlobalDefines['WORK= SPACE'] INFO - ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^= ^^^^^ INFO - KeyError: 'WORKSPACE' I followed the directions on and . Are these the correct set of instructio= ns to follow? If so, I entered the following commands and received the erro= r 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=3DVS= 2019 -a X64 stuart_update -c EmulatorPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=3DV= S2019 -a X64 stuart_build -c EmulatorPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=3DVS= 2019 -a X64 A quick couple of print statements in the python code of basetools reveal t= hat gGlobalDefines is an empty dictionary. Help would be greatly appreciate= d. Let me know if you need more information. Thank you, Ryder -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111431): https://edk2.groups.io/g/devel/message/111431 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-