From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sonic316-13.consmr.mail.bf2.yahoo.com (sonic316-13.consmr.mail.bf2.yahoo.com [74.6.130.123]) by mx.groups.io with SMTP id smtpd.web10.6592.1672978947348136063 for ; Thu, 05 Jan 2023 20:22:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@yahoo.com header.s=s2048 header.b=Msys5r9k; spf=neutral (domain: yahoo.com, ip: 74.6.130.123, mailfrom: avijitmathur24@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672978946; bh=5ByaRUrlNx6pNVjrEpLmeAEzC5gskt0pHy2MJKoESfA=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=Msys5r9kANavGf4SsyfyL95sl8wFlR0hPCujUZ8A3kYAfVk04HEXrH+dyaBNizUgp0f/lSnui7B2l3hK3OORqg0vGwTBV42Eb+Zh7cxf+i8G5p1rI+9xb5/PJzwglUCaO0plMagIMLm3gq5pu7S4BwH1ZHohYpTcRP7Mkq9gXV/N2ZVAbN15+5tDcE8FgLpYy5FuBdKUtnSt6H8AW+dTD5fgefgeGzjRFwNSdLoXsdEzSzMSZurdcjhl7ZwiDkbqndE2IMJ8I/BBiPbN6LIvRoWURf+/192xaPs2v4Kpzg9qw2AejW5/SItW7EwEvgp+F+HpdK5V0VGro22c1/sc8g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672978946; bh=0l5yR8W3dxwV0LmnPDwFffN73KFhhFvVS/LyG3qBgPI=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=ix2O5ycZXrUSyZ2NcBxHePzqbx4zrsJ2ZGYsAXlfpG6WL+8dM1nB0OReU/2vOI8gRab8azczLxf61jbYw2DLOHev5GER3Vc9bC7ZZn77y8vCVU74jd2mJzmBFE9V71bl3qv+x7HvgJDSLrJlLUv8z7SzhFkG4VJXR0IyDvXBLvSWZNC3C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9V6uncKyvaTMqMulZUG7mdjnuwktOFw21Wr4ov1XgBJDe9vibZzeS1VlRfls96Rgn2BPH_j AWmYC34EA7pV2QU3gM3rzFIA9T0BnTvUSN0FNPFFFeeGgupKIv8BNz_K8.N_LJk1qpye12Tg5qPc Zmxth5lF9XwoJgJdi3JtfkldNk26UyfBhx9jQfUS6IHeMH22KeNy8R6t3jdJWxiZjuV2f5V_1lbW 56VO4LgzfcUgi2F7iBvlXYDxiDOI__CYsxX0l4im7OXvFW1sptTjDGfmQnujqWtGmx25HkRKae3Y hr9cpbA6C9KxgsPLHs6Y9FQ-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.bf2.yahoo.com with HTTP; Fri, 6 Jan 2023 04:22:26 +0000 Date: Fri, 6 Jan 2023 04:22:24 +0000 (UTC) From: Avijit Mathur To: "devel@edk2.groups.io" Message-ID: <1375008899.3401268.1672978944631@mail.yahoo.com> Subject: edk2 BUILD error issue on Win 11 MIME-Version: 1.0 References: <1375008899.3401268.1672978944631.ref@mail.yahoo.com> X-Mailer: WebService/1.1.20982 YMailNorrin Content-Type: multipart/alternative; boundary="----=_Part_3401267_1940063496.1672978944627" ------=_Part_3401267_1940063496.1672978944627 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,=C2=A0=C2=A0I am attempting EDK2=C2=A0 build on Win 11 but I get Key err= or "WORKSPACE"=C2=A0 (see end of followin trace:)Please assist.Thanks,Aviji= t Note: VS2019 Professional installed, iasl and nasm installed, python 3.10. (.venv) PS C:\edk2> stuart_UPDATE -c OvmfPkg/PlatformCI/PlatformBuild.py TO= OL_CHAIN_TAG=3DVS2019 -a X64SECTION - Init SDESECTION - Loading PluginsSECT= ION - Start Invocable ToolSECTION - Initial update of environmentUpdating. = DoneSECTION -=C2=A0 =C2=A0 =C2=A0 =C2=A0Updated/Verified 2 dependenciesSECT= ION - Second pass update of environmentUpdating. DoneSECTION -=C2=A0 =C2=A0= =C2=A0 =C2=A0Updated/Verified 2 dependenciesSECTION - SummaryPROGRESS - Su= ccess(.venv) PS C:\edk2> python BaseTools/Edk2ToolsBuild.py -t VS2019SECTIO= N - Init SDESECTION - Loading PluginsSECTION - Start Invocable ToolSECTION = - SummaryPROGRESS - Success(.venv) PS C:\edk2> stuart_build -c OvmfPkg/Plat= formCI/PlatformBuild.py TOOL_CHAIN_TAG=3DVS2019 -a X64INFO - Log Started: F= riday, January 06, 2023 09:50AMSECTION - Init SDEDEBUG - --- self_describin= g_environment.__init__()DEBUG - Skipped directories specified =3D ()DEBUG -= --- self_describing_environment.load_workspace()DEBUG - Loading workspace:= C:\edk2DEBUG -=C2=A0 =C2=A0Including scopes: ovmf, edk2-build, global-win,= globalDEBUG - --- self_describing_environment._gather_env_files()DEBUG - A= dding descriptor C:\edk2\.venv\Lib\site-packages\edk2basetools\basetool_tia= no_python_path_env.yaml to the environment with scope globalDEBUG - Adding = descriptor C:\edk2\BaseTools\basetools_calling_path_env.yaml to the environ= ment with scope globalDEBUG - Adding descriptor C:\edk2\BaseTools\basetools= _path_env.yaml to the environment with scope globalDEBUG - Adding descripto= r C:\edk2\BaseTools\Bin\Win32\basetoolsbin_path_env.yaml to the environment= with scope edk2-buildDEBUG - Adding descriptor C:\edk2\BaseTools\BinWrappe= rs\WindowsLike\win_build_tools_path_env.yaml to the environment with scope = global-winDEBUG - Adding descriptor C:\edk2\BaseTools\Source\Python\basetoo= l_tiano_python_path_env.yaml to the environment with scope globalDEBUG - Ad= ding descriptor C:\edk2\BaseTools\Bin\nasm_ext_dep.yaml to the environment = with scope edk2-buildDEBUG - Adding descriptor C:\edk2\OvmfPkg\PlatformCI\i= asl_ext_dep.yaml to the environment with scope ovmfDEBUG - Adding descripto= r C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator_plug_= in.yaml to the environment with scope globalDEBUG - Adding descriptor C:\ed= k2\BaseTools\Plugin\WindowsResourceCompiler\WinRcPath_plug_in.yaml to the e= nvironment with scope global-winDEBUG - Adding descriptor C:\edk2\BaseTools= \Plugin\WindowsVsToolChain\WindowsVsToolChain_plug_in.yaml to the environme= nt with scope global-winDEBUG - --- self_describing_environment.update_simp= le_paths()DEBUG - --- self_describing_environment.update_extdep_paths()DEBU= G - Verify 'iasl' returning 'True'.INFO - Computing path for iasl located a= t C:\edk2\OvmfPkg\PlatformCI\iasl_extdep on Host(os=3D'Windows', arch=3D'x8= 6', bit=3D'64')DEBUG - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-6= 4 does not existINFO - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86 w= as found!DEBUG - Verify 'mu_nasm' returning 'True'.INFO - Computing path fo= r mu_nasm located at C:\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os=3D'Win= dows', arch=3D'x86', bit=3D'64')INFO - C:\edk2\BaseTools\Bin\mu_nasm_extdep= \Windows-x86-64 was found!DEBUG - --- self_describing_environment.report_ex= tdep_version()DEBUG - Verify 'iasl' returning 'True'.INFO - Computing path = for iasl located at C:\edk2\OvmfPkg\PlatformCI\iasl_extdep on Host(os=3D'Wi= ndows', arch=3D'x86', bit=3D'64')DEBUG - C:\edk2\OvmfPkg\PlatformCI\iasl_ex= tdep\Windows-x86-64 does not existINFO - C:\edk2\OvmfPkg\PlatformCI\iasl_ex= tdep\Windows-x86 was found!DEBUG - Setting up version aggregatorDEBUG - Ver= ify 'mu_nasm' returning 'True'.INFO - Computing path for mu_nasm located at= C:\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os=3D'Windows', arch=3D'x86',= bit=3D'64')INFO - C:\edk2\BaseTools\Bin\mu_nasm_extdep\Windows-x86-64 was = found!DEBUG - Verify 'iasl' returning 'True'.INFO - Computing path for iasl= located at C:\edk2\OvmfPkg\PlatformCI\iasl_extdep on Host(os=3D'Windows', = arch=3D'x86', bit=3D'64')DEBUG - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Win= dows-x86-64 does not existINFO - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Win= dows-x86 was found!DEBUG - Verify 'iasl' returning 'True'.DEBUG - Verify 'm= u_nasm' returning 'True'.INFO - Computing path for mu_nasm located at C:\ed= k2\BaseTools\Bin\mu_nasm_extdep on Host(os=3D'Windows', arch=3D'x86', bit= =3D'64')INFO - C:\edk2\BaseTools\Bin\mu_nasm_extdep\Windows-x86-64 was foun= d!DEBUG - Verify 'mu_nasm' returning 'True'.SECTION - Loading PluginsDEBUG = - Loading Plugin from C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsR= eportGenerator.pyDEBUG - Loading Plugin from C:\edk2\BaseTools\Plugin\Windo= wsResourceCompiler\WinRcPath.pyDEBUG - Loading Plugin from C:\edk2\BaseTool= s\Plugin\WindowsVsToolChain\WindowsVsToolChain.pySECTION - Start Invocable = ToolINFO - Running Python version: sys.version_info(major=3D3, minor=3D10, = micro=3D9, releaselevel=3D'final', serial=3D0)INFO - pefile version: 2022.5= .30INFO - setuptools version: 65.5.0INFO - pip version: 22.3.1INFO - PyYAML= version: 6.0INFO - antlr4-python3-runtime version: 4.7.1INFO - semantic-ve= rsion version: 2.10.0INFO - lcov-cobertura version: 2.0.2INFO - edk2-pytool= -extensions version: 0.20.1INFO - future version: 0.18.2INFO - edk2-pytool-= library version: 0.12.1INFO - edk2-basetools version: 0.1.39SECTION - Loadi= ng PluginsDEBUG - Loading Plugin from C:\edk2\BaseTools\Plugin\BuildToolsRe= port\BuildToolsReportGenerator.pyDEBUG - Loading Plugin from C:\edk2\BaseTo= ols\Plugin\WindowsResourceCompiler\WinRcPath.pyDEBUG - Loading Plugin from = C:\edk2\BaseTools\Plugin\WindowsVsToolChain\WindowsVsToolChain.pySECTION - = Kicking off buildPROGRESS - Start time: 2023-01-06 09:50:06.712321DEBUG - L= ogging all Registered Helper Functions:DEBUG - Finished logging 0 functions= PROGRESS - Setting up the EnvironmentDEBUG - PlatformBuilder SetPlatformEnv= DEBUG - Conf version: 0.0DEBUG - Template Version: 0.0DEBUG - Conf version:= 2.0DEBUG - Template Version: 2.0DEBUG - Conf version: 0.0DEBUG - Template = Version: 0.0DEBUG - Parse Target.txt fileDEBUG - Can't set value [EmulatorP= kg/EmulatorPkg.dsc] as it isn't overrideable. Previous comment From CmdLine= DEBUG - Can't set value [IA32] as it isn't overrideable. Previous comment F= rom CmdLineDEBUG - Can't set value [VS2015x86] as it isn't overrideable. Pr= evious comment From CmdLineDEBUG - Parse tools_def.txt fileDEBUG - Parse Ac= tive Platform DSC file: C:\edk2\OvmfPkg/OvmfPkgX64.dscDEBUG - Getting all b= uild keys for build type DEBUGDEBUG - Parse Active Flash Definition (FDF) f= ileDEBUG - Getting all build keys for build type DEBUGPROGRESS - Running Pr= e BuildINFO - Writing BuildToolsReports to C:\edk2\Build\OvmfX64\DEBUG_VS20= 19\BUILD_TOOLS_REPORTDEBUG - Plugin Success: Build Tools Report GeneratorIN= FO - Cmd to run is: c:\edk2\.venv\lib\site-packages\edk2toollib\bin\vswhere= .exe -latest -nologo -all -property installationPath -products *INFO - ----= --------------------------------------------INFO - --------------Cmd Output= Starting---------------INFO - --------------------------------------------= ----INFO - C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional= INFO - ------------------------------------------------INFO - -------------= -Cmd Output Finished---------------INFO - --------- Running Time (mm:ss): 0= 0:00 ----------INFO - ----------- Return Code: 0x00000000 ------------INFO = - ------------------------------------------------DEBUG - Calling 'C:\Progr= am Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\Build= \vcvarsall.bat amd64'DEBUG - Plugin Success: Windows RC Path SupportINFO - = Cmd to run is: c:\edk2\.venv\lib\site-packages\edk2toollib\bin\vswhere.exe = -latest -nologo -all -property installationPath -products * -version 16.0,1= 7.0INFO - ------------------------------------------------INFO - ----------= ----Cmd Output Starting---------------INFO - ------------------------------= ------------------INFO - C:\Program Files (x86)\Microsoft Visual Studio\201= 9\ProfessionalINFO - ------------------------------------------------INFO -= --------------Cmd Output Finished---------------INFO - --------- Running T= ime (mm:ss): 00:00 ----------INFO - ----------- Return Code: 0x00000000 ---= ---------INFO - ------------------------------------------------INFO - Cmd = to run is: c:\edk2\.venv\lib\site-packages\edk2toollib\bin\vswhere.exe -lat= est -nologo -all -property installationPath -products * -version 16.0,17.0I= NFO - ------------------------------------------------INFO - --------------= Cmd Output Starting---------------INFO - ----------------------------------= --------------INFO - C:\Program Files (x86)\Microsoft Visual Studio\2019\Pr= ofessionalINFO - ------------------------------------------------INFO - ---= -----------Cmd Output Finished---------------INFO - --------- Running Time = (mm:ss): 00:00 ----------INFO - ----------- Return Code: 0x00000000 -------= -----INFO - ------------------------------------------------DEBUG - Calling= 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxil= iary\Build\vcvarsall.bat AMD64'DEBUG - Plugin Success: Windows Visual Studi= o Tool Chain SupportPROGRESS - Running Build DEBUGDEBUG - Getting all build= keys for build type DEBUGDEBUG - The edk2 build command is buildDEBUG - Ed= k2 build parameters are -p OvmfPkg/OvmfPkgX64.dsc -b DEBUG -t VS2019 -a X64= INFO - Cmd to run is: build -p OvmfPkg/OvmfPkgX64.dsc -b DEBUG -t VS2019 -a= X64INFO - ------------------------------------------------INFO - ---------= -----Cmd Output Starting---------------INFO - -----------------------------= -------------------INFO - Build environment: Windows-10-10.0.22623-SP0INFO = - Build start time: 09:50:17, Jan.06 2023INFO -INFO - WORKSPACE=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =3D c:\edk2INFO - EDK_TOOLS_PATH=C2=A0 =C2=A0=3D c:\edk2\= basetoolsINFO - EDK_TOOLS_BIN=C2=A0 =C2=A0 =3D c:\edk2\basetools\bin\win32I= NFO - CONF_PATH=C2=A0 =C2=A0 =C2=A0 =C2=A0 =3DINFO - PYTHON_COMMAND=C2=A0 = =C2=A0=3D C:\edk2\.venv\Scripts\python.exeINFO -INFO -INFO - build.py...INF= O -=C2=A0 : error C0DE: Unknown fatal error when processing [c:\edk2\OvmfPk= g\OvmfPkgX64.dsc]INFO -INFO - (Please send email to devel@edk2.groups.io fo= r help, attaching following call stack trace!)INFO -INFO - (Python 3.10.9 o= n win32) Traceback (most recent call last):INFO -=C2=A0 =C2=A0File "C:\edk2= \BaseTools\Source\Python\build\build.py", line 2692, in MainINFO -=C2=A0 = =C2=A0 =C2=A0MyBuild =3D Build(Target, Workspace, Option,LogQ)INFO -=C2=A0 = =C2=A0File "C:\edk2\BaseTools\Source\Python\build\build.py", line 815, in _= _init__INFO -=C2=A0 =C2=A0 =C2=A0self.InitPreBuild()INFO -=C2=A0 =C2=A0File= "C:\edk2\BaseTools\Source\Python\build\build.py", line 1015, in InitPreBui= ldINFO -=C2=A0 =C2=A0 =C2=A0self.LoadConfiguration()INFO -=C2=A0 =C2=A0File= "C:\edk2\BaseTools\Source\Python\build\build.py", line 971, in LoadConfigu= rationINFO -=C2=A0 =C2=A0 =C2=A0self.GetToolChainAndFamilyFromDsc (self.Pla= tformFile)INFO -=C2=A0 =C2=A0File "C:\edk2\BaseTools\Source\Python\build\bu= ild.py", line 905, in GetToolChainAndFamilyFromDscINFO -=C2=A0 =C2=A0 =C2= =A0dscobj =3D self.BuildDatabase[File, BuildArch]INFO -=C2=A0 =C2=A0File "C= :\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py= ", line 104, in __getitem__INFO -=C2=A0 =C2=A0 =C2=A0BuildObject =3D self.C= reateBuildObject(FilePath, Arch, Target, Toolchain)INFO -=C2=A0 =C2=A0File = "C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.= py", line 125, in CreateBuildObjectINFO -=C2=A0 =C2=A0 =C2=A0BuildObject = =3D self._GENERATOR_[FileType](INFO -=C2=A0 =C2=A0File "C:\edk2\.venv\lib\s= ite-packages\edk2basetools\Workspace\DscBuildData.py", line 231, in __init_= _INFO -=C2=A0 =C2=A0 =C2=A0self.SkuIdMgr =3D SkuClass(self.SkuName, self.Sk= uIds)INFO -=C2=A0 =C2=A0File "C:\edk2\.venv\lib\site-packages\edk2basetools= \Workspace\DscBuildData.py", line 510, in SkuNameINFO -=C2=A0 =C2=A0 =C2=A0= self._GetHeaderInfo()INFO -=C2=A0 =C2=A0File "C:\edk2\.venv\lib\site-packag= es\edk2basetools\Workspace\DscBuildData.py", line 310, in _GetHeaderInfoINF= O -=C2=A0 =C2=A0 =C2=A0RecordList =3D self._RawData[MODEL_META_DATA_HEADER,= self._Arch]INFO -=C2=A0 =C2=A0File "C:\edk2\.venv\Lib\site-packages\edk2ba= setools\Workspace\MetaFileParser.py", line 250, in __getitem__INFO -=C2=A0 = =C2=A0 =C2=A0self._PostProcess()INFO -=C2=A0 =C2=A0File "C:\edk2\.venv\Lib\= site-packages\edk2basetools\Workspace\MetaFileParser.py", line 1429, in _Po= stProcessINFO -=C2=A0 =C2=A0 =C2=A0Processer[self._ItemType]()INFO -=C2=A0 = =C2=A0File "C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFil= eParser.py", line 1608, in __ProcessDirectiveINFO -=C2=A0 =C2=A0 =C2=A0__In= cludeMacros['WORKSPACE'] =3D GlobalData.gGlobalDefines['WORKSPACE']INFO - K= eyError: 'WORKSPACE'INFO -INFO -INFO - - Failed -INFO - Build end time: 09:= 50:18, Jan.06 2023INFO - Build total time: 00:00:00INFO -INFO - -----------= -------------------------------------INFO - --------------Cmd Output Finish= ed---------------INFO - --------- Running Time (mm:ss): 00:00 ----------INF= O - ----------- Return Code: 0x00000001 ------------INFO - ----------------= --------------------------------CRITICAL - Build failedPROGRESS - End time:= 2023-01-06 09:50:18.072697=C2=A0 Total time Elapsed: 0:00:11SECTION - Log = file is located at: C:\edk2\Build\BUILDLOG_OvmfPkg.txtSECTION - SummaryERRO= R - Error ------=_Part_3401267_1940063496.1672978944627 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi, 
 I am attempting EDK2  build on Win 11 but I get Key e= rror "WORKSPACE"  (see end of followin trace:)
Please assist.
Thanks,
Avijit

Note: VS2019 Professional installed, iasl and nasm installed, python= 3.10.

(.venv) PS C:\edk2> stuart_UPDATE -c OvmfPkg/PlatformCI/PlatformBuild.p= y TOOL_CHAIN_TAG=3DVS2019 -a X64
SECTION - Init SDE
SEC= TION - Loading Plugins
SECTION - Start Invocable Tool
S= ECTION - Initial update of environment
Updating. Done
S= ECTION -       Updated/Verified 2 dependencies
SECTION - Second pass update of environment
Updating. Done
SECTION -       Updated/Verified 2 dependencies
SECTION - Summary
PROGRESS - Success
(.venv) P= S C:\edk2> python BaseTools/Edk2ToolsBuild.py -t VS2019
SECTIO= N - Init SDE
SECTION - Loading Plugins
SECTION - Start = Invocable Tool
SECTION - Summary
PROGRESS - Success
(.venv) PS C:\edk2> stuart_build -c OvmfPkg/PlatformCI/PlatformBu= ild.py TOOL_CHAIN_TAG=3DVS2019 -a X64
INFO - Log Started: Friday,= January 06, 2023 09:50AM
SECTION - Init SDE
DEBUG - --= - self_describing_environment.__init__()
DEBUG - Skipped director= ies specified =3D ()
DEBUG - --- self_describing_environment.load= _workspace()
DEBUG - Loading workspace: C:\edk2
DEBUG -=    Including scopes: ovmf, edk2-build, global-win, global
DEBUG - --- self_describing_environment._gather_env_files()
DE= BUG - Adding descriptor C:\edk2\.venv\Lib\site-packages\edk2basetools\baset= ool_tiano_python_path_env.yaml to the environment with scope global
DEBUG - Adding descriptor C:\edk2\BaseTools\basetools_calling_path_env.y= aml to the environment with scope global
DEBUG - Adding descripto= r C:\edk2\BaseTools\basetools_path_env.yaml to the environment with scope g= lobal
DEBUG - Adding descriptor C:\edk2\BaseTools\Bin\Win32\baset= oolsbin_path_env.yaml to the environment with scope edk2-build
DE= BUG - Adding descriptor C:\edk2\BaseTools\BinWrappers\WindowsLike\win_build= _tools_path_env.yaml to the environment with scope global-win
DEB= UG - Adding descriptor C:\edk2\BaseTools\Source\Python\basetool_tiano_pytho= n_path_env.yaml to the environment with scope global
DEBUG - Addi= ng descriptor C:\edk2\BaseTools\Bin\nasm_ext_dep.yaml to the environment wi= th scope edk2-build
DEBUG - Adding descriptor C:\edk2\OvmfPkg\Pla= tformCI\iasl_ext_dep.yaml to the environment with scope ovmf
DEBU= G - Adding descriptor C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsR= eportGenerator_plug_in.yaml to the environment with scope global
= DEBUG - Adding descriptor C:\edk2\BaseTools\Plugin\WindowsResourceCompiler\= WinRcPath_plug_in.yaml to the environment with scope global-win
D= EBUG - Adding descriptor C:\edk2\BaseTools\Plugin\WindowsVsToolChain\Window= sVsToolChain_plug_in.yaml to the environment with scope global-win
DEBUG - --- self_describing_environment.update_simple_paths()
D= EBUG - --- self_describing_environment.update_extdep_paths()
DEBU= G - Verify 'iasl' returning 'True'.
INFO - Computing path for ias= l located at C:\edk2\OvmfPkg\PlatformCI\iasl_extdep on Host(os=3D'Windows',= arch=3D'x86', bit=3D'64')
DEBUG - C:\edk2\OvmfPkg\PlatformCI\ias= l_extdep\Windows-x86-64 does not exist
INFO - C:\edk2\OvmfPkg\Pla= tformCI\iasl_extdep\Windows-x86 was found!
DEBUG - Verify 'mu_nas= m' returning 'True'.
INFO - Computing path for mu_nasm located at= C:\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os=3D'Windows', arch=3D'x86',= bit=3D'64')
INFO - C:\edk2\BaseTools\Bin\mu_nasm_extdep\Windows-= x86-64 was found!
DEBUG - --- self_describing_environment.report_= extdep_version()
DEBUG - Verify 'iasl' returning 'True'.
INFO - Computing path for iasl located at C:\edk2\OvmfPkg\PlatformCI\iasl= _extdep on Host(os=3D'Windows', arch=3D'x86', bit=3D'64')
DEBUG -= C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-64 does not exist
=
INFO - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86 was found!
DEBUG - Setting up version aggregator
DEBUG - Verify 'mu= _nasm' returning 'True'.
INFO - Computing path for mu_nasm locate= d at C:\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os=3D'Windows', arch=3D'x= 86', bit=3D'64')
INFO - C:\edk2\BaseTools\Bin\mu_nasm_extdep\Wind= ows-x86-64 was found!
DEBUG - Verify 'iasl' returning 'True'.
INFO - Computing path for iasl located at C:\edk2\OvmfPkg\PlatformCI= \iasl_extdep on Host(os=3D'Windows', arch=3D'x86', bit=3D'64')
DE= BUG - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-64 does not exist<= /div>
INFO - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86 was fou= nd!
DEBUG - Verify 'iasl' returning 'True'.
DEBUG - Ver= ify 'mu_nasm' returning 'True'.
INFO - Computing path for mu_nasm= located at C:\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os=3D'Windows', ar= ch=3D'x86', bit=3D'64')
INFO - C:\edk2\BaseTools\Bin\mu_nasm_extd= ep\Windows-x86-64 was found!
DEBUG - Verify 'mu_nasm' returning '= True'.
SECTION - Loading Plugins
DEBUG - Loading Plugin= from C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator.p= y
DEBUG - Loading Plugin from C:\edk2\BaseTools\Plugin\WindowsRes= ourceCompiler\WinRcPath.py
DEBUG - Loading Plugin from C:\edk2\Ba= seTools\Plugin\WindowsVsToolChain\WindowsVsToolChain.py
SECTION -= Start Invocable Tool
INFO - Running Python version: sys.version_= info(major=3D3, minor=3D10, micro=3D9, releaselevel=3D'final', serial=3D0)<= /div>
INFO - pefile version: 2022.5.30
INFO - setuptools vers= ion: 65.5.0
INFO - pip version: 22.3.1
INFO - PyYAML ve= rsion: 6.0
INFO - antlr4-python3-runtime version: 4.7.1
INFO - semantic-version version: 2.10.0
INFO - lcov-cobertura ve= rsion: 2.0.2
INFO - edk2-pytool-extensions version: 0.20.1
<= div>INFO - future version: 0.18.2
INFO - edk2-pytool-library vers= ion: 0.12.1
INFO - edk2-basetools version: 0.1.39
SECTI= ON - Loading Plugins
DEBUG - Loading Plugin from C:\edk2\BaseTool= s\Plugin\BuildToolsReport\BuildToolsReportGenerator.py
DEBUG - Lo= ading Plugin from C:\edk2\BaseTools\Plugin\WindowsResourceCompiler\WinRcPat= h.py
DEBUG - Loading Plugin from C:\edk2\BaseTools\Plugin\Windows= VsToolChain\WindowsVsToolChain.py
SECTION - Kicking off build
PROGRESS - Start time: 2023-01-06 09:50:06.712321
DEBUG - = Logging all Registered Helper Functions:
DEBUG - Finished logging= 0 functions
PROGRESS - Setting up the Environment
DEBU= G - PlatformBuilder SetPlatformEnv
DEBUG - Conf version: 0.0
DEBUG - Template Version: 0.0
DEBUG - Conf version: 2.0
DEBUG - Template Version: 2.0
DEBUG - Conf version: 0.0
DEBUG - Template Version: 0.0
DEBUG - Parse Target.txt fi= le
DEBUG - Can't set value [EmulatorPkg/EmulatorPkg.dsc] as it is= n't overrideable. Previous comment From CmdLine
DEBUG - Can't set= value [IA32] as it isn't overrideable. Previous comment From CmdLine
=
DEBUG - Can't set value [VS2015x86] as it isn't overrideable. Previous= comment From CmdLine
DEBUG - Parse tools_def.txt file
= DEBUG - Parse Active Platform DSC file: C:\edk2\OvmfPkg/OvmfPkgX64.dsc
DEBUG - Getting all build keys for build type DEBUG
DEBUG -= Parse Active Flash Definition (FDF) file
DEBUG - Getting all bui= ld keys for build type DEBUG
PROGRESS - Running Pre Build
INFO - Writing BuildToolsReports to C:\edk2\Build\OvmfX64\DEBUG_VS2019\B= UILD_TOOLS_REPORT
DEBUG - Plugin Success: Build Tools Report Gene= rator
INFO - Cmd to run is: c:\edk2\.venv\lib\site-packages\edk2t= oollib\bin\vswhere.exe -latest -nologo -all -property installationPath -pro= ducts *
INFO - ------------------------------------------------
INFO - --------------Cmd Output Starting---------------
= INFO - ------------------------------------------------
INFO - C:= \Program Files (x86)\Microsoft Visual Studio\2019\Professional
IN= FO - ------------------------------------------------
INFO - ----= ----------Cmd Output Finished---------------
INFO - --------- Run= ning Time (mm:ss): 00:00 ----------
INFO - ----------- Return Cod= e: 0x00000000 ------------
INFO - -------------------------------= -----------------
DEBUG - Calling 'C:\Program Files (x86)\Microso= ft Visual Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat amd64'<= /div>
DEBUG - Plugin Success: Windows RC Path Support
INFO - = Cmd to run is: c:\edk2\.venv\lib\site-packages\edk2toollib\bin\vswhere.exe = -latest -nologo -all -property installationPath -products * -version 16.0,1= 7.0
INFO - ------------------------------------------------
=
INFO - --------------Cmd Output Starting---------------
INFO= - ------------------------------------------------
INFO - C:\Pro= gram Files (x86)\Microsoft Visual Studio\2019\Professional
INFO -= ------------------------------------------------
INFO - --------= ------Cmd Output Finished---------------
INFO - --------- Running= Time (mm:ss): 00:00 ----------
INFO - ----------- Return Code: 0= x00000000 ------------
INFO - -----------------------------------= -------------
INFO - Cmd to run is: c:\edk2\.venv\lib\site-packag= es\edk2toollib\bin\vswhere.exe -latest -nologo -all -property installationP= ath -products * -version 16.0,17.0
INFO - -----------------------= -------------------------
INFO - --------------Cmd Output Startin= g---------------
INFO - -----------------------------------------= -------
INFO - C:\Program Files (x86)\Microsoft Visual Studio\201= 9\Professional
INFO - -------------------------------------------= -----
INFO - --------------Cmd Output Finished---------------
INFO - --------- Running Time (mm:ss): 00:00 ----------
IN= FO - ----------- Return Code: 0x00000000 ------------
INFO - ----= --------------------------------------------
DEBUG - Calling 'C:\= Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Auxiliary\= Build\vcvarsall.bat AMD64'
DEBUG - Plugin Success: Windows Visual= Studio Tool Chain Support
PROGRESS - Running Build DEBUG
DEBUG - Getting all build keys for build type DEBUG
DEBUG - Th= e edk2 build command is build
DEBUG - Edk2 build parameters are -= p OvmfPkg/OvmfPkgX64.dsc -b DEBUG -t VS2019 -a X64
INFO - Cmd to = run is: build -p OvmfPkg/OvmfPkgX64.dsc -b DEBUG -t VS2019 -a X64
INFO - ------------------------------------------------
INFO - -= -------------Cmd Output Starting---------------
INFO - ----------= --------------------------------------
INFO - Build environment: = Windows-10-10.0.22623-SP0
INFO - Build start time: 09:50:17, Jan.= 06 2023
INFO -
INFO - WORKSPACE      &nb= sp; =3D c:\edk2
INFO - EDK_TOOLS_PATH   =3D c:\edk2\bas= etools
INFO - EDK_TOOLS_BIN    =3D c:\edk2\basetools\bi= n\win32
INFO - CONF_PATH        =3D
INFO - PYTHON_COMMAND   =3D C:\edk2\.venv\Scripts\python.exe
INFO -
INFO -
INFO - build.py...
INFO = -  : error C0DE: Unknown fatal error when processing [c:\edk2\OvmfPkg\= OvmfPkgX64.dsc]
INFO -
INFO - (Please send email to dev= el@edk2.groups.io for help, attaching following call stack trace!)
INFO -
INFO - (Python 3.10.9 on win32) Traceback (most recent c= all last):
INFO -   File "C:\edk2\BaseTools\Source\Pyth= on\build\build.py", line 2692, in Main
INFO -     = MyBuild =3D Build(Target, Workspace, Option,LogQ)
INFO -  &n= bsp;File "C:\edk2\BaseTools\Source\Python\build\build.py", line 815, in __i= nit__
INFO -     self.InitPreBuild()
INF= O -   File "C:\edk2\BaseTools\Source\Python\build\build.py", line= 1015, in InitPreBuild
INFO -     self.LoadConfigu= ration()
INFO -   File "C:\edk2\BaseTools\Source\Python= \build\build.py", line 971, in LoadConfiguration
INFO -  &nb= sp;  self.GetToolChainAndFamilyFromDsc (self.PlatformFile)
I= NFO -   File "C:\edk2\BaseTools\Source\Python\build\build.py", li= ne 905, in GetToolChainAndFamilyFromDsc
INFO -     = ;dscobj =3D self.BuildDatabase[File, BuildArch]
INFO -  &nbs= p;File "C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDa= tabase.py", line 104, in __getitem__
INFO -     Bu= ildObject =3D self.CreateBuildObject(FilePath, Arch, Target, Toolchain)
INFO -   File "C:\edk2\.venv\Lib\site-packages\edk2basetoo= ls\Workspace\WorkspaceDatabase.py", line 125, in CreateBuildObject
INFO -     BuildObject =3D self._GENERATOR_[FileType](
INFO -   File "C:\edk2\.venv\lib\site-packages\edk2basetoo= ls\Workspace\DscBuildData.py", line 231, in __init__
INFO - =    self.SkuIdMgr =3D SkuClass(self.SkuName, self.SkuIds)
INFO -   File "C:\edk2\.venv\lib\site-packages\edk2basetools\W= orkspace\DscBuildData.py", line 510, in SkuName
INFO -  &nbs= p;  self._GetHeaderInfo()
INFO -   File "C:\edk2\.= venv\lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 310, = in _GetHeaderInfo
INFO -     RecordList =3D self._= RawData[MODEL_META_DATA_HEADER, self._Arch]
INFO -   Fi= le "C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.= py", line 250, in __getitem__
INFO -     self._Pos= tProcess()
INFO -   File "C:\edk2\.venv\Lib\site-packag= es\edk2basetools\Workspace\MetaFileParser.py", line 1429, in _PostProcess
INFO -     Processer[self._ItemType]()
IN= FO -   File "C:\edk2\.venv\Lib\site-packages\edk2basetools\Worksp= ace\MetaFileParser.py", line 1608, in __ProcessDirective
INFO -&n= bsp;    __IncludeMacros['WORKSPACE'] =3D GlobalData.gGlobalDefine= s['WORKSPACE']
INFO - KeyError: 'WORKSPACE'
INFO -
INFO -
INFO - - Failed -
INFO - Build end time: 0= 9:50:18, Jan.06 2023
INFO - Build total time: 00:00:00
= INFO -
INFO - ------------------------------------------------
INFO - --------------Cmd Output Finished---------------
I= NFO - --------- Running Time (mm:ss): 00:00 ----------
INFO - ---= -------- Return Code: 0x00000001 ------------
INFO - ------------= ------------------------------------
CRITICAL - Build failed
PROGRESS - End time: 2023-01-06 09:50:18.072697  Total time Elap= sed: 0:00:11
SECTION - Log file is located at: C:\edk2\Build\BUIL= DLOG_OvmfPkg.txt
SECTION - Summary
ERROR - Error
<= /div>
------=_Part_3401267_1940063496.1672978944627--