public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] Error during OvmfPkg build on Windows
@ 2023-10-13 23:14 antonio parata
  0 siblings, 0 replies; only message in thread
From: antonio parata @ 2023-10-13 23:14 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 12504 bytes --]

Hello,
I'm trying to build the OvmfPkg package on Windows by following the
instruction at
https://github.com/tianocore/tianocore.github.io/wiki/How-to-Build-With-Stuart#i-want-to-build-ovmfpkg-and-automatically-run-with-my-firmware-after-build
.

When I run the command:

stuart_build -c OvmfPkg/PlatformCI/PlatformBuild.py -p OvmfPkg -a IA32,X64
TOOL_CHAIN_TAG=VS2022

I receive an error. Below the content of the generated log file telling me
to send this email.

Thanks
---

INFO - Log Started: Saturday, October 14, 2023 01:08AM
SECTION - Init Self Describing Environment
DEBUG - --- self_describing_environment.__init__()
DEBUG - Skipped directories specified = ()
DEBUG - --- self_describing_environment.load_workspace()
DEBUG - Loading workspace: C:\src\edk2
DEBUG -   Including scopes: ovmf, edk2-build, global-win, global
DEBUG - --- self_describing_environment._gather_env_files()
DEBUG - Adding descriptor
C:\src\edk2\.venv\Lib\site-packages\edk2basetools\basetool_tiano_python_path_env.yaml
to the environment with scope global
DEBUG - Adding descriptor
C:\src\edk2\BaseTools\basetools_calling_path_env.yaml to the environment
with scope global
DEBUG - Adding descriptor C:\src\edk2\BaseTools\basetools_path_env.yaml to
the environment with scope global
DEBUG - Adding descriptor
C:\src\edk2\BaseTools\Bin\Win32\basetoolsbin_path_env.yaml to the
environment with scope edk2-build
DEBUG - Adding descriptor
C:\src\edk2\BaseTools\BinWrappers\WindowsLike\win_build_tools_path_env.yaml
to the environment with scope global-win
DEBUG - Adding descriptor
C:\src\edk2\BaseTools\Source\Python\basetool_tiano_python_path_env.yaml to
the environment with scope global
DEBUG - Adding descriptor C:\src\edk2\BaseTools\Bin\nasm_ext_dep.yaml to
the environment with scope edk2-build
DEBUG - Adding descriptor C:\src\edk2\OvmfPkg\PlatformCI\iasl_ext_dep.yaml
to the environment with scope ovmf
DEBUG - Adding descriptor
C:\src\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator_plug_in.yaml
to the environment with scope global
DEBUG - Adding descriptor
C:\src\edk2\BaseTools\Plugin\DebugMacroCheck\BuildPlugin\DebugMacroCheck_plug_in.yaml
to the environment with scope global
DEBUG - Adding descriptor
C:\src\edk2\BaseTools\Plugin\WindowsResourceCompiler\WinRcPath_plug_in.yaml
to the environment with scope global-win
DEBUG - Adding descriptor
C:\src\edk2\BaseTools\Plugin\WindowsVsToolChain\WindowsVsToolChain_plug_in.yaml
to the environment with scope global-win
DEBUG - --- 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:\src\edk2\OvmfPkg\PlatformCI\iasl_extdep on Host(os='Windows',
arch='x86', bit='64')
DEBUG - C:\src\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-64 does not
exist
INFO - C:\src\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86 was found!
DEBUG - Verify 'mu_nasm' returning 'True'.
INFO - Computing path for mu_nasm located at
C:\src\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os='Windows', arch='x86',
bit='64')
INFO - C:\src\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:\src\edk2\OvmfPkg\PlatformCI\iasl_extdep on Host(os='Windows',
arch='x86', bit='64')
DEBUG - C:\src\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-64 does not
exist
INFO - C:\src\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 located at
C:\src\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os='Windows', arch='x86',
bit='64')
INFO - C:\src\edk2\BaseTools\Bin\mu_nasm_extdep\Windows-x86-64 was found!
DEBUG - Verify 'iasl' returning 'True'.
INFO - Computing path for iasl located at
C:\src\edk2\OvmfPkg\PlatformCI\iasl_extdep on Host(os='Windows',
arch='x86', bit='64')
DEBUG - C:\src\edk2\OvmfPkg\PlatformCI\iasl_extdep\Windows-x86-64 does not
exist
INFO - C:\src\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:\src\edk2\BaseTools\Bin\mu_nasm_extdep on Host(os='Windows', arch='x86',
bit='64')
INFO - C:\src\edk2\BaseTools\Bin\mu_nasm_extdep\Windows-x86-64 was found!
DEBUG - Verify 'mu_nasm' returning 'True'.
SECTION - Loading Plugins
DEBUG - Loading Plugin from
C:\src\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator.py
DEBUG - Loading Plugin from
C:\src\edk2\BaseTools\Plugin\DebugMacroCheck\BuildPlugin\DebugMacroCheckBuildPlugin.py
DEBUG - Loading Plugin from
C:\src\edk2\BaseTools\Plugin\WindowsResourceCompiler\WinRcPath.py
DEBUG - Loading Plugin from
C:\src\edk2\BaseTools\Plugin\WindowsVsToolChain\WindowsVsToolChain.py
SECTION - Start Invocable Tool
INFO - Running Python version: sys.version_info(major=3, minor=10, micro=7,
releaselevel='final', serial=0)
INFO - regex version: 2023.8.8
INFO - pefile version: 2023.2.7
INFO - pywin32 version: 306
INFO - setuptools version: 63.2.0
INFO - pip version: 22.2.2
INFO - PyYAML version: 6.0.1
INFO - smmap version: 5.0.1
INFO - antlr4-python3-runtime version: 4.7.1
INFO - gitdb version: 4.0.10
INFO - GitPython version: 3.1.37
INFO - XlsxWriter version: 3.1.7
INFO - openpyxl version: 3.1.2
INFO - semantic-version version: 2.10.0
INFO - lcov-cobertura version: 2.0.2
INFO - et-xmlfile version: 1.1.0
INFO - edk2-pytool-extensions version: 0.23.10
INFO - edk2-pytool-library version: 0.14.1
INFO - edk2-basetools version: 0.1.48
SECTION - Loading Plugins
DEBUG - Loading Plugin from
C:\src\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator.py
DEBUG - Loading Plugin from
C:\src\edk2\BaseTools\Plugin\DebugMacroCheck\BuildPlugin\DebugMacroCheckBuildPlugin.py
DEBUG - Loading Plugin from
C:\src\edk2\BaseTools\Plugin\WindowsResourceCompiler\WinRcPath.py
DEBUG - Loading Plugin from
C:\src\edk2\BaseTools\Plugin\WindowsVsToolChain\WindowsVsToolChain.py
SECTION - Kicking off build
PROGRESS - Start time: 2023-10-14 01:08:50.793605
DEBUG - Logging all Registered Helper Functions:
DEBUG - Finished logging 0 functions
PROGRESS - Setting up the Environment
DEBUG - PlatformBuilder SetPlatformEnv
DEBUG - Conf version: 0.0
DEBUG - Template Version: 0.0
DEBUG - Conf version: 3.0
DEBUG - Template Version: 3.0
DEBUG - Conf version: 0.0
DEBUG - Template Version: 0.0
DEBUG - Parse Target.txt file
DEBUG - Can't set value [EmulatorPkg/EmulatorPkg.dsc] as it isn'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:\src\edk2\OvmfPkg/OvmfPkgIa32X64.dsc
DEBUG - Getting all build keys for build type DEBUG
DEBUG - Parse Active Flash Definition (FDF) file
DEBUG - Getting all build keys for build type DEBUG
PROGRESS - Running Pre Build
INFO - Writing BuildToolsReports to
C:\src\edk2\Build\Ovmf3264\DEBUG_VS2022\BUILD_TOOLS_REPORT
DEBUG - Plugin Success: Build Tools Report Generator
DEBUG - Plugin Success: Debug Macro Check Plugin
INFO - Cmd to run is:
C:\src\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\Microsoft Visual Studio\2022\Community
INFO - ------------------------------------------------
INFO - --------------Cmd Output Finished---------------
INFO - --------- Running Time (mm:ss): 00:00 ----------
INFO - ----------- Return Code: 0x00000000 ------------
INFO - ------------------------------------------------
DEBUG - Calling 'C:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat amd64'
DEBUG - Plugin Success: Windows RC Path Support
DEBUG - Plugin Success: Windows Visual Studio Tool Chain Support
PROGRESS - Running Build DEBUG
DEBUG - Getting all build keys for build type DEBUG
DEBUG - The edk2 build command is build
DEBUG - Edk2 build parameters are -p OvmfPkg/OvmfPkgIa32X64.dsc -b DEBUG -t
VS2022 -a IA32 -a X64
INFO - Cmd to run is: build -p OvmfPkg/OvmfPkgIa32X64.dsc -b DEBUG -t
VS2022 -a IA32 -a X64
INFO - ------------------------------------------------
INFO - --------------Cmd Output Starting---------------
INFO - ------------------------------------------------
INFO - Build environment: Windows-10-10.0.18362-SP0
INFO - Build start time: 01:08:55, Oct.14 2023
INFO -
INFO - WORKSPACE        = C:\src\edk2
INFO - EDK_TOOLS_PATH   = C:\src\edk2\basetools
INFO - EDK_TOOLS_BIN    = C:\src\edk2\basetools\bin\win32
INFO - CONF_PATH        =
INFO - PYTHON_COMMAND   = C:\src\edk2\.venv\Scripts\python.exe
INFO -
INFO -
INFO - build.py...
INFO -  : error C0DE: Unknown fatal error when processing
[C:\src\edk2\OvmfPkg\OvmfPkgIa32X64.dsc]
INFO -
INFO - (Please send email to devel@edk2.groups.io for help, attaching
following call stack trace!)
INFO -
INFO - (Python 3.10.7 on win32) Traceback (most recent call last):
INFO -   File "C:\src\edk2\BaseTools\Source\Python\build\build.py", line
2692, in Main
INFO -     MyBuild = Build(Target, Workspace, Option,LogQ)
INFO -   File "C:\src\edk2\BaseTools\Source\Python\build\build.py", line
815, in __init__
INFO -     self.InitPreBuild()
INFO -   File "C:\src\edk2\BaseTools\Source\Python\build\build.py", line
1015, in InitPreBuild
INFO -     self.LoadConfiguration()
INFO -   File "C:\src\edk2\BaseTools\Source\Python\build\build.py", line
971, in LoadConfiguration
INFO -     self.GetToolChainAndFamilyFromDsc (self.PlatformFile)
INFO -   File "C:\src\edk2\BaseTools\Source\Python\build\build.py", line
905, in GetToolChainAndFamilyFromDsc
INFO -     dscobj = self.BuildDatabase[File, BuildArch]
INFO -   File
"C:\src\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py",
line 104, in __getitem__
INFO -     BuildObject = self.CreateBuildObject(FilePath, Arch, Target,
Toolchain)
INFO -   File
"C:\src\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\WorkspaceDatabase.py",
line 125, in CreateBuildObject
INFO -     BuildObject = self._GENERATOR_[FileType](
INFO -   File
"C:\src\edk2\.venv\lib\site-packages\edk2basetools\Workspace\DscBuildData.py",
line 231, in __init__
INFO -     self.SkuIdMgr = SkuClass(self.SkuName, self.SkuIds)
INFO -   File
"C:\src\edk2\.venv\lib\site-packages\edk2basetools\Workspace\DscBuildData.py",
line 510, in SkuName
INFO -     self._GetHeaderInfo()
INFO -   File
"C:\src\edk2\.venv\lib\site-packages\edk2basetools\Workspace\DscBuildData.py",
line 310, in _GetHeaderInfo
INFO -     RecordList = self._RawData[MODEL_META_DATA_HEADER, self._Arch]
INFO -   File
"C:\src\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py",
line 250, in __getitem__
INFO -     self._PostProcess()
INFO -   File
"C:\src\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py",
line 1429, in _PostProcess
INFO -     Processer[self._ItemType]()
INFO -   File
"C:\src\edk2\.venv\Lib\site-packages\edk2basetools\Workspace\MetaFileParser.py",
line 1608, in __ProcessDirective
INFO -     __IncludeMacros['WORKSPACE'] =
GlobalData.gGlobalDefines['WORKSPACE']
INFO - KeyError: 'WORKSPACE'
INFO -
INFO -
INFO - - Failed -
INFO - Build end time: 01:08:55, Oct.14 2023
INFO - Build total time: 00:00:00
INFO -
INFO - ------------------------------------------------
INFO - --------------Cmd Output Finished---------------
INFO - --------- Running Time (mm:ss): 00:00 ----------
INFO - ----------- Return Code: 0x00000001 ------------
INFO - ------------------------------------------------
CRITICAL - Build failed
PROGRESS - End time: 2023-10-14 01:08:55.796367 Total time Elapsed: 0:00:05
SECTION - Log file is located at: C:\src\edk2\Build\BUILDLOG_OvmfPkg.txt
SECTION - Summary
ERROR - Error


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109612): https://edk2.groups.io/g/devel/message/109612
Mute This Topic: https://groups.io/mt/101951389/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 14383 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-13 23:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13 23:14 [edk2-devel] Error during OvmfPkg build on Windows antonio parata

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox