Hi,  I am attempting EDK2  build on Win 11 but I get Key error "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.py 
TOOL_CHAIN_TAG=VS2019 -a X64SECTION - Init SDESECTION - Loading PluginsSECTION 
- Start Invocable ToolSECTION - Initial update of environmentUpdating. 
DoneSECTION -       Updated/Verified 2 dependenciesSECTION - Second pass update 
of environmentUpdating. DoneSECTION -       Updated/Verified 2 
dependenciesSECTION - SummaryPROGRESS - Success(.venv) PS C:\edk2> python 
BaseTools/Edk2ToolsBuild.py -t VS2019SECTION - Init SDESECTION - Loading 
PluginsSECTION - Start Invocable ToolSECTION - SummaryPROGRESS - Success(.venv) 
PS C:\edk2> stuart_build -c OvmfPkg/PlatformCI/PlatformBuild.py 
TOOL_CHAIN_TAG=VS2019 -a X64INFO - Log Started: Friday, January 06, 2023 
09:50AMSECTION - Init SDEDEBUG - --- 
self_describing_environment.__init__()DEBUG - Skipped directories specified = 
()DEBUG - --- self_describing_environment.load_workspace()DEBUG - Loading 
workspace: C:\edk2DEBUG -   Including scopes: ovmf, edk2-build, global-win, 
globalDEBUG - --- self_describing_environment._gather_env_files()DEBUG - Adding 
descriptor 
C:\edk2\.venv\Lib\site-packages\edk2basetools\basetool_tiano_python_path_env.yaml
 to the environment with scope globalDEBUG - Adding descriptor 
C:\edk2\BaseTools\basetools_calling_path_env.yaml to the environment with scope 
globalDEBUG - Adding descriptor C:\edk2\BaseTools\basetools_path_env.yaml to 
the environment with scope globalDEBUG - Adding descriptor 
C:\edk2\BaseTools\Bin\Win32\basetoolsbin_path_env.yaml to the environment with 
scope edk2-buildDEBUG - Adding descriptor 
C:\edk2\BaseTools\BinWrappers\WindowsLike\win_build_tools_path_env.yaml to the 
environment with scope global-winDEBUG - Adding descriptor 
C:\edk2\BaseTools\Source\Python\basetool_tiano_python_path_env.yaml to the 
environment with scope globalDEBUG - Adding descriptor 
C:\edk2\BaseTools\Bin\nasm_ext_dep.yaml to the environment with scope 
edk2-buildDEBUG - Adding descriptor 
C:\edk2\OvmfPkg\PlatformCI\iasl_ext_dep.yaml to the environment with scope 
ovmfDEBUG - Adding descriptor 
C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator_plug_in.yaml
 to the environment with scope globalDEBUG - Adding descriptor 
C:\edk2\BaseTools\Plugin\WindowsResourceCompiler\WinRcPath_plug_in.yaml to the 
environment with scope global-winDEBUG - Adding descriptor 
C:\edk2\BaseTools\Plugin\WindowsVsToolChain\WindowsVsToolChain_plug_in.yaml to 
the environment with scope global-winDEBUG - --- 
self_describing_environment.update_simple_paths()DEBUG - --- 
self_describing_environment.update_extdep_paths()DEBUG - Verify 'iasl' 
returning 'True'.INFO - Computing path for iasl located at 
C:\edk2\OvmfPkg\PlatformCI\iasl_extdep on Host(os='Windows', arch='x86', 
bit='64')DEBUG - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-64 does not 
existINFO - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86 was found!DEBUG 
- Verify 'mu_nasm' returning 'True'.INFO - Computing path for mu_nasm located 
at C:\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os='Windows', arch='x86', 
bit='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='Windows', arch='x86', 
bit='64')DEBUG - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-64 does not 
existINFO - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86 was found!DEBUG 
- Setting up version aggregatorDEBUG - Verify 'mu_nasm' returning 'True'.INFO - 
Computing path for mu_nasm located at C:\edk2\BaseTools\Bin\mu_nasm_extdep on 
Host(os='Windows', arch='x86', bit='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='Windows', arch='x86', 
bit='64')DEBUG - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-64 does not 
existINFO - C:\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86 was found!DEBUG 
- Verify 'iasl' returning 'True'.DEBUG - Verify 'mu_nasm' returning 'True'.INFO 
- Computing path for mu_nasm located at C:\edk2\BaseTools\Bin\mu_nasm_extdep on 
Host(os='Windows', arch='x86', bit='64')INFO - 
C:\edk2\BaseTools\Bin\mu_nasm_extdep\Windows-x86-64 was found!DEBUG - Verify 
'mu_nasm' returning 'True'.SECTION - Loading PluginsDEBUG - Loading Plugin from 
C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator.pyDEBUG - 
Loading Plugin from 
C:\edk2\BaseTools\Plugin\WindowsResourceCompiler\WinRcPath.pyDEBUG - Loading 
Plugin from 
C:\edk2\BaseTools\Plugin\WindowsVsToolChain\WindowsVsToolChain.pySECTION - 
Start Invocable ToolINFO - Running Python version: sys.version_info(major=3, 
minor=10, micro=9, releaselevel='final', serial=0)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-version 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 
- Loading PluginsDEBUG - Loading Plugin from 
C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator.pyDEBUG - 
Loading Plugin from 
C:\edk2\BaseTools\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 - 
Logging all Registered Helper Functions:DEBUG - Finished logging 0 
functionsPROGRESS - Setting up the EnvironmentDEBUG - PlatformBuilder 
SetPlatformEnvDEBUG - 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 
[EmulatorPkg/EmulatorPkg.dsc] as it isn't overrideable. Previous comment From 
CmdLineDEBUG - Can't set value [IA32] as it isn't overrideable. Previous 
comment From CmdLineDEBUG - Can't set value [VS2015x86] as it isn't 
overrideable. Previous comment From CmdLineDEBUG - Parse tools_def.txt 
fileDEBUG - Parse Active Platform DSC file: C:\edk2\OvmfPkg/OvmfPkgX64.dscDEBUG 
- Getting all build keys for build type DEBUGDEBUG - Parse Active Flash 
Definition (FDF) fileDEBUG - Getting all build keys for build type 
DEBUGPROGRESS - Running Pre BuildINFO - Writing BuildToolsReports to 
C:\edk2\Build\OvmfX64\DEBUG_VS2019\BUILD_TOOLS_REPORTDEBUG - Plugin Success: 
Build Tools Report GeneratorINFO - 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\ProfessionalINFO - 
------------------------------------------------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\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,17.0INFO - 
------------------------------------------------INFO - --------------Cmd Output 
Starting---------------INFO - 
------------------------------------------------INFO - C:\Program Files 
(x86)\Microsoft Visual Studio\2019\ProfessionalINFO - 
------------------------------------------------INFO - --------------Cmd Output 
Finished---------------INFO - --------- Running Time (mm:ss): 00:00 
----------INFO - ----------- Return Code: 0x00000000 ------------INFO - 
------------------------------------------------INFO - Cmd to run is: 
c:\edk2\.venv\lib\site-packages\edk2toollib\bin\vswhere.exe -latest -nologo 
-all -property installationPath -products * -version 16.0,17.0INFO - 
------------------------------------------------INFO - --------------Cmd Output 
Starting---------------INFO - 
------------------------------------------------INFO - C:\Program Files 
(x86)\Microsoft Visual Studio\2019\ProfessionalINFO - 
------------------------------------------------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\Auxiliary\Build\vcvarsall.bat AMD64'DEBUG - Plugin 
Success: Windows Visual Studio Tool Chain SupportPROGRESS - Running Build 
DEBUGDEBUG - Getting all build keys for build type DEBUGDEBUG - The edk2 build 
command is buildDEBUG - Edk2 build parameters are -p OvmfPkg/OvmfPkgX64.dsc -b 
DEBUG -t VS2019 -a X64INFO - 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        = c:\edk2INFO - EDK_TOOLS_PATH   = 
c:\edk2\basetoolsINFO - EDK_TOOLS_BIN    = c:\edk2\basetools\bin\win32INFO - 
CONF_PATH        =INFO - PYTHON_COMMAND   = 
C:\edk2\.venv\Scripts\python.exeINFO -INFO -INFO - build.py...INFO -  : error 
C0DE: Unknown fatal error when processing [c:\edk2\OvmfPkg\OvmfPkgX64.dsc]INFO 
-INFO - (Please send email to devel@edk2.groups.io for help, attaching 
following call stack trace!)INFO -INFO - (Python 3.10.9 on win32) Traceback 
(most recent call last):INFO -   File 
"C:\edk2\BaseTools\Source\Python\build\build.py", line 2692, in MainINFO -     
MyBuild = Build(Target, Workspace, Option,LogQ)INFO -   File 
"C:\edk2\BaseTools\Source\Python\build\build.py", line 815, in __init__INFO -   
  self.InitPreBuild()INFO -   File 
"C:\edk2\BaseTools\Source\Python\build\build.py", line 1015, in 
InitPreBuildINFO -     self.LoadConfiguration()INFO -   File 
"C:\edk2\BaseTools\Source\Python\build\build.py", line 971, in 
LoadConfigurationINFO -     self.GetToolChainAndFamilyFromDsc 
(self.PlatformFile)INFO -   File 
"C:\edk2\BaseTools\Source\Python\build\build.py", line 905, in 
GetToolChainAndFamilyFromDscINFO -     dscobj = self.BuildDatabase[File, 
BuildArch]INFO -   File 
"C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py", 
line 104, in __getitem__INFO -     BuildObject = 
self.CreateBuildObject(FilePath, Arch, Target, Toolchain)INFO -   File 
"C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py", 
line 125, in CreateBuildObjectINFO -     BuildObject = 
self._GENERATOR_[FileType](INFO -   File 
"C:\edk2\.venv\lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 
231, in __init__INFO -     self.SkuIdMgr = SkuClass(self.SkuName, 
self.SkuIds)INFO -   File 
"C:\edk2\.venv\lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 
510, in SkuNameINFO -     self._GetHeaderInfo()INFO -   File 
"C:\edk2\.venv\lib\site-packages\edk2basetools\Workspace\DscBuildData.py", line 
310, in _GetHeaderInfoINFO -     RecordList = 
self._RawData[MODEL_META_DATA_HEADER, self._Arch]INFO -   File 
"C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", 
line 250, in __getitem__INFO -     self._PostProcess()INFO -   File 
"C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", 
line 1429, in _PostProcessINFO -     Processer[self._ItemType]()INFO -   File 
"C:\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py", 
line 1608, in __ProcessDirectiveINFO -     __IncludeMacros['WORKSPACE'] = 
GlobalData.gGlobalDefines['WORKSPACE']INFO - KeyError: '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 
Finished---------------INFO - --------- Running Time (mm:ss): 00:00 
----------INFO - ----------- Return Code: 0x00000001 ------------INFO - 
------------------------------------------------CRITICAL - Build failedPROGRESS 
- End time: 2023-01-06 09:50:18.072697  Total time Elapsed: 0:00:11SECTION - 
Log file is located at: C:\edk2\Build\BUILDLOG_OvmfPkg.txtSECTION - 
SummaryERROR - Error


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#98114): https://edk2.groups.io/g/devel/message/98114
Mute This Topic: https://groups.io/mt/96091020/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to