* EDK2 environment setup
@ 2020-04-23 12:38 NAVDEEPPAL_SINGH
2020-04-23 16:07 ` [EXTERNAL] [edk2-devel] " Bret Barkelew
0 siblings, 1 reply; 22+ messages in thread
From: NAVDEEPPAL_SINGH @ 2020-04-23 12:38 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 827 bytes --]
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #2: Type: text/html, Size: 1030 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 12:38 EDK2 environment setup NAVDEEPPAL_SINGH
@ 2020-04-23 16:07 ` Bret Barkelew
2020-04-23 16:14 ` Navdeeppal.Singh
2020-04-23 16:23 ` [EXTERNAL] [edk2-devel] " jim slaughter
0 siblings, 2 replies; 22+ messages in thread
From: Bret Barkelew @ 2020-04-23 16:07 UTC (permalink / raw)
To: devel@edk2.groups.io, NAVDEEPPAL_SINGH@DELL.COM
[-- Attachment #1.1: Type: text/plain, Size: 1297 bytes --]
Have you installed the up-to-date Python requirements? “pip install –upgrade -r pip-requirements.txt”?
That’s the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #1.2: Type: text/html, Size: 3605 bytes --]
[-- Attachment #2: 566577EF2CD04DE2BC8F652973480BD6.png --]
[-- Type: image/png, Size: 140 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 16:07 ` [EXTERNAL] [edk2-devel] " Bret Barkelew
@ 2020-04-23 16:14 ` Navdeeppal.Singh
2020-04-23 16:17 ` Bret Barkelew
2020-04-23 19:03 ` Sean
2020-04-23 16:23 ` [EXTERNAL] [edk2-devel] " jim slaughter
1 sibling, 2 replies; 22+ messages in thread
From: Navdeeppal.Singh @ 2020-04-23 16:14 UTC (permalink / raw)
To: Bret.Barkelew, devel
[-- Attachment #1.1.1: Type: text/plain, Size: 1797 bytes --]
Hi Bret,
Yes PIP requirements are up to date.
On further digging through the logging file BASETOOLS_BUILD.txt.
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
Regards,
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com>
Sent: Thursday, April 23, 2020 9:37 PM
To: devel@edk2.groups.io; Singh, Navdeeppal
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Have you installed the up-to-date Python requirements? "pip install -upgrade -r pip-requirements.txt"?
That's the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #1.1.2: Type: text/html, Size: 5346 bytes --]
[-- Attachment #1.2: image002.png --]
[-- Type: image/png, Size: 165 bytes --]
[-- Attachment #2: BASETOOLS_BUILD.txt --]
[-- Type: text/plain, Size: 13568 bytes --]
INFO - Log Started: Thursday, April 23, 2020 09:35PM
SECTION - Init SDE
DEBUG - --- self_describing_environment.load_workspace()
DEBUG - Loading workspace: C:\edk2\BaseTools
DEBUG - Including scopes: global
DEBUG - Adding descriptor 'C:\edk2\BaseTools\basetools_calling_path_env.yaml' to the environment with scope 'global'.
DEBUG - Adding descriptor 'C:\edk2\BaseTools\basetools_path_env.yaml' to the environment with scope 'global'.
DEBUG - Adding descriptor 'C:\edk2\BaseTools\Source\Python\basetool_tiano_python_path_env.yaml' to the environment with scope 'global'.
DEBUG - Adding descriptor 'C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator_plug_in.yaml' to the environment with scope 'global'.
DEBUG - --- self_describing_environment.update_simple_paths()
DEBUG - --- self_describing_environment.update_extdep_paths()
DEBUG - --- self_describing_environment.report_extdep_version()
SECTION - Loading Plugins
DEBUG - Loading Plugin from C:\edk2\BaseTools\Plugin\BuildToolsReport\BuildToolsReportGenerator.py
SECTION - Start Invocable Tool
INFO - Running Python version: sys.version_info(major=3, minor=8, micro=2, releaselevel='final', serial=0)
INFO - Cmd to run YO BABY is: "c:\program files\python38\lib\site-packages\edk2toollib\bin\vswhere.exe" -latest -nologo -all -property installationPath -products * -version 16.0,17.0
INFO - ------------------------------------------------
INFO - --------------Cmd Output Starting---------------
INFO - ------------------------------------------------
INFO - C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
INFO - ------------------------------------------------
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\BuildTools\VC\Auxiliary\Build\vcvarsall.bat x86'
DEBUG - Var - ExtensionSdkDir = C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
DEBUG - Var - INCLUDE = C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt
DEBUG - Var - LIB = C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\lib\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\lib\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x86;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x86
DEBUG - Var - LIBPATH = C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.18362.0;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.18362.0;C:\Windows\Microsoft.NET\Framework\v4.0.30319
DEBUG - Var - Path = C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\;C:\edk2\BaseTools\BinWrappers\WindowsLike;C:\Users\Navdeeppal_Singh\Documents\Simulator\edk2\BaseTools\Bin\Win32;C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program Files\RSA SecurID Token Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\1E\NomadBranch\;C:\Program Files\Dell\Dell Data Protection\Encryption\;C:\Program Files\PuTTY\;C:\Program Files\Dell\SysMgt\rac5;C:\Program Files\TortoiseGit\bin;c:\program files (x86)\adaptiva\AdaptivaClient\bin\x32;c:\program files (x86)\adaptiva\AdaptivaClient\bin\x64;C:\Users\Navdeeppal_Singh\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
DEBUG - Var - UCRTVersion = 10.0.18362.0
DEBUG - Var - UniversalCRTSdkDir = C:\Program Files (x86)\Windows Kits\10\
DEBUG - Var - VCToolsInstallDir = C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\
DEBUG - Var - WindowsLibPath = C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.18362.0
DEBUG - Var - WindowsSdkBinPath = C:\Program Files (x86)\Windows Kits\10\bin\
DEBUG - Var - WindowsSdkDir = C:\Program Files (x86)\Windows Kits\10\
DEBUG - Var - WindowsSdkVerBinPath = C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\
DEBUG - Var - WindowsSDKVersion = 10.0.18362.0\
INFO - Cmd to run YO BABY is: nmake.exe
INFO - ------------------------------------------------
INFO - --------------Cmd Output Starting---------------
INFO - ------------------------------------------------
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - ######################
INFO - # Build libraries
INFO - ######################
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\Common
INFO -
INFO -
INFO - ######################
INFO - # Build executables
INFO - ######################
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\GenFv
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\GenCrc32
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\GenFfs
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\GenFw
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\VfrCompile
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\EfiRom
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\GenSec
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\Split
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\TianoCompress
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\LzmaCompress
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\VolInfo
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - execute command "nmake all" in directory C:\edk2\BaseTools\Source\C\DevicePath
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO -
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
INFO -
INFO - Microsoft (R) Program Maintenance Utility Version 14.25.28614.0
INFO - Copyright (C) Microsoft Corporation. All rights reserved.
INFO -
INFO - link.exe /nologo /debug /OPT:REF /OPT:ICF=10 /incremental:no /nodefaultlib:libc.lib /out:C:\edk2\BaseTools\Bin\Win32\Brotli.exe brotli\c\tools\brotli.obj brotli\c\common\dictionary.obj brotli\c\common\transform.obj brotli\c\dec\bit_reader.obj brotli\c\dec\decode.obj brotli\c\dec\huffman.obj brotli\c\dec\state.obj brotli\c\enc\backward_references.obj brotli\c\enc\backward_references_hq.obj brotli\c\enc\bit_cost.obj brotli\c\enc\block_splitter.obj brotli\c\enc\brotli_bit_stream.obj brotli\c\enc\cluster.obj brotli\c\enc\compress_fragment.obj brotli\c\enc\compress_fragment_two_pass.obj brotli\c\enc\dictionary_hash.obj brotli\c\enc\encode.obj brotli\c\enc\encoder_dict.obj brotli\c\enc\entropy_encode.obj brotli\c\enc\histogram.obj brotli\c\enc\literal_cost.obj brotli\c\enc\memory.obj brotli\c\enc\metablock.obj brotli\c\enc\static_dict.obj brotli\c\enc\utf8_util.obj
INFO - LINK : fatal error LNK1181: cannot open input file 'brotli\c\tools\brotli.obj'
INFO - NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x86\link.exe"' : return code '0x49d'
INFO - Stop.
INFO -
INFO - NMAKE : fatal error U1077: 'if' : return code '0x1'
INFO - Stop.
INFO - NMAKE : fatal error U1077: 'if' : return code '0x1'
INFO - Stop.
INFO - ------------------------------------------------
INFO - --------------Cmd Output Finished---------------
INFO - --------- Running Time (mm:ss): 00:03 ----------
INFO - ----------- Return Code: 0x00000002 ------------
INFO - ------------------------------------------------
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 16:14 ` Navdeeppal.Singh
@ 2020-04-23 16:17 ` Bret Barkelew
2020-04-23 16:21 ` Navdeeppal.Singh
2020-04-23 19:03 ` Sean
1 sibling, 1 reply; 22+ messages in thread
From: Bret Barkelew @ 2020-04-23 16:17 UTC (permalink / raw)
To: Navdeeppal.Singh@dell.com, devel@edk2.groups.io
[-- Attachment #1.1: Type: text/plain, Size: 2310 bytes --]
Yeah, I was noticing some problems with BrotliCompress the other day. Seems like a relatively recent change. I know the 202002 stable tag was fine.
I’ll try to dig into this a bit. Thanks for bring it to our attention!
- Bret
From: Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
Sent: Thursday, April 23, 2020 9:14 AM
To: Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hi Bret,
Yes PIP requirements are up to date.
On further digging through the logging file BASETOOLS_BUILD.txt.
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
Regards,
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com>
Sent: Thursday, April 23, 2020 9:37 PM
To: devel@edk2.groups.io; Singh, Navdeeppal
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Have you installed the up-to-date Python requirements? “pip install –upgrade -r pip-requirements.txt”?
That’s the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #1.2: Type: text/html, Size: 5840 bytes --]
[-- Attachment #2: D647AEA7B6DA4A3F902EA0DF47614B90.png --]
[-- Type: image/png, Size: 152 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 16:17 ` Bret Barkelew
@ 2020-04-23 16:21 ` Navdeeppal.Singh
2020-04-23 16:34 ` Bret Barkelew
0 siblings, 1 reply; 22+ messages in thread
From: Navdeeppal.Singh @ 2020-04-23 16:21 UTC (permalink / raw)
To: Bret.Barkelew, devel
[-- Attachment #1.1: Type: text/plain, Size: 2664 bytes --]
I will roll back to 202002 stable tag and try.
Thank you
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com>
Sent: Thursday, April 23, 2020 9:48 PM
To: Singh, Navdeeppal; devel@edk2.groups.io
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Yeah, I was noticing some problems with BrotliCompress the other day. Seems like a relatively recent change. I know the 202002 stable tag was fine.
I'll try to dig into this a bit. Thanks for bring it to our attention!
- Bret
From: Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
Sent: Thursday, April 23, 2020 9:14 AM
To: Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hi Bret,
Yes PIP requirements are up to date.
On further digging through the logging file BASETOOLS_BUILD.txt.
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
Regards,
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>
Sent: Thursday, April 23, 2020 9:37 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Have you installed the up-to-date Python requirements? "pip install -upgrade -r pip-requirements.txt"?
That's the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #1.2: Type: text/html, Size: 7222 bytes --]
[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 16:07 ` [EXTERNAL] [edk2-devel] " Bret Barkelew
2020-04-23 16:14 ` Navdeeppal.Singh
@ 2020-04-23 16:23 ` jim slaughter
2020-04-23 16:27 ` Bret Barkelew
1 sibling, 1 reply; 22+ messages in thread
From: jim slaughter @ 2020-04-23 16:23 UTC (permalink / raw)
To: devel, bret.barkelew
[-- Attachment #1: Type: text/plain, Size: 1834 bytes --]
Hello,
Yes my Python is 3.7.
I am trying to use cygwin to access the GNU tools since I do not have VS.
We are a small company.
I cannot get the edksetup.bat to execute correctly. It is a problem setting
up all the environment.
Is there an easier way? Am I on the right path?
Jim Slaughter
'
On Thu, Apr 23, 2020 at 11:07 AM Bret Barkelew via groups.io <bret.barkelew=
microsoft.com@groups.io> wrote:
> Have you installed the up-to-date Python requirements? “pip install
> –upgrade -r pip-requirements.txt”?
>
>
>
> That’s the first thing I would check. Otherwise, happy to look at the
> problem with you.
>
>
>
> - Bret
>
>
>
> *From: *NAVDEEPPAL_SINGH via groups.io
> <NAVDEEPPAL_SINGH=DELL.COM@groups.io>
> *Sent: *Thursday, April 23, 2020 6:05 AM
> *To: *devel@edk2.groups.io
> *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
>
> I am trying to setup EDK2 environment setup from Tianocore/EDK2.
> While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py
> -t VS2019
> Getting following error :-
> c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
> SECTION - Init SDE
> SECTION - Loading Plugins
> SECTION - Start Invocable Tool
> Traceback (most recent call last):
> File "Edk2ToolsBuild.py", line 177, in <module>
> main()
> File "Edk2ToolsBuild.py", line 173, in main
> Edk2ToolsBuild().Invoke()
> File "C:\Program
> Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py",
> line 141, in Invoke
> retcode = self.Go()
> File "Edk2ToolsBuild.py", line 139, in Go
> raise Exception("Failed to build.")
> Exception: Failed to build.
>
> set EDK_TOOLS_PATH=C:\edk2\BaseTools
> set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
> Can some one help
>
>
>
>
>
--
Jim Slaughter
[-- Attachment #2: Type: text/html, Size: 3187 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 16:23 ` [EXTERNAL] [edk2-devel] " jim slaughter
@ 2020-04-23 16:27 ` Bret Barkelew
0 siblings, 0 replies; 22+ messages in thread
From: Bret Barkelew @ 2020-04-23 16:27 UTC (permalink / raw)
To: jim slaughter, devel@edk2.groups.io
[-- Attachment #1.1: Type: text/plain, Size: 2648 bytes --]
I don’t personally have any experience using Cygwin, but I have used the Windows Subsystem for Linux successfully with EDK2 (I actually use it somewhat regularly. It has great integration with VSCode, which doesn’t require Visual Studio at all.)
https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Bret
From: jim slaughter<mailto:jim.slaughter@sage-micro.com>
Sent: Thursday, April 23, 2020 9:23 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>
Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hello,
Yes my Python is 3.7.
I am trying to use cygwin to access the GNU tools since I do not have VS. We are a small company.
I cannot get the edksetup.bat to execute correctly. It is a problem setting up all the environment.
Is there an easier way? Am I on the right path?
Jim Slaughter
'
On Thu, Apr 23, 2020 at 11:07 AM Bret Barkelew via groups.io<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgroups.io%2F&data=02%7C01%7Cbret.barkelew%40microsoft.com%7Cfa385632531740fc184608d7e7a2a308%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637232558018480585&sdata=Z%2FGSZKIolLQuqWlPOLgjf%2F2mYsK8UdtIbXCnB29xxow%3D&reserved=0> <bret.barkelew=microsoft.com@groups.io<mailto:microsoft.com@groups.io>> wrote:
Have you installed the up-to-date Python requirements? “pip install –upgrade -r pip-requirements.txt”?
That’s the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
--
Jim Slaughter
[-- Attachment #1.2: Type: text/html, Size: 7138 bytes --]
[-- Attachment #2: 3E986336389E4D2C97D1D3E2EA20D586.png --]
[-- Type: image/png, Size: 140 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 16:21 ` Navdeeppal.Singh
@ 2020-04-23 16:34 ` Bret Barkelew
2020-04-23 17:26 ` Michael D Kinney
0 siblings, 1 reply; 22+ messages in thread
From: Bret Barkelew @ 2020-04-23 16:34 UTC (permalink / raw)
To: Navdeeppal.Singh@dell.com, devel@edk2.groups.io, Feng, Bob C,
Liming Gao
[-- Attachment #1.1: Type: text/plain, Size: 3367 bytes --]
Confirmed that it seems related to these two commits:
https://github.com/tianocore/edk2/commit/58802e02c41bd715a5d3586f4bf2a4b1c46e9274
https://github.com/tianocore/edk2/commit/06033f5abad3815e8d80de22c97ba38a05017262
If I roll back to the commit prior, the Tools build works. Anyone involved in BaseTools have an idea? @Feng, Bob C<mailto:bob.c.feng@intel.com> or @Liming Gao<mailto:liming.gao@intel.com>?
- Bret
From: Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
Sent: Thursday, April 23, 2020 9:21 AM
To: Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
I will roll back to 202002 stable tag and try.
Thank you
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com>
Sent: Thursday, April 23, 2020 9:48 PM
To: Singh, Navdeeppal; devel@edk2.groups.io
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Yeah, I was noticing some problems with BrotliCompress the other day. Seems like a relatively recent change. I know the 202002 stable tag was fine.
I’ll try to dig into this a bit. Thanks for bring it to our attention!
- Bret
From: Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
Sent: Thursday, April 23, 2020 9:14 AM
To: Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hi Bret,
Yes PIP requirements are up to date.
On further digging through the logging file BASETOOLS_BUILD.txt.
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
Regards,
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>
Sent: Thursday, April 23, 2020 9:37 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Have you installed the up-to-date Python requirements? “pip install –upgrade -r pip-requirements.txt”?
That’s the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #1.2: Type: text/html, Size: 8454 bytes --]
[-- Attachment #2: CB4DB561F7DD44A18C2F50428BDF10D2.png --]
[-- Type: image/png, Size: 164 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 16:34 ` Bret Barkelew
@ 2020-04-23 17:26 ` Michael D Kinney
2020-04-23 18:23 ` Bret Barkelew
0 siblings, 1 reply; 22+ messages in thread
From: Michael D Kinney @ 2020-04-23 17:26 UTC (permalink / raw)
To: devel@edk2.groups.io, bret.barkelew@microsoft.com,
Navdeeppal.Singh@dell.com, Feng, Bob C, Gao, Liming,
Kinney, Michael D
[-- Attachment #1: Type: text/plain, Size: 4311 bytes --]
Bret,
I wonder if this is an order of operations issue.
Those 2 commits convert Brotli support to submodules. One for the FW decompress lib, and the other for the compression tool. The patch adds both submodule links to CISettings.py and we know that works for FW components. However, this may be the first time it is used for a C tool in BaseTools.
In order for BaseTool/EDK2ToolsBuild.py to complete, all the sources need to be present. So does CISettings.py need to be processed before running BaseTool/EDK2ToolsBuild.py?
Mike
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Bret Barkelew via groups.io
Sent: Thursday, April 23, 2020 9:34 AM
To: Navdeeppal.Singh@dell.com; devel@edk2.groups.io; Feng, Bob C <bob.c.feng@intel.com>; Gao, Liming <liming.gao@intel.com>
Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
Confirmed that it seems related to these two commits:
https://github.com/tianocore/edk2/commit/58802e02c41bd715a5d3586f4bf2a4b1c46e9274
https://github.com/tianocore/edk2/commit/06033f5abad3815e8d80de22c97ba38a05017262
If I roll back to the commit prior, the Tools build works. Anyone involved in BaseTools have an idea? @Feng, Bob C<mailto:bob.c.feng@intel.com> or @Liming Gao<mailto:liming.gao@intel.com>?
- Bret
From: Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
Sent: Thursday, April 23, 2020 9:21 AM
To: Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
I will roll back to 202002 stable tag and try.
Thank you
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>
Sent: Thursday, April 23, 2020 9:48 PM
To: Singh, Navdeeppal; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Yeah, I was noticing some problems with BrotliCompress the other day. Seems like a relatively recent change. I know the 202002 stable tag was fine.
I’ll try to dig into this a bit. Thanks for bring it to our attention!
- Bret
From: Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
Sent: Thursday, April 23, 2020 9:14 AM
To: Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hi Bret,
Yes PIP requirements are up to date.
On further digging through the logging file BASETOOLS_BUILD.txt.
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
Regards,
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>
Sent: Thursday, April 23, 2020 9:37 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Have you installed the up-to-date Python requirements? “pip install –upgrade -r pip-requirements.txt”?
That’s the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #2: Type: text/html, Size: 47905 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 17:26 ` Michael D Kinney
@ 2020-04-23 18:23 ` Bret Barkelew
0 siblings, 0 replies; 22+ messages in thread
From: Bret Barkelew @ 2020-04-23 18:23 UTC (permalink / raw)
To: Kinney, Michael D, devel@edk2.groups.io,
Navdeeppal.Singh@dell.com, Feng, Bob C, Gao, Liming
[-- Attachment #1: Type: text/plain, Size: 5703 bytes --]
I’ll play with it a little and see if the pipelines/documentation needs to change. Thanks!
- Bret
________________________________
From: Kinney, Michael D <michael.d.kinney@intel.com>
Sent: Thursday, April 23, 2020 10:26:32 AM
To: devel@edk2.groups.io <devel@edk2.groups.io>; Bret Barkelew <Bret.Barkelew@microsoft.com>; Navdeeppal.Singh@dell.com <Navdeeppal.Singh@dell.com>; Feng, Bob C <bob.c.feng@intel.com>; Gao, Liming <liming.gao@intel.com>; Kinney, Michael D <michael.d.kinney@intel.com>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
Bret,
I wonder if this is an order of operations issue.
Those 2 commits convert Brotli support to submodules. One for the FW decompress lib, and the other for the compression tool. The patch adds both submodule links to CISettings.py and we know that works for FW components. However, this may be the first time it is used for a C tool in BaseTools.
In order for BaseTool/EDK2ToolsBuild.py to complete, all the sources need to be present. So does CISettings.py need to be processed before running BaseTool/EDK2ToolsBuild.py?
Mike
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Bret Barkelew via groups.io
Sent: Thursday, April 23, 2020 9:34 AM
To: Navdeeppal.Singh@dell.com; devel@edk2.groups.io; Feng, Bob C <bob.c.feng@intel.com>; Gao, Liming <liming.gao@intel.com>
Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
Confirmed that it seems related to these two commits:
https://github.com/tianocore/edk2/commit/58802e02c41bd715a5d3586f4bf2a4b1c46e9274<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fcommit%2F58802e02c41bd715a5d3586f4bf2a4b1c46e9274&data=02%7C01%7Cbret.barkelew%40microsoft.com%7C766c0b1bef7145e0acd208d7e7ab8f7a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637232596365128994&sdata=2VhPZnY3MDipJb7E4PhnTCFu7a0cpZfhr0KjjyN1FU0%3D&reserved=0>
https://github.com/tianocore/edk2/commit/06033f5abad3815e8d80de22c97ba38a05017262<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2%2Fcommit%2F06033f5abad3815e8d80de22c97ba38a05017262&data=02%7C01%7Cbret.barkelew%40microsoft.com%7C766c0b1bef7145e0acd208d7e7ab8f7a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637232596365138987&sdata=crxrT6K7r3uiTfSLXH2BRHyIT1tOgcswd1E77yliQ0U%3D&reserved=0>
If I roll back to the commit prior, the Tools build works. Anyone involved in BaseTools have an idea? @Feng, Bob C<mailto:bob.c.feng@intel.com> or @Liming Gao<mailto:liming.gao@intel.com>?
- Bret
From: Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
Sent: Thursday, April 23, 2020 9:21 AM
To: Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
I will roll back to 202002 stable tag and try.
Thank you
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>
Sent: Thursday, April 23, 2020 9:48 PM
To: Singh, Navdeeppal; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Yeah, I was noticing some problems with BrotliCompress the other day. Seems like a relatively recent change. I know the 202002 stable tag was fine.
I’ll try to dig into this a bit. Thanks for bring it to our attention!
- Bret
From: Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
Sent: Thursday, April 23, 2020 9:14 AM
To: Bret Barkelew<mailto:Bret.Barkelew@microsoft.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hi Bret,
Yes PIP requirements are up to date.
On further digging through the logging file BASETOOLS_BUILD.txt.
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
Regards,
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>
Sent: Thursday, April 23, 2020 9:37 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Have you installed the up-to-date Python requirements? “pip install –upgrade -r pip-requirements.txt”?
That’s the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #2: Type: text/html, Size: 12666 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 16:14 ` Navdeeppal.Singh
2020-04-23 16:17 ` Bret Barkelew
@ 2020-04-23 19:03 ` Sean
2020-04-27 8:26 ` Navdeeppal.Singh
1 sibling, 1 reply; 22+ messages in thread
From: Sean @ 2020-04-23 19:03 UTC (permalink / raw)
To: devel@edk2.groups.io, Navdeeppal.Singh@dell.com, Bret Barkelew,
jim.slaughter@sage-micro.com
[-- Attachment #1: Type: text/plain, Size: 3335 bytes --]
Navdeep,
Yes since the 202002 stable tag there have been submodules introduced to the basetools. If you look closely you will see in the CI process this required a change where stuart_setup is run before calling edk2toolsbuild.py.
https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb368080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
If you are using "stuart" to build then that is the suggested path as stuar_setup will init your submodules listed in the RequiredSubmodules (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136). Given that the edk2 project and ecosystem has numerous ways to setup your environment and build, you can also just make sure your workspace is complete prior to running Edk2ToolsBuild.py. In this case you only need to run "git submodule update --init"
I just did this and it works fine with VS2019.
Jim,
Just as fyi as I know there are lots of reasons for toolchain selection.
I believe the Visual studio build tools are available free of charge (not the IDE but the compilers). Directions here. https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-studio-2019-preferred
Thanks
Sean
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Navdeeppal.Singh via groups.io
Sent: Thursday, April 23, 2020 9:14 AM
To: Bret Barkelew <Bret.Barkelew@microsoft.com>; devel@edk2.groups.io
Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hi Bret,
Yes PIP requirements are up to date.
On further digging through the logging file BASETOOLS_BUILD.txt.
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
Regards,
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>
Sent: Thursday, April 23, 2020 9:37 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Have you installed the up-to-date Python requirements? "pip install -upgrade -r pip-requirements.txt"?
That's the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #2: Type: text/html, Size: 8063 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-23 19:03 ` Sean
@ 2020-04-27 8:26 ` Navdeeppal.Singh
2020-04-27 20:57 ` Sean
0 siblings, 1 reply; 22+ messages in thread
From: Navdeeppal.Singh @ 2020-04-27 8:26 UTC (permalink / raw)
To: sean.brogan, devel, Bret.Barkelew, jim.slaughter
[-- Attachment #1.1: Type: text/plain, Size: 4340 bytes --]
Hi,
Thanks for your help.
I am to build base tools and able to generate bin files.
"Build" command is generated.
Later, I am trying to build "EmulatorPkg".
And running into VfrCompile error.
'VfrCompile' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
Stop.
'VfrCompile' is not recognized as an internal or external command,
operable program or batch file.
I can see VfrCompile.exe generated in "BaseTools".
Attached build log for "Emulator Pkg".
I tried checking the Env Paths .
Regards,
Navdeep
From: Sean Brogan <sean.brogan@microsoft.com>
Sent: Friday, April 24, 2020 12:33 AM
To: devel@edk2.groups.io; Singh, Navdeeppal; Bret Barkelew; jim.slaughter@sage-micro.com
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Navdeep,
Yes since the 202002 stable tag there have been submodules introduced to the basetools. If you look closely you will see in the CI process this required a change where stuart_setup is run before calling edk2toolsbuild.py.
https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb368080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
If you are using "stuart" to build then that is the suggested path as stuar_setup will init your submodules listed in the RequiredSubmodules (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136). Given that the edk2 project and ecosystem has numerous ways to setup your environment and build, you can also just make sure your workspace is complete prior to running Edk2ToolsBuild.py. In this case you only need to run "git submodule update --init"
I just did this and it works fine with VS2019.
Jim,
Just as fyi as I know there are lots of reasons for toolchain selection.
I believe the Visual studio build tools are available free of charge (not the IDE but the compilers). Directions here. https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-studio-2019-preferred
Thanks
Sean
From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Navdeeppal.Singh via groups.io
Sent: Thursday, April 23, 2020 9:14 AM
To: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hi Bret,
Yes PIP requirements are up to date.
On further digging through the logging file BASETOOLS_BUILD.txt.
INFO - subprocess not exit successfully
INFO - Error while execute command 'nmake all' in direcotry C:\edk2\BaseTools\Source\C\BrotliCompress
Regards,
Navdeep
From: Bret Barkelew <Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>>
Sent: Thursday, April 23, 2020 9:37 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal
Subject: RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Have you installed the up-to-date Python requirements? "pip install -upgrade -r pip-requirements.txt"?
That's the first thing I would check. Otherwise, happy to look at the problem with you.
- Bret
From: NAVDEEPPAL_SINGH via groups.io<mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
Sent: Thursday, April 23, 2020 6:05 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>
Subject: [EXTERNAL] [edk2-devel] EDK2 environment setup
I am trying to setup EDK2 environment setup from Tianocore/EDK2.
While doing the Base Tool setup. After running BaseTool/EDK2ToolsBuild.py -t VS2019
Getting following error :-
c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
SECTION - Init SDE
SECTION - Loading Plugins
SECTION - Start Invocable Tool
Traceback (most recent call last):
File "Edk2ToolsBuild.py", line 177, in <module>
main()
File "Edk2ToolsBuild.py", line 173, in main
Edk2ToolsBuild().Invoke()
File "C:\Program Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line 141, in Invoke
retcode = self.Go()
File "Edk2ToolsBuild.py", line 139, in Go
raise Exception("Failed to build.")
Exception: Failed to build.
set EDK_TOOLS_PATH=C:\edk2\BaseTools
set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
Can some one help
[-- Attachment #1.2: Type: text/html, Size: 11094 bytes --]
[-- Attachment #2: build_error_log.txt --]
[-- Type: text/plain, Size: 12064 bytes --]
C:\Stable>build
Build environment: Windows-10-10.0.17134-SP0
Build start time: 13:38:27, Apr.27 2020
WORKSPACE = c:\stable
EDK_TOOLS_PATH = c:\stable\basetools
EDK_TOOLS_BIN = c:\stable\basetools\bin\win32
CONF_PATH = c:\stable\conf
PYTHON_COMMAND = py -3
Processing meta-data .
Architecture(s) = IA32
Build target = DEBUG
Toolchain = VS2019
Active Platform = c:\stable\EmulatorPkg\EmulatorPkg.dsc
..... done!
Building ... c:\stable\MdePkg\Library\DxeServicesLib\DxeServicesLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\UefiDriverEntryPoint\UefiDriverEntryPoint.inf [IA32]
Building ... c:\stable\MdePkg\Library\DxeHobLib\DxeHobLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\UefiLib\UefiLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\UefiRuntimeServicesTableLib\UefiRuntimeServicesTableLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\UefiBootServicesTableLib\UefiBootServicesTableLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\BaseMemoryLib\BaseMemoryLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\UefiMemoryAllocationLib\UefiMemoryAllocationLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\PeiDxeDebugLibReportStatusCode\PeiDxeDebugLibReportStatusCode.inf [IA32]
Building ... c:\stable\MdePkg\Library\BaseLib\BaseLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\BasePcdLibNull\BasePcdLibNull.inf [IA32]
Building ... c:\stable\MdePkg\Library\UefiDevicePathLib\UefiDevicePathLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\BasePrintLib\BasePrintLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\DxeReportStatusCodeLib\DxeReportStatusCodeLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\BaseDebugPrintErrorLevelLib\BaseDebugPrintErrorLevelLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\PeiCoreEntryPoint\PeiCoreEntryPoint.inf [IA32]
Building ... c:\stable\EmulatorPkg\Library\PeiEmuPeCoffExtraActionLib\PeiEmuPeCoffExtraActionLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\VarCheckUefiLib\VarCheckUefiLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\AuthVariableLibNull\AuthVariableLibNull.inf [IA32]
Trim --asm-file -o c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdePkg\Library\BaseLib\BaseLib\OUTPUT\Ia32\DivU64x64Remainder.i -i c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdePkg\Library\BaseLib\BaseLib\OUTPUT\inc.lst c:\stable\MdePkg\Library\BaseLib\Ia32\DivU64x64Remainder.nasm
Building ... c:\stable\MdeModulePkg\Library\TpmMeasurementLibNull\TpmMeasurementLibNull.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\VarCheckLib\VarCheckLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\DxeCapsuleLibNull\DxeCapsuleLibNull.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManagerUiLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\BootManagerUiLib\BootManagerUiLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\DeviceManagerUiLib\DeviceManagerUiLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\FileExplorerLib\FileExplorerLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\PeiExtractGuidedSectionLib\PeiExtractGuidedSectionLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\BaseSynchronizationLib\BaseSynchronizationLib.inf [IA32]
Building ... c:\stable\MdePkg\Library\UefiScsiLib\UefiScsiLib.inf [IA32]
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\cl.exe" /showIncludes /nologo /E /TC /DVFRCOMPILE /FIBootMaintenanceManagerUiLibStrDefs.h /Ic:\stable\MdeModulePkg\Library\BootMaintenanceManagerUiLib /Ic:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManagerUiLib\DEBUG /Ic:\stable\MdePkg /Ic:\stable\MdePkg\Include /Ic:\stable\MdePkg\Include\Ia32 /Ic:\stable\MdeModulePkg /Ic:\stable\MdeModulePkg\Include c:\stable\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManager.vfr > c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManagerUiLib\OUTPUT\BootMaintenanceManager.i
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\cl.exe" /showIncludes /nologo /E /TC /DVFRCOMPILE /FIBootManagerUiLibStrDefs.h /Ic:\stable\MdeModulePkg\Library\BootManagerUiLib /Ic:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootManagerUiLib\BootManagerUiLib\DEBUG /Ic:\stable\MdePkg /Ic:\stable\MdePkg\Include /Ic:\stable\MdePkg\Include\Ia32 /Ic:\stable\MdeModulePkg /Ic:\stable\MdeModulePkg\Include c:\stable\MdeModulePkg\Library\BootManagerUiLib\BootManagerVfr.Vfr > c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootManagerUiLib\BootManagerUiLib\OUTPUT\BootManagerVfr.i
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\cl.exe" /showIncludes /nologo /E /TC /DVFRCOMPILE /FIDeviceManagerUiLibStrDefs.h /Ic:\stable\MdeModulePkg\Library\DeviceManagerUiLib /Ic:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\DeviceManagerUiLib\DeviceManagerUiLib\DEBUG /Ic:\stable\MdePkg /Ic:\stable\MdePkg\Include /Ic:\stable\MdePkg\Include\Ia32 /Ic:\stable\MdeModulePkg /Ic:\stable\MdeModulePkg\Include c:\stable\MdeModulePkg\Library\DeviceManagerUiLib\DeviceManagerVfr.Vfr > c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\DeviceManagerUiLib\DeviceManagerUiLib\OUTPUT\DeviceManagerVfr.i
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\cl.exe" /showIncludes /nologo /E /TC /DVFRCOMPILE /FIFileExplorerLibStrDefs.h /Ic:\stable\MdeModulePkg\Library\FileExplorerLib /Ic:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\FileExplorerLib\FileExplorerLib\DEBUG /Ic:\stable\MdePkg /Ic:\stable\MdePkg\Include /Ic:\stable\MdePkg\Include\Ia32 /Ic:\stable\MdeModulePkg /Ic:\stable\MdeModulePkg\Include c:\stable\MdeModulePkg\Library\FileExplorerLib\FileExplorerVfr.vfr > c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\FileExplorerLib\FileExplorerLib\OUTPUT\FileExplorerVfr.i
Building ... c:\stable\MdeModulePkg\Library\FrameBufferBltLib\FrameBufferBltLib.inf [IA32]
BootMaintenanceManager.vfr
BootManagerVfr.Vfr
FileExplorerVfr.vfr
Building ... c:\stable\EmulatorPkg\Library\ThunkProtocolList\ThunkProtocolList.inf [IA32]
Building ... c:\stable\EmulatorPkg\Library\ThunkPpiList\ThunkPpiList.inf [IA32]
DeviceManagerVfr.Vfr
Building ... c:\stable\MdePkg\Library\BasePeCoffExtraActionLibNull\BasePeCoffExtraActionLibNull.inf [IA32]
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\cl.exe" /showIncludes /nologo /E /TC /FIAutoGen.h /Ic:\stable\MdePkg\Library\BaseLib\Ia32 /Ic:\stable\MdePkg\Library\BaseLib /Ic:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdePkg\Library\BaseLib\BaseLib\DEBUG /Ic:\stable\MdePkg /Ic:\stable\MdePkg\Include /Ic:\stable\MdePkg\Include\Ia32 c:\stable\MdePkg\Library\BaseLib\Ia32\DivU64x64Remainder.nasm > c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdePkg\Library\BaseLib\BaseLib\OUTPUT\Ia32\DivU64x64Remainder.ii
Building ... c:\stable\EmulatorPkg\Library\PeiEmuPeCoffGetEntryPointLib\PeiEmuPeCoffGetEntryPointLib.inf [IA32]
Building ... c:\stable\EmulatorPkg\Library\SecPeiServicesLib\SecPeiServicesLib.inf [IA32]
Building ... c:\stable\EmulatorPkg\Library\SecPpiListLib\SecPpiListLib.inf [IA32]
DivU64x64Remainder.nasm
Trim --trim-long --source-code -o c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdePkg\Library\BaseLib\BaseLib\OUTPUT\Ia32\DivU64x64Remainder.iii c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdePkg\Library\BaseLib\BaseLib\OUTPUT\Ia32\DivU64x64Remainder.ii
"VfrCompile" -l -n --string-db c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootManagerUiLib\BootManagerUiLib\OUTPUT\BootManagerUiLibStrDefs.hpk --output-directory c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootManagerUiLib\BootManagerUiLib\DEBUG\. c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootManagerUiLib\BootManagerUiLib\OUTPUT\BootManagerVfr.i
Building ... c:\stable\EmulatorPkg\Library\SmbiosLib\SmbiosLib.inf [IA32]
"VfrCompile" -l -n --string-db c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\DeviceManagerUiLib\DeviceManagerUiLib\OUTPUT\DeviceManagerUiLibStrDefs.hpk --output-directory c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\DeviceManagerUiLib\DeviceManagerUiLib\DEBUG\. c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\DeviceManagerUiLib\DeviceManagerUiLib\OUTPUT\DeviceManagerVfr.i
"VfrCompile" -l -n --string-db c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManagerUiLib\OUTPUT\BootMaintenanceManagerUiLibStrDefs.hpk --output-directory c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManagerUiLib\DEBUG\. c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManagerUiLib\OUTPUT\BootMaintenanceManager.i
"VfrCompile" -l -n --string-db c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\FileExplorerLib\FileExplorerLib\OUTPUT\FileExplorerLibStrDefs.hpk --output-directory c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\FileExplorerLib\FileExplorerLib\DEBUG\. c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\FileExplorerLib\FileExplorerLib\OUTPUT\FileExplorerVfr.i
Building ... c:\stable\MdeModulePkg\Library\LzmaCustomDecompressLib\LzmaCustomDecompressLib.inf [IA32]
Building ... c:\stable\MdeModulePkg\Library\DxeCrc32GuidedSectionExtractLib\DxeCrc32GuidedSectionExtractLib.inf [IA32]
'VfrCompile' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
Stop.
'VfrCompile' is not recognized as an internal or external command,
operable program or batch file.
build.py...
: error 7000: Failed to execute command
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManagerUiLib]
build.py...
: error 7000: Failed to execute command
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\DeviceManagerUiLib\DeviceManagerUiLib]
build.py...
: error 7000: Failed to execute command
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\BootManagerUiLib\BootManagerUiLib]
build.py...
: error 7000: Failed to execute command
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdeModulePkg\Library\FileExplorerLib\FileExplorerLib]
build.py...
: error 7000: Failed to execute command
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\stable\Build\EmulatorIA32\DEBUG_VS2019\IA32\MdePkg\Library\BaseLib\BaseLib]
build.py...
: error F002: Failed to build module
c:\stable\MdeModulePkg\Library\BootMaintenanceManagerUiLib\BootMaintenanceManagerUiLib.inf [IA32, VS2019, DEBUG]
- Failed -
Build end time: 13:38:37, Apr.27 2020
Build total time: 00:00:11
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-27 8:26 ` Navdeeppal.Singh
@ 2020-04-27 20:57 ` Sean
2020-04-28 9:15 ` Navdeeppal.Singh
0 siblings, 1 reply; 22+ messages in thread
From: Sean @ 2020-04-27 20:57 UTC (permalink / raw)
To: devel, Navdeeppal.Singh, sean.brogan, Bret.Barkelew,
jim.slaughter
Are you using edksetup.bat? I would have expected this code to set the
path for you.
https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#L134
So without more logs i don't know.
If you want to use "stuart" (my preferred method) I have a commit here
for EmulatorPkg which has a platformbuild.py and readme.md that
describes the process. This should be committed to edk2 master this
week to enable Platform CI for every PR.
Here is the readme and details.
https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtEmulatorPackages_v10/EmulatorPkg/PlatformCI
Here is the commit you should cherry-pick if you want to try it.
https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd76f068d0a2
Thanks
Sean
On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com wrote:
> Hi,
>
> Thanks for your help.
>
> I am to build base tools and able to generate bin files.
>
> “Build” command is generated.
>
> Later, I am trying to build “EmulatorPkg”.
>
> And running into VfrCompile error.
>
> 'VfrCompile' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
> Stop.
>
> 'VfrCompile' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> I can see VfrCompile.exe generated in “BaseTools”.
>
> Attached build log for “Emulator Pkg”.
>
> I tried checking the Env Paths .
>
> Regards,
>
> Navdeep
>
> *From:* Sean Brogan <sean.brogan@microsoft.com>
> *Sent:* Friday, April 24, 2020 12:33 AM
> *To:* devel@edk2.groups.io; Singh, Navdeeppal; Bret Barkelew;
> jim.slaughter@sage-micro.com
> *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> [EXTERNAL EMAIL]
>
> Navdeep,
>
> Yes since the 202002 stable tag there have been submodules introduced to
> the basetools. If you look closely you will see in the CI process this
> required a change where stuart_setup is run before calling
> edk2toolsbuild.py.
>
> https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb368080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
> If you are using “stuart” to build then that is the suggested path as
> stuar_setup will init your submodules listed in the RequiredSubmodules
> (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
> Given that the edk2 project and ecosystem has numerous ways to setup
> your environment and build, you can also just make sure your workspace
> is complete prior to running Edk2ToolsBuild.py. In this case you only
> need to run “git submodule update --init”
>
> I just did this and it works fine with VS2019.
>
> Jim,
>
> Just as fyi as I know there are lots of reasons for toolchain selection.
>
> I believe the Visual studio build tools are available free of charge
> (not the IDE but the compilers). Directions here.
> https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-studio-2019-preferred
>
> Thanks
>
> Sean
>
> *From:* devel@edk2.groups.io <mailto:devel@edk2.groups.io>
> <devel@edk2.groups.io <mailto:devel@edk2.groups.io>> *On Behalf Of
> *Navdeeppal.Singh via groups.io
> *Sent:* Thursday, April 23, 2020 9:14 AM
> *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
> <mailto:Bret.Barkelew@microsoft.com>>; devel@edk2.groups.io
> <mailto:devel@edk2.groups.io>
> *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> Hi Bret,
>
> Yes PIP requirements are up to date.
>
> On further digging through the logging file BASETOOLS_BUILD.txt.
>
> INFO - subprocess not exit successfully
>
> INFO - Error while execute command 'nmake all' in direcotry
> C:\edk2\BaseTools\Source\C\BrotliCompress
>
> Regards,
>
> Navdeep
>
> *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
> <mailto:Bret.Barkelew@microsoft.com>>
> *Sent:* Thursday, April 23, 2020 9:37 PM
> *To:* devel@edk2.groups.io <mailto:devel@edk2.groups.io>; Singh, Navdeeppal
> *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> [EXTERNAL EMAIL]
>
> Have you installed the up-to-date Python requirements? “pip install
> –upgrade -r pip-requirements.txt”?
>
> That’s the first thing I would check. Otherwise, happy to look at the
> problem with you.
>
> - Bret
>
> *From: *NAVDEEPPAL_SINGH via groups.io
> <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
> *Sent: *Thursday, April 23, 2020 6:05 AM
> *To: *devel@edk2.groups.io <mailto:devel@edk2.groups.io>
> *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
> I am trying to setup EDK2 environment setup from Tianocore/EDK2.
> While doing the Base Tool setup. After running
> BaseTool/EDK2ToolsBuild.py -t VS2019
> Getting following error :-
> c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019
> SECTION - Init SDE
> SECTION - Loading Plugins
> SECTION - Start Invocable Tool
> Traceback (most recent call last):
> File "Edk2ToolsBuild.py", line 177, in <module>
> main()
> File "Edk2ToolsBuild.py", line 173, in main
> Edk2ToolsBuild().Invoke()
> File "C:\Program
> Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.py", line
> 141, in Invoke
> retcode = self.Go()
> File "Edk2ToolsBuild.py", line 139, in Go
> raise Exception("Failed to build.")
> Exception: Failed to build.
>
> set EDK_TOOLS_PATH=C:\edk2\BaseTools
> set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
> Can some one help
>
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-27 20:57 ` Sean
@ 2020-04-28 9:15 ` Navdeeppal.Singh
2020-04-28 9:35 ` Guomin Jiang
2020-04-28 9:38 ` [edk2-devel] EmulatorPkg WinHost build failure with VS2019 Was: " Leif Lindholm
0 siblings, 2 replies; 22+ messages in thread
From: Navdeeppal.Singh @ 2020-04-28 9:15 UTC (permalink / raw)
To: spbrogan, devel, sean.brogan, Bret.Barkelew, jim.slaughter
[-- Attachment #1.1: Type: text/plain, Size: 6873 bytes --]
Hi,
Yes I am using edksetup.bat.
I was able to fix VFR compiler after making path changes.
And I was able to build MdeModulePkg Successfully.
But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
[cid:image002.jpg@01D61D6B.6D7A8320]
Regards,
Navdeep
-----Original Message-----
From: Sean Brogan <spbrogan@outlook.com>
Sent: Tuesday, April 28, 2020 2:28 AM
To: devel@edk2.groups.io; Singh, Navdeeppal; sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com; jim.slaughter@sage-micro.com
Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Are you using edksetup.bat? I would have expected this code to set the path for you.
https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#L134
So without more logs i don't know.
If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
Here is the readme and details.
https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtEmulatorPackages_v10/EmulatorPkg/PlatformCI
Here is the commit you should cherry-pick if you want to try it.
https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd76f068d0a2
Thanks
Sean
On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com> wrote:
> Hi,
>
> Thanks for your help.
>
> I am to build base tools and able to generate bin files.
>
> "Build" command is generated.
>
> Later, I am trying to build "EmulatorPkg".
>
> And running into VfrCompile error.
>
> 'VfrCompile' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
> Stop.
>
> 'VfrCompile' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> I can see VfrCompile.exe generated in "BaseTools".
>
> Attached build log for "Emulator Pkg".
>
> I tried checking the Env Paths .
>
> Regards,
>
> Navdeep
>
> *From:* Sean Brogan <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>>
> *Sent:* Friday, April 24, 2020 12:33 AM
> *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal; Bret Barkelew;
> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
> *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> [EXTERNAL EMAIL]
>
> Navdeep,
>
> Yes since the 202002 stable tag there have been submodules introduced
> to the basetools. If you look closely you will see in the CI process
> this required a change where stuart_setup is run before calling
> edk2toolsbuild.py.
>
> https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb36
> 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
> If you are using "stuart" to build then that is the suggested path as
> stuar_setup will init your submodules listed in the RequiredSubmodules
> (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
> Given that the edk2 project and ecosystem has numerous ways to setup
> your environment and build, you can also just make sure your workspace
> is complete prior to running Edk2ToolsBuild.py. In this case you only
> need to run "git submodule update --init"
>
> I just did this and it works fine with VS2019.
>
> Jim,
>
> Just as fyi as I know there are lots of reasons for toolchain selection.
>
> I believe the Visual studio build tools are available free of charge
> (not the IDE but the compilers). Directions here.
> https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-s
> tudio-2019-preferred
>
> Thanks
>
> Sean
>
> *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>
> <devel@edk2.groups.io <mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%20%3cmailto:devel@edk2.groups.io>>> *On Behalf Of
> *Navdeeppal.Singh via groups.io
> *Sent:* Thursday, April 23, 2020 9:14 AM
> *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
> <mailto:Bret.Barkelew@microsoft.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
> <mailto:devel@edk2.groups.io>
> *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> Hi Bret,
>
> Yes PIP requirements are up to date.
>
> On further digging through the logging file BASETOOLS_BUILD.txt.
>
> INFO - subprocess not exit successfully
>
> INFO - Error while execute command 'nmake all' in direcotry
> C:\edk2\BaseTools\Source\C\BrotliCompress
>
> Regards,
>
> Navdeep
>
> *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
> <mailto:Bret.Barkelew@microsoft.com>>
> *Sent:* Thursday, April 23, 2020 9:37 PM
> *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>; Singh,
> Navdeeppal
> *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> [EXTERNAL EMAIL]
>
> Have you installed the up-to-date Python requirements? "pip install
> -upgrade -r pip-requirements.txt"?
>
> That's the first thing I would check. Otherwise, happy to look at the
> problem with you.
>
> - Bret
>
> *From: *NAVDEEPPAL_SINGH via groups.io
> <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
> *Sent: *Thursday, April 23, 2020 6:05 AM
> *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io> <mailto:devel@edk2.groups.io>
> *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
> I am trying to setup EDK2 environment setup from Tianocore/EDK2.
> While doing the Base Tool setup. After running
> BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
> c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
> SDE SECTION - Loading Plugins SECTION - Start Invocable Tool Traceback
> (most recent call last):
> File "Edk2ToolsBuild.py", line 177, in <module>
> main()
> File "Edk2ToolsBuild.py", line 173, in main
> Edk2ToolsBuild().Invoke()
> File "C:\Program
> Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.p
> y", line 141, in Invoke
> retcode = self.Go()
> File "Edk2ToolsBuild.py", line 139, in Go
> raise Exception("Failed to build.")
> Exception: Failed to build.
>
> set EDK_TOOLS_PATH=C:\edk2\BaseTools
> set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
> Can some one help
>
>
[-- Attachment #1.2: Type: text/html, Size: 19231 bytes --]
[-- Attachment #2: image002.jpg --]
[-- Type: image/jpeg, Size: 381359 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
2020-04-28 9:15 ` Navdeeppal.Singh
@ 2020-04-28 9:35 ` Guomin Jiang
2020-04-28 9:47 ` Leif Lindholm
2020-04-28 9:38 ` [edk2-devel] EmulatorPkg WinHost build failure with VS2019 Was: " Leif Lindholm
1 sibling, 1 reply; 22+ messages in thread
From: Guomin Jiang @ 2020-04-28 9:35 UTC (permalink / raw)
To: devel@edk2.groups.io, Navdeeppal.Singh@dell.com,
spbrogan@outlook.com, sean.brogan@microsoft.com,
Bret.Barkelew@microsoft.com, jim.slaughter@sage-micro.com
[-- Attachment #1.1: Type: text/plain, Size: 7560 bytes --]
It is known issue and can refer https://bugzilla.tianocore.org/show_bug.cgi?id=2637 for detail.
It have been fixed in newest repository, you can update to the newest repository and try again.
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Navdeeppal.Singh@dell.com
Sent: Tuesday, April 28, 2020 5:15 PM
To: spbrogan@outlook.com; devel@edk2.groups.io; sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com; jim.slaughter@sage-micro.com
Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
Hi,
Yes I am using edksetup.bat.
I was able to fix VFR compiler after making path changes.
And I was able to build MdeModulePkg Successfully.
But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
[cid:image001.jpg@01D61D83.5E9F0750]
Regards,
Navdeep
-----Original Message-----
From: Sean Brogan <spbrogan@outlook.com<mailto:spbrogan@outlook.com>>
Sent: Tuesday, April 28, 2020 2:28 AM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal; sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
Are you using edksetup.bat? I would have expected this code to set the path for you.
https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#L134
So without more logs i don't know.
If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
Here is the readme and details.
https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtEmulatorPackages_v10/EmulatorPkg/PlatformCI
Here is the commit you should cherry-pick if you want to try it.
https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd76f068d0a2
Thanks
Sean
On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com> wrote:
> Hi,
>
> Thanks for your help.
>
> I am to build base tools and able to generate bin files.
>
> "Build" command is generated.
>
> Later, I am trying to build "EmulatorPkg".
>
> And running into VfrCompile error.
>
> 'VfrCompile' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
> Stop.
>
> 'VfrCompile' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> I can see VfrCompile.exe generated in "BaseTools".
>
> Attached build log for "Emulator Pkg".
>
> I tried checking the Env Paths .
>
> Regards,
>
> Navdeep
>
> *From:* Sean Brogan <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>>
> *Sent:* Friday, April 24, 2020 12:33 AM
> *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal; Bret Barkelew;
> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
> *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> [EXTERNAL EMAIL]
>
> Navdeep,
>
> Yes since the 202002 stable tag there have been submodules introduced
> to the basetools. If you look closely you will see in the CI process
> this required a change where stuart_setup is run before calling
> edk2toolsbuild.py.
>
> https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb36
> 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
> If you are using "stuart" to build then that is the suggested path as
> stuar_setup will init your submodules listed in the RequiredSubmodules
> (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
> Given that the edk2 project and ecosystem has numerous ways to setup
> your environment and build, you can also just make sure your workspace
> is complete prior to running Edk2ToolsBuild.py. In this case you only
> need to run "git submodule update --init"
>
> I just did this and it works fine with VS2019.
>
> Jim,
>
> Just as fyi as I know there are lots of reasons for toolchain selection.
>
> I believe the Visual studio build tools are available free of charge
> (not the IDE but the compilers). Directions here.
> https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-s
> tudio-2019-preferred
>
> Thanks
>
> Sean
>
> *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>
> <devel@edk2.groups.io <mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%20%3cmailto:devel@edk2.groups.io>>> *On Behalf Of
> *Navdeeppal.Singh via groups.io
> *Sent:* Thursday, April 23, 2020 9:14 AM
> *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
> <mailto:Bret.Barkelew@microsoft.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
> <mailto:devel@edk2.groups.io>
> *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> Hi Bret,
>
> Yes PIP requirements are up to date.
>
> On further digging through the logging file BASETOOLS_BUILD.txt.
>
> INFO - subprocess not exit successfully
>
> INFO - Error while execute command 'nmake all' in direcotry
> C:\edk2\BaseTools\Source\C\BrotliCompress
>
> Regards,
>
> Navdeep
>
> *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
> <mailto:Bret.Barkelew@microsoft.com>>
> *Sent:* Thursday, April 23, 2020 9:37 PM
> *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>; Singh,
> Navdeeppal
> *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> [EXTERNAL EMAIL]
>
> Have you installed the up-to-date Python requirements? "pip install
> -upgrade -r pip-requirements.txt"?
>
> That's the first thing I would check. Otherwise, happy to look at the
> problem with you.
>
> - Bret
>
> *From: *NAVDEEPPAL_SINGH via groups.io
> <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
> *Sent: *Thursday, April 23, 2020 6:05 AM
> *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io> <mailto:devel@edk2.groups.io>
> *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
> I am trying to setup EDK2 environment setup from Tianocore/EDK2.
> While doing the Base Tool setup. After running
> BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
> c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
> SDE SECTION - Loading Plugins SECTION - Start Invocable Tool Traceback
> (most recent call last):
> File "Edk2ToolsBuild.py", line 177, in <module>
> main()
> File "Edk2ToolsBuild.py", line 173, in main
> Edk2ToolsBuild().Invoke()
> File "C:\Program
> Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.p
> y", line 141, in Invoke
> retcode = self.Go()
> File "Edk2ToolsBuild.py", line 139, in Go
> raise Exception("Failed to build.")
> Exception: Failed to build.
>
> set EDK_TOOLS_PATH=C:\edk2\BaseTools
> set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
> Can some one help
>
[-- Attachment #1.2: Type: text/html, Size: 20971 bytes --]
[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 190382 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [edk2-devel] EmulatorPkg WinHost build failure with VS2019 Was: EDK2 environment setup
2020-04-28 9:15 ` Navdeeppal.Singh
2020-04-28 9:35 ` Guomin Jiang
@ 2020-04-28 9:38 ` Leif Lindholm
1 sibling, 0 replies; 22+ messages in thread
From: Leif Lindholm @ 2020-04-28 9:38 UTC (permalink / raw)
To: devel, Navdeeppal.Singh
Cc: spbrogan, sean.brogan, Jordan Justen, Andrew Fish, Ray Ni
Hi Navdeep, (+EmulatorPkg maintainers)
Please provide logs in text format rather than as screenshots
(although admittedly, I only spotted this one because it got
quaranteened).
Nevertheless, the current issue looks like
https://stackoverflow.com/questions/61082301/how-to-solution-the-following-error-when-build-emulatorpkg
I.e., WinHost requires version specific linker options for Visual
Studio that don't seem to have been implemented for VS2019 yet.
Given that MSFT:*_VS2017_X64_DLINK_FLAGS and
MSFT:*_VS2015x86_X64_DLINK_FLAGS look identical, adding a copied line
and renaming it MSFT:*_VS2019_X64_DLINK_FLAGS might work.
Alternatively, the X64 versions could perhaps be condensed to simply a
single MSFT:*_*_X64_DLINK_FLAGS.
/
Leif
On Tue, Apr 28, 2020 at 09:15:09 +0000, Navdeeppal.Singh@dell.com wrote:
> Hi,
>
> Yes I am using edksetup.bat.
>
> I was able to fix VFR compiler after making path changes.
>
> And I was able to build MdeModulePkg Successfully.
>
> But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
>
>
>
> [cid:image002.jpg@01D61D6B.6D7A8320]
>
>
>
> Regards,
>
> Navdeep
>
> -----Original Message-----
> From: Sean Brogan <spbrogan@outlook.com>
> Sent: Tuesday, April 28, 2020 2:28 AM
> To: devel@edk2.groups.io; Singh, Navdeeppal; sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com; jim.slaughter@sage-micro.com
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
>
>
>
> [EXTERNAL EMAIL]
>
>
>
> Are you using edksetup.bat? I would have expected this code to set the path for you.
>
> https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#L134
>
> So without more logs i don't know.
>
>
>
>
>
>
>
> If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
>
>
>
> Here is the readme and details.
>
> https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtEmulatorPackages_v10/EmulatorPkg/PlatformCI
>
>
>
> Here is the commit you should cherry-pick if you want to try it.
>
>
>
> https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd76f068d0a2
>
>
>
>
>
>
>
> Thanks
>
> Sean
>
>
>
>
>
>
>
> On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com> wrote:
>
> > Hi,
>
> >
>
> > Thanks for your help.
>
> >
>
> > I am to build base tools and able to generate bin files.
>
> >
>
> > "Build" command is generated.
>
> >
>
> > Later, I am trying to build "EmulatorPkg".
>
> >
>
> > And running into VfrCompile error.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
> >
>
> > Stop.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > I can see VfrCompile.exe generated in "BaseTools".
>
> >
>
> > Attached build log for "Emulator Pkg".
>
> >
>
> > I tried checking the Env Paths .
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Sean Brogan <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>>
>
> > *Sent:* Friday, April 24, 2020 12:33 AM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal; Bret Barkelew;
>
> > jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Navdeep,
>
> >
>
> > Yes since the 202002 stable tag there have been submodules introduced
>
> > to the basetools. If you look closely you will see in the CI process
>
> > this required a change where stuart_setup is run before calling
>
> > edk2toolsbuild.py.
>
> >
>
> > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb36
>
> > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
> >
>
> > If you are using "stuart" to build then that is the suggested path as
>
> > stuar_setup will init your submodules listed in the RequiredSubmodules
>
> > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
>
> > Given that the edk2 project and ecosystem has numerous ways to setup
>
> > your environment and build, you can also just make sure your workspace
>
> > is complete prior to running Edk2ToolsBuild.py. In this case you only
>
> > need to run "git submodule update --init"
>
> >
>
> > I just did this and it works fine with VS2019.
>
> >
>
> > Jim,
>
> >
>
> > Just as fyi as I know there are lots of reasons for toolchain selection.
>
> >
>
> > I believe the Visual studio build tools are available free of charge
>
> > (not the IDE but the compilers). Directions here.
>
> > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-s
>
> > tudio-2019-preferred
>
> >
>
> > Thanks
>
> >
>
> > Sean
>
> >
>
> > *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>
>
> > <devel@edk2.groups.io <mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%20%3cmailto:devel@edk2.groups.io>>> *On Behalf Of
>
> > *Navdeeppal.Singh via groups.io
>
> > *Sent:* Thursday, April 23, 2020 9:14 AM
>
> > *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
>
> > <mailto:devel@edk2.groups.io>
>
> > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > Hi Bret,
>
> >
>
> > Yes PIP requirements are up to date.
>
> >
>
> > On further digging through the logging file BASETOOLS_BUILD.txt.
>
> >
>
> > INFO - subprocess not exit successfully
>
> >
>
> > INFO - Error while execute command 'nmake all' in direcotry
>
> > C:\edk2\BaseTools\Source\C\BrotliCompress
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>
>
> > *Sent:* Thursday, April 23, 2020 9:37 PM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>; Singh,
>
> > Navdeeppal
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Have you installed the up-to-date Python requirements? "pip install
>
> > -upgrade -r pip-requirements.txt"?
>
> >
>
> > That's the first thing I would check. Otherwise, happy to look at the
>
> > problem with you.
>
> >
>
> > - Bret
>
> >
>
> > *From: *NAVDEEPPAL_SINGH via groups.io
>
> > <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
>
> > *Sent: *Thursday, April 23, 2020 6:05 AM
>
> > *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io> <mailto:devel@edk2.groups.io>
>
> > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > I am trying to setup EDK2 environment setup from Tianocore/EDK2.
>
> > While doing the Base Tool setup. After running
>
> > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
>
> > c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
>
> > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool Traceback
>
> > (most recent call last):
>
> > File "Edk2ToolsBuild.py", line 177, in <module>
>
> > main()
>
> > File "Edk2ToolsBuild.py", line 173, in main
>
> > Edk2ToolsBuild().Invoke()
>
> > File "C:\Program
>
> > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.p
>
> > y", line 141, in Invoke
>
> > retcode = self.Go()
>
> > File "Edk2ToolsBuild.py", line 139, in Go
>
> > raise Exception("Failed to build.")
>
> > Exception: Failed to build.
>
> >
>
> > set EDK_TOOLS_PATH=C:\edk2\BaseTools
>
> > set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
>
> > Can some one help
>
> >
>
> >
>
>
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [edk2-devel] EDK2 environment setup
2020-04-28 9:35 ` Guomin Jiang
@ 2020-04-28 9:47 ` Leif Lindholm
2020-04-28 9:52 ` Navdeeppal.Singh
0 siblings, 1 reply; 22+ messages in thread
From: Leif Lindholm @ 2020-04-28 9:47 UTC (permalink / raw)
To: devel, guomin.jiang
Cc: Navdeeppal.Singh@dell.com, spbrogan@outlook.com,
sean.brogan@microsoft.com, Bret.Barkelew@microsoft.com,
jim.slaughter@sage-micro.com
My bad, was checking on a different computer than I thought where the
edk2 checkout wasn't up to date. Still, gives me a way to close out
the stackoverflow question, so thanks :)
/
Leif
On Tue, Apr 28, 2020 at 09:35:22 +0000, Guomin Jiang wrote:
> It is known issue and can refer https://bugzilla.tianocore.org/show_bug.cgi?id=2637 for detail.
>
> It have been fixed in newest repository, you can update to the newest repository and try again.
>
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Navdeeppal.Singh@dell.com
> Sent: Tuesday, April 28, 2020 5:15 PM
> To: spbrogan@outlook.com; devel@edk2.groups.io; sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com; jim.slaughter@sage-micro.com
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
> Hi,
>
> Yes I am using edksetup.bat.
>
> I was able to fix VFR compiler after making path changes.
>
> And I was able to build MdeModulePkg Successfully.
>
> But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
>
>
>
> [cid:image001.jpg@01D61D83.5E9F0750]
>
>
>
> Regards,
>
> Navdeep
>
> -----Original Message-----
> From: Sean Brogan <spbrogan@outlook.com<mailto:spbrogan@outlook.com>>
> Sent: Tuesday, April 28, 2020 2:28 AM
> To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal; sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
>
>
>
> [EXTERNAL EMAIL]
>
>
>
> Are you using edksetup.bat? I would have expected this code to set the path for you.
>
> https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#L134
>
> So without more logs i don't know.
>
>
>
>
>
>
>
> If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
>
>
>
> Here is the readme and details.
>
> https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtEmulatorPackages_v10/EmulatorPkg/PlatformCI
>
>
>
> Here is the commit you should cherry-pick if you want to try it.
>
>
>
> https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd76f068d0a2
>
>
>
>
>
>
>
> Thanks
>
> Sean
>
>
>
>
>
>
>
> On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com> wrote:
>
> > Hi,
>
> >
>
> > Thanks for your help.
>
> >
>
> > I am to build base tools and able to generate bin files.
>
> >
>
> > "Build" command is generated.
>
> >
>
> > Later, I am trying to build "EmulatorPkg".
>
> >
>
> > And running into VfrCompile error.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
> >
>
> > Stop.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > I can see VfrCompile.exe generated in "BaseTools".
>
> >
>
> > Attached build log for "Emulator Pkg".
>
> >
>
> > I tried checking the Env Paths .
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Sean Brogan <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>>
>
> > *Sent:* Friday, April 24, 2020 12:33 AM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh, Navdeeppal; Bret Barkelew;
>
> > jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Navdeep,
>
> >
>
> > Yes since the 202002 stable tag there have been submodules introduced
>
> > to the basetools. If you look closely you will see in the CI process
>
> > this required a change where stuart_setup is run before calling
>
> > edk2toolsbuild.py.
>
> >
>
> > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb36
>
> > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
> >
>
> > If you are using "stuart" to build then that is the suggested path as
>
> > stuar_setup will init your submodules listed in the RequiredSubmodules
>
> > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
>
> > Given that the edk2 project and ecosystem has numerous ways to setup
>
> > your environment and build, you can also just make sure your workspace
>
> > is complete prior to running Edk2ToolsBuild.py. In this case you only
>
> > need to run "git submodule update --init"
>
> >
>
> > I just did this and it works fine with VS2019.
>
> >
>
> > Jim,
>
> >
>
> > Just as fyi as I know there are lots of reasons for toolchain selection.
>
> >
>
> > I believe the Visual studio build tools are available free of charge
>
> > (not the IDE but the compilers). Directions here.
>
> > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual-s
>
> > tudio-2019-preferred
>
> >
>
> > Thanks
>
> >
>
> > Sean
>
> >
>
> > *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>
>
> > <devel@edk2.groups.io <mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%20%3cmailto:devel@edk2.groups.io>>> *On Behalf Of
>
> > *Navdeeppal.Singh via groups.io
>
> > *Sent:* Thursday, April 23, 2020 9:14 AM
>
> > *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>
>
> > <mailto:devel@edk2.groups.io>
>
> > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > Hi Bret,
>
> >
>
> > Yes PIP requirements are up to date.
>
> >
>
> > On further digging through the logging file BASETOOLS_BUILD.txt.
>
> >
>
> > INFO - subprocess not exit successfully
>
> >
>
> > INFO - Error while execute command 'nmake all' in direcotry
>
> > C:\edk2\BaseTools\Source\C\BrotliCompress
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>
>
> > *Sent:* Thursday, April 23, 2020 9:37 PM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io> <mailto:devel@edk2.groups.io>; Singh,
>
> > Navdeeppal
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Have you installed the up-to-date Python requirements? "pip install
>
> > -upgrade -r pip-requirements.txt"?
>
> >
>
> > That's the first thing I would check. Otherwise, happy to look at the
>
> > problem with you.
>
> >
>
> > - Bret
>
> >
>
> > *From: *NAVDEEPPAL_SINGH via groups.io
>
> > <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
>
> > *Sent: *Thursday, April 23, 2020 6:05 AM
>
> > *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io> <mailto:devel@edk2.groups.io>
>
> > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > I am trying to setup EDK2 environment setup from Tianocore/EDK2.
>
> > While doing the Base Tool setup. After running
>
> > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
>
> > c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
>
> > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool Traceback
>
> > (most recent call last):
>
> > File "Edk2ToolsBuild.py", line 177, in <module>
>
> > main()
>
> > File "Edk2ToolsBuild.py", line 173, in main
>
> > Edk2ToolsBuild().Invoke()
>
> > File "C:\Program
>
> > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable.p
>
> > y", line 141, in Invoke
>
> > retcode = self.Go()
>
> > File "Edk2ToolsBuild.py", line 139, in Go
>
> > raise Exception("Failed to build.")
>
> > Exception: Failed to build.
>
> >
>
> > set EDK_TOOLS_PATH=C:\edk2\BaseTools
>
> > set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
>
> > Can some one help
>
> >
>
>
>
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [edk2-devel] EDK2 environment setup
2020-04-28 9:47 ` Leif Lindholm
@ 2020-04-28 9:52 ` Navdeeppal.Singh
2020-04-30 5:09 ` Navdeeppal.Singh
0 siblings, 1 reply; 22+ messages in thread
From: Navdeeppal.Singh @ 2020-04-28 9:52 UTC (permalink / raw)
To: leif, devel, guomin.jiang
Cc: spbrogan, sean.brogan, Bret.Barkelew, jim.slaughter
Thank you.
Able to build Emulator pkg after adding VS2019 build options.
Regards,
Navdeep
-----Original Message-----
From: Leif Lindholm <leif@nuviainc.com>
Sent: Tuesday, April 28, 2020 3:18 PM
To: devel@edk2.groups.io; guomin.jiang@intel.com
Cc: Singh, Navdeeppal; spbrogan@outlook.com; sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com; jim.slaughter@sage-micro.com
Subject: Re: [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
My bad, was checking on a different computer than I thought where the
edk2 checkout wasn't up to date. Still, gives me a way to close out the stackoverflow question, so thanks :)
/
Leif
On Tue, Apr 28, 2020 at 09:35:22 +0000, Guomin Jiang wrote:
> It is known issue and can refer https://bugzilla.tianocore.org/show_bug.cgi?id=2637 for detail.
>
> It have been fixed in newest repository, you can update to the newest repository and try again.
>
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of
> Navdeeppal.Singh@dell.com
> Sent: Tuesday, April 28, 2020 5:15 PM
> To: spbrogan@outlook.com; devel@edk2.groups.io;
> sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com;
> jim.slaughter@sage-micro.com
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
> Hi,
>
> Yes I am using edksetup.bat.
>
> I was able to fix VFR compiler after making path changes.
>
> And I was able to build MdeModulePkg Successfully.
>
> But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
>
>
>
> [cid:image001.jpg@01D61D83.5E9F0750]
>
>
>
> Regards,
>
> Navdeep
>
> -----Original Message-----
> From: Sean Brogan <spbrogan@outlook.com<mailto:spbrogan@outlook.com>>
> Sent: Tuesday, April 28, 2020 2:28 AM
> To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh,
> Navdeeppal;
> sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>;
> Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>;
> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
>
>
>
> [EXTERNAL EMAIL]
>
>
>
> Are you using edksetup.bat? I would have expected this code to set the path for you.
>
> https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#
> L134
>
> So without more logs i don't know.
>
>
>
>
>
>
>
> If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
>
>
>
> Here is the readme and details.
>
> https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtE
> mulatorPackages_v10/EmulatorPkg/PlatformCI
>
>
>
> Here is the commit you should cherry-pick if you want to try it.
>
>
>
> https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd
> 76f068d0a2
>
>
>
>
>
>
>
> Thanks
>
> Sean
>
>
>
>
>
>
>
> On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com> wrote:
>
> > Hi,
>
> >
>
> > Thanks for your help.
>
> >
>
> > I am to build base tools and able to generate bin files.
>
> >
>
> > "Build" command is generated.
>
> >
>
> > Later, I am trying to build "EmulatorPkg".
>
> >
>
> > And running into VfrCompile error.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
> >
>
> > Stop.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > I can see VfrCompile.exe generated in "BaseTools".
>
> >
>
> > Attached build log for "Emulator Pkg".
>
> >
>
> > I tried checking the Env Paths .
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Sean Brogan
> > <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>>
>
> > *Sent:* Friday, April 24, 2020 12:33 AM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io>; Singh,
> > Navdeeppal; Bret Barkelew;
>
> > jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Navdeep,
>
> >
>
> > Yes since the 202002 stable tag there have been submodules
> > introduced
>
> > to the basetools. If you look closely you will see in the CI
> > process
>
> > this required a change where stuart_setup is run before calling
>
> > edk2toolsbuild.py.
>
> >
>
> > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb
> > 36
>
> > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
> >
>
> > If you are using "stuart" to build then that is the suggested path
> > as
>
> > stuar_setup will init your submodules listed in the
> > RequiredSubmodules
>
> > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
>
> > Given that the edk2 project and ecosystem has numerous ways to setup
>
> > your environment and build, you can also just make sure your
> > workspace
>
> > is complete prior to running Edk2ToolsBuild.py. In this case you
> > only
>
> > need to run "git submodule update --init"
>
> >
>
> > I just did this and it works fine with VS2019.
>
> >
>
> > Jim,
>
> >
>
> > Just as fyi as I know there are lots of reasons for toolchain selection.
>
> >
>
> > I believe the Visual studio build tools are available free of charge
>
> > (not the IDE but the compilers). Directions here.
>
> > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual
> > -s
>
> > tudio-2019-preferred
>
> >
>
> > Thanks
>
> >
>
> > Sean
>
> >
>
> > *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io>
> > <mailto:devel@edk2.groups.io>
>
> > <devel@edk2.groups.io
> > <mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%20%3cmailto
> > :devel@edk2.groups.io>>> *On Behalf Of
>
> > *Navdeeppal.Singh via groups.io
>
> > *Sent:* Thursday, April 23, 2020 9:14 AM
>
> > *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>;
> > devel@edk2.groups.io<mailto:devel@edk2.groups.io>
>
> > <mailto:devel@edk2.groups.io>
>
> > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > Hi Bret,
>
> >
>
> > Yes PIP requirements are up to date.
>
> >
>
> > On further digging through the logging file BASETOOLS_BUILD.txt.
>
> >
>
> > INFO - subprocess not exit successfully
>
> >
>
> > INFO - Error while execute command 'nmake all' in direcotry
>
> > C:\edk2\BaseTools\Source\C\BrotliCompress
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>
>
> > *Sent:* Thursday, April 23, 2020 9:37 PM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io>
> > <mailto:devel@edk2.groups.io>; Singh,
>
> > Navdeeppal
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Have you installed the up-to-date Python requirements? "pip install
>
> > -upgrade -r pip-requirements.txt"?
>
> >
>
> > That's the first thing I would check. Otherwise, happy to look at
> > the
>
> > problem with you.
>
> >
>
> > - Bret
>
> >
>
> > *From: *NAVDEEPPAL_SINGH via groups.io
>
> > <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
>
> > *Sent: *Thursday, April 23, 2020 6:05 AM
>
> > *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io>
> > <mailto:devel@edk2.groups.io>
>
> > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > I am trying to setup EDK2 environment setup from Tianocore/EDK2.
>
> > While doing the Base Tool setup. After running
>
> > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
>
> > c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
>
> > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool
> > Traceback
>
> > (most recent call last):
>
> > File "Edk2ToolsBuild.py", line 177, in <module>
>
> > main()
>
> > File "Edk2ToolsBuild.py", line 173, in main
>
> > Edk2ToolsBuild().Invoke()
>
> > File "C:\Program
>
> > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable
> > .p
>
> > y", line 141, in Invoke
>
> > retcode = self.Go()
>
> > File "Edk2ToolsBuild.py", line 139, in Go
>
> > raise Exception("Failed to build.")
>
> > Exception: Failed to build.
>
> >
>
> > set EDK_TOOLS_PATH=C:\edk2\BaseTools
>
> > set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
>
> > Can some one help
>
> >
>
>
>
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [edk2-devel] EDK2 environment setup
2020-04-28 9:52 ` Navdeeppal.Singh
@ 2020-04-30 5:09 ` Navdeeppal.Singh
2020-05-04 5:17 ` Navdeeppal.Singh
0 siblings, 1 reply; 22+ messages in thread
From: Navdeeppal.Singh @ 2020-04-30 5:09 UTC (permalink / raw)
To: leif, devel, guomin.jiang
Cc: spbrogan, sean.brogan, Bret.Barkelew, jim.slaughter
[-- Attachment #1.1: Type: text/plain, Size: 11836 bytes --]
Hi,
After launching Winhost.exe. Emulator exits after displaying "Sec Has Started".
I have not built any platform pkgs yet. This is just after building Emulator Pkg .
To boot to Shell what shall I do. How can I achive this.
Is there a document I can refer to.
[cid:image002.jpg@01D61EDB.8CF62120]
Regards,
Navdeep
-----Original Message-----
From: Singh, Navdeeppal
Sent: Tuesday, April 28, 2020 3:23 PM
To: 'Leif Lindholm'; devel@edk2.groups.io; guomin.jiang@intel.com
Cc: spbrogan@outlook.com; sean.brogan@microsoft.com; Bret.Barkelew@microsoft.com; jim.slaughter@sage-micro.com
Subject: RE: [edk2-devel] EDK2 environment setup
Thank you.
Able to build Emulator pkg after adding VS2019 build options.
Regards,
Navdeep
-----Original Message-----
From: Leif Lindholm <leif@nuviainc.com<mailto:leif@nuviainc.com>>
Sent: Tuesday, April 28, 2020 3:18 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>
Cc: Singh, Navdeeppal; spbrogan@outlook.com<mailto:spbrogan@outlook.com>; sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
Subject: Re: [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
My bad, was checking on a different computer than I thought where the
edk2 checkout wasn't up to date. Still, gives me a way to close out the stackoverflow question, so thanks :)
/
Leif
On Tue, Apr 28, 2020 at 09:35:22 +0000, Guomin Jiang wrote:
> It is known issue and can refer https://bugzilla.tianocore.org/show_bug.cgi?id=2637 for detail.
>
> It have been fixed in newest repository, you can update to the newest repository and try again.
>
> From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of
> Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
> Sent: Tuesday, April 28, 2020 5:15 PM
> To: spbrogan@outlook.com<mailto:spbrogan@outlook.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>;
> sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>;
> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
> Hi,
>
> Yes I am using edksetup.bat.
>
> I was able to fix VFR compiler after making path changes.
>
> And I was able to build MdeModulePkg Successfully.
>
> But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
>
>
>
> [cid:image001.jpg@01D61D83.5E9F0750]
>
>
>
> Regards,
>
> Navdeep
>
> -----Original Message-----
> From: Sean Brogan <spbrogan@outlook.com<mailto:spbrogan@outlook.com<mailto:spbrogan@outlook.com%3cmailto:spbrogan@outlook.com>>>
> Sent: Tuesday, April 28, 2020 2:28 AM
> To: devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>; Singh,
> Navdeeppal;
> sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com%3cmailto:sean.brogan@microsoft.com>>;
> Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com%3cmailto:Bret.Barkelew@microsoft.com>>;
> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com%3cmailto:jim.slaughter@sage-micro.com>>
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
>
>
>
> [EXTERNAL EMAIL]
>
>
>
> Are you using edksetup.bat? I would have expected this code to set the path for you.
>
> https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#
> L134
>
> So without more logs i don't know.
>
>
>
>
>
>
>
> If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
>
>
>
> Here is the readme and details.
>
> https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtE
> mulatorPackages_v10/EmulatorPkg/PlatformCI
>
>
>
> Here is the commit you should cherry-pick if you want to try it.
>
>
>
> https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd
> 76f068d0a2
>
>
>
>
>
>
>
> Thanks
>
> Sean
>
>
>
>
>
>
>
> On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com%3cmailto:Navdeeppal.Singh@dell.com>> wrote:
>
> > Hi,
>
> >
>
> > Thanks for your help.
>
> >
>
> > I am to build base tools and able to generate bin files.
>
> >
>
> > "Build" command is generated.
>
> >
>
> > Later, I am trying to build "EmulatorPkg".
>
> >
>
> > And running into VfrCompile error.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
> >
>
> > Stop.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > I can see VfrCompile.exe generated in "BaseTools".
>
> >
>
> > Attached build log for "Emulator Pkg".
>
> >
>
> > I tried checking the Env Paths .
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Sean Brogan
> > <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com%3cmailto:sean.brogan@microsoft.com>>>
>
> > *Sent:* Friday, April 24, 2020 12:33 AM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>; Singh,
> > Navdeeppal; Bret Barkelew;
>
> > jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com%3cmailto:jim.slaughter@sage-micro.com>>
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Navdeep,
>
> >
>
> > Yes since the 202002 stable tag there have been submodules
> > introduced
>
> > to the basetools. If you look closely you will see in the CI
> > process
>
> > this required a change where stuart_setup is run before calling
>
> > edk2toolsbuild.py.
>
> >
>
> > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb
> > 36
>
> > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
> >
>
> > If you are using "stuart" to build then that is the suggested path
> > as
>
> > stuar_setup will init your submodules listed in the
> > RequiredSubmodules
>
> > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
>
> > Given that the edk2 project and ecosystem has numerous ways to setup
>
> > your environment and build, you can also just make sure your
> > workspace
>
> > is complete prior to running Edk2ToolsBuild.py. In this case you
> > only
>
> > need to run "git submodule update --init"
>
> >
>
> > I just did this and it works fine with VS2019.
>
> >
>
> > Jim,
>
> >
>
> > Just as fyi as I know there are lots of reasons for toolchain selection.
>
> >
>
> > I believe the Visual studio build tools are available free of charge
>
> > (not the IDE but the compilers). Directions here.
>
> > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual
> > -s
>
> > tudio-2019-preferred
>
> >
>
> > Thanks
>
> >
>
> > Sean
>
> >
>
> > *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
> > <mailto:devel@edk2.groups.io>
>
> > <devel@edk2.groups.io
> > <mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%20%3cmailto
> > :devel@edk2.groups.io>>> *On Behalf Of
>
> > *Navdeeppal.Singh via groups.io
>
> > *Sent:* Thursday, April 23, 2020 9:14 AM
>
> > *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>;
> > devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
>
> > <mailto:devel@edk2.groups.io>
>
> > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > Hi Bret,
>
> >
>
> > Yes PIP requirements are up to date.
>
> >
>
> > On further digging through the logging file BASETOOLS_BUILD.txt.
>
> >
>
> > INFO - subprocess not exit successfully
>
> >
>
> > INFO - Error while execute command 'nmake all' in direcotry
>
> > C:\edk2\BaseTools\Source\C\BrotliCompress
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>
>
> > *Sent:* Thursday, April 23, 2020 9:37 PM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
> > <mailto:devel@edk2.groups.io>; Singh,
>
> > Navdeeppal
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Have you installed the up-to-date Python requirements? "pip install
>
> > -upgrade -r pip-requirements.txt"?
>
> >
>
> > That's the first thing I would check. Otherwise, happy to look at
> > the
>
> > problem with you.
>
> >
>
> > - Bret
>
> >
>
> > *From: *NAVDEEPPAL_SINGH via groups.io
>
> > <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
>
> > *Sent: *Thursday, April 23, 2020 6:05 AM
>
> > *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io<mailto:*devel@edk2.groups.io%3cmailto:*devel@edk2.groups.io>>
> > <mailto:devel@edk2.groups.io>
>
> > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > I am trying to setup EDK2 environment setup from Tianocore/EDK2.
>
> > While doing the Base Tool setup. After running
>
> > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
>
> > c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
>
> > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool
> > Traceback
>
> > (most recent call last):
>
> > File "Edk2ToolsBuild.py", line 177, in <module>
>
> > main()
>
> > File "Edk2ToolsBuild.py", line 173, in main
>
> > Edk2ToolsBuild().Invoke()
>
> > File "C:\Program
>
> > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable
> > .p
>
> > y", line 141, in Invoke
>
> > retcode = self.Go()
>
> > File "Edk2ToolsBuild.py", line 139, in Go
>
> > raise Exception("Failed to build.")
>
> > Exception: Failed to build.
>
> >
>
> > set EDK_TOOLS_PATH=C:\edk2\BaseTools
>
> > set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
>
> > Can some one help
>
> >
>
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 37048 bytes --]
[-- Attachment #2: image002.jpg --]
[-- Type: image/jpeg, Size: 66654 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [edk2-devel] EDK2 environment setup
2020-04-30 5:09 ` Navdeeppal.Singh
@ 2020-05-04 5:17 ` Navdeeppal.Singh
2020-05-04 17:40 ` Sean
2020-05-04 18:47 ` Andrew Fish
0 siblings, 2 replies; 22+ messages in thread
From: Navdeeppal.Singh @ 2020-05-04 5:17 UTC (permalink / raw)
To: leif, devel, guomin.jiang
Cc: spbrogan, sean.brogan, Bret.Barkelew, jim.slaughter
[-- Attachment #1.1: Type: text/plain, Size: 12460 bytes --]
Hi,
Any suggestions.
Regards,
Navdeep
From: Singh, Navdeeppal
Sent: Thursday, April 30, 2020 10:39 AM
To: 'Leif Lindholm'; 'devel@edk2.groups.io'; 'guomin.jiang@intel.com'
Cc: 'spbrogan@outlook.com'; 'sean.brogan@microsoft.com'; 'Bret.Barkelew@microsoft.com'; 'jim.slaughter@sage-micro.com'
Subject: RE: [edk2-devel] EDK2 environment setup
Hi,
After launching Winhost.exe. Emulator exits after displaying "Sec Has Started".
I have not built any platform pkgs yet. This is just after building Emulator Pkg .
To boot to Shell what shall I do. How can I achive this.
Is there a document I can refer to.
[cid:image001.jpg@01D62201.0F368030]
Regards,
Navdeep
-----Original Message-----
From: Singh, Navdeeppal
Sent: Tuesday, April 28, 2020 3:23 PM
To: 'Leif Lindholm'; devel@edk2.groups.io<mailto:devel@edk2.groups.io>; guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>
Cc: spbrogan@outlook.com<mailto:spbrogan@outlook.com>; sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
Subject: RE: [edk2-devel] EDK2 environment setup
Thank you.
Able to build Emulator pkg after adding VS2019 build options.
Regards,
Navdeep
-----Original Message-----
From: Leif Lindholm <leif@nuviainc.com<mailto:leif@nuviainc.com>>
Sent: Tuesday, April 28, 2020 3:18 PM
To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>
Cc: Singh, Navdeeppal; spbrogan@outlook.com<mailto:spbrogan@outlook.com>; sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
Subject: Re: [edk2-devel] EDK2 environment setup
[EXTERNAL EMAIL]
My bad, was checking on a different computer than I thought where the
edk2 checkout wasn't up to date. Still, gives me a way to close out the stackoverflow question, so thanks :)
/
Leif
On Tue, Apr 28, 2020 at 09:35:22 +0000, Guomin Jiang wrote:
> It is known issue and can refer https://bugzilla.tianocore.org/show_bug.cgi?id=2637 for detail.
>
> It have been fixed in newest repository, you can update to the newest repository and try again.
>
> From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of
> Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
> Sent: Tuesday, April 28, 2020 5:15 PM
> To: spbrogan@outlook.com<mailto:spbrogan@outlook.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>;
> sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>;
> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
> Hi,
>
> Yes I am using edksetup.bat.
>
> I was able to fix VFR compiler after making path changes.
>
> And I was able to build MdeModulePkg Successfully.
>
> But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
>
>
>
> [cid:image001.jpg@01D61D83.5E9F0750]
>
>
>
> Regards,
>
> Navdeep
>
> -----Original Message-----
> From: Sean Brogan <spbrogan@outlook.com<mailto:spbrogan@outlook.com<mailto:spbrogan@outlook.com%3cmailto:spbrogan@outlook.com>>>
> Sent: Tuesday, April 28, 2020 2:28 AM
> To: devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>; Singh,
> Navdeeppal;
> sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com%3cmailto:sean.brogan@microsoft.com>>;
> Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com%3cmailto:Bret.Barkelew@microsoft.com>>;
> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com%3cmailto:jim.slaughter@sage-micro.com>>
> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>
>
>
>
> [EXTERNAL EMAIL]
>
>
>
> Are you using edksetup.bat? I would have expected this code to set the path for you.
>
> https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#<https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat>
> L134
>
> So without more logs i don't know.
>
>
>
>
>
>
>
> If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
>
>
>
> Here is the readme and details.
>
> https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtE
> mulatorPackages_v10/EmulatorPkg/PlatformCI
>
>
>
> Here is the commit you should cherry-pick if you want to try it.
>
>
>
> https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd
> 76f068d0a2
>
>
>
>
>
>
>
> Thanks
>
> Sean
>
>
>
>
>
>
>
> On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com%3cmailto:Navdeeppal.Singh@dell.com>> wrote:
>
> > Hi,
>
> >
>
> > Thanks for your help.
>
> >
>
> > I am to build base tools and able to generate bin files.
>
> >
>
> > "Build" command is generated.
>
> >
>
> > Later, I am trying to build "EmulatorPkg".
>
> >
>
> > And running into VfrCompile error.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
> >
>
> > Stop.
>
> >
>
> > 'VfrCompile' is not recognized as an internal or external command,
>
> >
>
> > operable program or batch file.
>
> >
>
> > I can see VfrCompile.exe generated in "BaseTools".
>
> >
>
> > Attached build log for "Emulator Pkg".
>
> >
>
> > I tried checking the Env Paths .
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Sean Brogan
> > <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com%3cmailto:sean.brogan@microsoft.com>>>
>
> > *Sent:* Friday, April 24, 2020 12:33 AM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>; Singh,
> > Navdeeppal; Bret Barkelew;
>
> > jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com%3cmailto:jim.slaughter@sage-micro.com>>
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Navdeep,
>
> >
>
> > Yes since the 202002 stable tag there have been submodules
> > introduced
>
> > to the basetools. If you look closely you will see in the CI
> > process
>
> > this required a change where stuart_setup is run before calling
>
> > edk2toolsbuild.py.
>
> >
>
> > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb
> > 36
>
> > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
> >
>
> > If you are using "stuart" to build then that is the suggested path
> > as
>
> > stuar_setup will init your submodules listed in the
> > RequiredSubmodules
>
> > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
>
> > Given that the edk2 project and ecosystem has numerous ways to setup
>
> > your environment and build, you can also just make sure your
> > workspace
>
> > is complete prior to running Edk2ToolsBuild.py. In this case you
> > only
>
> > need to run "git submodule update --init"
>
> >
>
> > I just did this and it works fine with VS2019.
>
> >
>
> > Jim,
>
> >
>
> > Just as fyi as I know there are lots of reasons for toolchain selection.
>
> >
>
> > I believe the Visual studio build tools are available free of charge
>
> > (not the IDE but the compilers). Directions here.
>
> > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual
> > -s
>
> > tudio-2019-preferred
>
> >
>
> > Thanks
>
> >
>
> > Sean
>
> >
>
> > *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
> > <mailto:devel@edk2.groups.io>
>
> > <devel@edk2.groups.io
> > <mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%20%3cmailto
> > :devel@edk2.groups.io>>> *On Behalf Of
>
> > *Navdeeppal.Singh via groups.io
>
> > *Sent:* Thursday, April 23, 2020 9:14 AM
>
> > *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>;
> > devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
>
> > <mailto:devel@edk2.groups.io>
>
> > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > Hi Bret,
>
> >
>
> > Yes PIP requirements are up to date.
>
> >
>
> > On further digging through the logging file BASETOOLS_BUILD.txt.
>
> >
>
> > INFO - subprocess not exit successfully
>
> >
>
> > INFO - Error while execute command 'nmake all' in direcotry
>
> > C:\edk2\BaseTools\Source\C\BrotliCompress
>
> >
>
> > Regards,
>
> >
>
> > Navdeep
>
> >
>
> > *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
> > <mailto:Bret.Barkelew@microsoft.com>>
>
> > *Sent:* Thursday, April 23, 2020 9:37 PM
>
> > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
> > <mailto:devel@edk2.groups.io>; Singh,
>
> > Navdeeppal
>
> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > [EXTERNAL EMAIL]
>
> >
>
> > Have you installed the up-to-date Python requirements? "pip install
>
> > -upgrade -r pip-requirements.txt"?
>
> >
>
> > That's the first thing I would check. Otherwise, happy to look at
> > the
>
> > problem with you.
>
> >
>
> > - Bret
>
> >
>
> > *From: *NAVDEEPPAL_SINGH via groups.io
>
> > <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
>
> > *Sent: *Thursday, April 23, 2020 6:05 AM
>
> > *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io<mailto:*devel@edk2.groups.io%3cmailto:*devel@edk2.groups.io>>
> > <mailto:devel@edk2.groups.io>
>
> > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
> >
>
> > I am trying to setup EDK2 environment setup from Tianocore/EDK2.
>
> > While doing the Base Tool setup. After running
>
> > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
>
> > c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
>
> > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool
> > Traceback
>
> > (most recent call last):
>
> > File "Edk2ToolsBuild.py", line 177, in <module>
>
> > main()
>
> > File "Edk2ToolsBuild.py", line 173, in main
>
> > Edk2ToolsBuild().Invoke()
>
> > File "C:\Program
>
> > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable
> > .p
>
> > y", line 141, in Invoke
>
> > retcode = self.Go()
>
> > File "Edk2ToolsBuild.py", line 139, in Go
>
> > raise Exception("Failed to build.")
>
> > Exception: Failed to build.
>
> >
>
> > set EDK_TOOLS_PATH=C:\edk2\BaseTools
>
> > set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
>
> > Can some one help
>
> >
>
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 38469 bytes --]
[-- Attachment #2: image001.jpg --]
[-- Type: image/jpeg, Size: 66559 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [edk2-devel] EDK2 environment setup
2020-05-04 5:17 ` Navdeeppal.Singh
@ 2020-05-04 17:40 ` Sean
2020-05-04 18:47 ` Andrew Fish
1 sibling, 0 replies; 22+ messages in thread
From: Sean @ 2020-05-04 17:40 UTC (permalink / raw)
To: Navdeeppal.Singh, leif, devel, guomin.jiang
Cc: sean.brogan, Bret.Barkelew, jim.slaughter
A few things.
1. Do you have a log from the console?
2. Are you running WinHost.exe from a command line with current working
directory set to the same folder? Is it finding your FD?
For example if I run from the wrong folder i see.
C:\src\Platform-Ci\edk2\Build\EmulatorX64\DEBUG_VS2019>X64\WinHost.exe
EDK II WIN Host Emulation Environment from http://www.tianocore.org/edk2/
BootMode 0x00
OS Emulator passing in 128 KB of temp RAM at 0xe60a0000 to SEC
ERROR : Can not open Firmware Device File ../FV/FV_RECOVERY.fd (0xE).
Exiting.
If I run with CWD set to X64 folder then it works fine.
3. If you want, the platform CI has landed into master. The emulator is
being build and booted to shell on each PR. You can follow the same
process.
https://github.com/tianocore/edk2/tree/master/EmulatorPkg/PlatformCI#building-with-pytools-for-emulatorpkg
Thanks
Sean
On 5/3/2020 10:17 PM, Navdeeppal.Singh@dell.com wrote:
> Hi,
> Any suggestions.
>
> Regards,
> Navdeep
>
> From: Singh, Navdeeppal
> Sent: Thursday, April 30, 2020 10:39 AM
> To: 'Leif Lindholm'; 'devel@edk2.groups.io'; 'guomin.jiang@intel.com'
> Cc: 'spbrogan@outlook.com'; 'sean.brogan@microsoft.com'; 'Bret.Barkelew@microsoft.com'; 'jim.slaughter@sage-micro.com'
> Subject: RE: [edk2-devel] EDK2 environment setup
>
>
> Hi,
>
> After launching Winhost.exe. Emulator exits after displaying "Sec Has Started".
>
> I have not built any platform pkgs yet. This is just after building Emulator Pkg .
>
> To boot to Shell what shall I do. How can I achive this.
>
> Is there a document I can refer to.
>
> [cid:image001.jpg@01D62201.0F368030]
>
>
>
> Regards,
>
> Navdeep
>
> -----Original Message-----
> From: Singh, Navdeeppal
> Sent: Tuesday, April 28, 2020 3:23 PM
> To: 'Leif Lindholm'; devel@edk2.groups.io<mailto:devel@edk2.groups.io>; guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>
> Cc: spbrogan@outlook.com<mailto:spbrogan@outlook.com>; sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
> Subject: RE: [edk2-devel] EDK2 environment setup
>
>
>
> Thank you.
>
> Able to build Emulator pkg after adding VS2019 build options.
>
> Regards,
>
> Navdeep
>
>
>
> -----Original Message-----
>
> From: Leif Lindholm <leif@nuviainc.com<mailto:leif@nuviainc.com>>
>
> Sent: Tuesday, April 28, 2020 3:18 PM
>
> To: devel@edk2.groups.io<mailto:devel@edk2.groups.io>; guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>
>
> Cc: Singh, Navdeeppal; spbrogan@outlook.com<mailto:spbrogan@outlook.com>; sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
>
> Subject: Re: [edk2-devel] EDK2 environment setup
>
>
>
>
>
> [EXTERNAL EMAIL]
>
>
>
> My bad, was checking on a different computer than I thought where the
>
> edk2 checkout wasn't up to date. Still, gives me a way to close out the stackoverflow question, so thanks :)
>
>
>
> /
>
> Leif
>
>
>
> On Tue, Apr 28, 2020 at 09:35:22 +0000, Guomin Jiang wrote:
>
>> It is known issue and can refer https://bugzilla.tianocore.org/show_bug.cgi?id=2637 for detail.
>
>>
>
>> It have been fixed in newest repository, you can update to the newest repository and try again.
>
>>
>
>> From: devel@edk2.groups.io<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of
>
>> Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com>
>
>> Sent: Tuesday, April 28, 2020 5:15 PM
>
>> To: spbrogan@outlook.com<mailto:spbrogan@outlook.com>; devel@edk2.groups.io<mailto:devel@edk2.groups.io>;
>
>> sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com>;
>
>> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com>
>
>> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>>
>
>>
>
>> Hi,
>
>>
>
>> Yes I am using edksetup.bat.
>
>>
>
>> I was able to fix VFR compiler after making path changes.
>
>>
>
>> And I was able to build MdeModulePkg Successfully.
>
>>
>
>> But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
>
>>
>
>>
>
>>
>
>> [cid:image001.jpg@01D61D83.5E9F0750]
>
>>
>
>>
>
>>
>
>> Regards,
>
>>
>
>> Navdeep
>
>>
>
>> -----Original Message-----
>
>> From: Sean Brogan <spbrogan@outlook.com<mailto:spbrogan@outlook.com<mailto:spbrogan@outlook.com%3cmailto:spbrogan@outlook.com>>>
>
>> Sent: Tuesday, April 28, 2020 2:28 AM
>
>> To: devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>; Singh,
>
>> Navdeeppal;
>
>> sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com%3cmailto:sean.brogan@microsoft.com>>;
>
>> Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com%3cmailto:Bret.Barkelew@microsoft.com>>;
>
>> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com%3cmailto:jim.slaughter@sage-micro.com>>
>
>> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> [EXTERNAL EMAIL]
>
>>
>
>>
>
>>
>
>> Are you using edksetup.bat? I would have expected this code to set the path for you.
>
>>
>
>> https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#<https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat>
>
>> L134
>
>>
>
>> So without more logs i don't know.
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
>
>>
>
>>
>
>>
>
>> Here is the readme and details.
>
>>
>
>> https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtE
>
>> mulatorPackages_v10/EmulatorPkg/PlatformCI
>
>>
>
>>
>
>>
>
>> Here is the commit you should cherry-pick if you want to try it.
>
>>
>
>>
>
>>
>
>> https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd
>
>> 76f068d0a2
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> Thanks
>
>>
>
>> Sean
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com%3cmailto:Navdeeppal.Singh@dell.com>> wrote:
>
>>
>
>>> Hi,
>
>>
>
>>>
>
>>
>
>>> Thanks for your help.
>
>>
>
>>>
>
>>
>
>>> I am to build base tools and able to generate bin files.
>
>>
>
>>>
>
>>
>
>>> "Build" command is generated.
>
>>
>
>>>
>
>>
>
>>> Later, I am trying to build "EmulatorPkg".
>
>>
>
>>>
>
>>
>
>>> And running into VfrCompile error.
>
>>
>
>>>
>
>>
>
>>> 'VfrCompile' is not recognized as an internal or external command,
>
>>
>
>>>
>
>>
>
>>> operable program or batch file.
>
>>
>
>>>
>
>>
>
>>> NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
>
>>
>
>>>
>
>>
>
>>> Stop.
>
>>
>
>>>
>
>>
>
>>> 'VfrCompile' is not recognized as an internal or external command,
>
>>
>
>>>
>
>>
>
>>> operable program or batch file.
>
>>
>
>>>
>
>>
>
>>> I can see VfrCompile.exe generated in "BaseTools".
>
>>
>
>>>
>
>>
>
>>> Attached build log for "Emulator Pkg".
>
>>
>
>>>
>
>>
>
>>> I tried checking the Env Paths .
>
>>
>
>>>
>
>>
>
>>> Regards,
>
>>
>
>>>
>
>>
>
>>> Navdeep
>
>>
>
>>>
>
>>
>
>>> *From:* Sean Brogan
>
>>> <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com%3cmailto:sean.brogan@microsoft.com>>>
>
>>
>
>>> *Sent:* Friday, April 24, 2020 12:33 AM
>
>>
>
>>> *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>; Singh,
>
>>> Navdeeppal; Bret Barkelew;
>
>>
>
>>> jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com%3cmailto:jim.slaughter@sage-micro.com>>
>
>>
>
>>> *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>>
>
>>>
>
>>
>
>>> [EXTERNAL EMAIL]
>
>>
>
>>>
>
>>
>
>>> Navdeep,
>
>>
>
>>>
>
>>
>
>>> Yes since the 202002 stable tag there have been submodules
>
>>> introduced
>
>>
>
>>> to the basetools. If you look closely you will see in the CI
>
>>> process
>
>>
>
>>> this required a change where stuart_setup is run before calling
>
>>
>
>>> edk2toolsbuild.py.
>
>>
>
>>>
>
>>
>
>>> https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb
>
>>> 36
>
>>
>
>>> 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
>
>>
>
>>>
>
>>
>
>>> If you are using "stuart" to build then that is the suggested path
>
>>> as
>
>>
>
>>> stuar_setup will init your submodules listed in the
>
>>> RequiredSubmodules
>
>>
>
>>> (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).
>
>>
>
>>> Given that the edk2 project and ecosystem has numerous ways to setup
>
>>
>
>>> your environment and build, you can also just make sure your
>
>>> workspace
>
>>
>
>>> is complete prior to running Edk2ToolsBuild.py. In this case you
>
>>> only
>
>>
>
>>> need to run "git submodule update --init"
>
>>
>
>>>
>
>>
>
>>> I just did this and it works fine with VS2019.
>
>>
>
>>>
>
>>
>
>>> Jim,
>
>>
>
>>>
>
>>
>
>>> Just as fyi as I know there are lots of reasons for toolchain selection.
>
>>
>
>>>
>
>>
>
>>> I believe the Visual studio build tools are available free of charge
>
>>
>
>>> (not the IDE but the compilers). Directions here.
>
>>
>
>>> https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual
>
>>> -s
>
>>
>
>>> tudio-2019-preferred
>
>>
>
>>>
>
>>
>
>>> Thanks
>
>>
>
>>>
>
>>
>
>>> Sean
>
>>
>
>>>
>
>>
>
>>> *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
>
>>> <mailto:devel@edk2.groups.io>
>
>>
>
>>> <devel@edk2.groups.io
>
>>> <mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%20%3cmailto
>
>>> :devel@edk2.groups.io>>> *On Behalf Of
>
>>
>
>>> *Navdeeppal.Singh via groups.io
>
>>
>
>>> *Sent:* Thursday, April 23, 2020 9:14 AM
>
>>
>
>>> *To:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
>>
>
>>> <mailto:Bret.Barkelew@microsoft.com>>;
>
>>> devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
>
>>
>
>>> <mailto:devel@edk2.groups.io>
>
>>
>
>>> *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>>
>
>>>
>
>>
>
>>> Hi Bret,
>
>>
>
>>>
>
>>
>
>>> Yes PIP requirements are up to date.
>
>>
>
>>>
>
>>
>
>>> On further digging through the logging file BASETOOLS_BUILD.txt.
>
>>
>
>>>
>
>>
>
>>> INFO - subprocess not exit successfully
>
>>
>
>>>
>
>>
>
>>> INFO - Error while execute command 'nmake all' in direcotry
>
>>
>
>>> C:\edk2\BaseTools\Source\C\BrotliCompress
>
>>
>
>>>
>
>>
>
>>> Regards,
>
>>
>
>>>
>
>>
>
>>> Navdeep
>
>>
>
>>>
>
>>
>
>>> *From:* Bret Barkelew <Bret.Barkelew@microsoft.com
>
>>
>
>>> <mailto:Bret.Barkelew@microsoft.com>>
>
>>
>
>>> *Sent:* Thursday, April 23, 2020 9:37 PM
>
>>
>
>>> *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io<mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
>
>>> <mailto:devel@edk2.groups.io>; Singh,
>
>>
>
>>> Navdeeppal
>
>>
>
>>> *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
>
>>
>
>>>
>
>>
>
>>> [EXTERNAL EMAIL]
>
>>
>
>>>
>
>>
>
>>> Have you installed the up-to-date Python requirements? "pip install
>
>>
>
>>> -upgrade -r pip-requirements.txt"?
>
>>
>
>>>
>
>>
>
>>> That's the first thing I would check. Otherwise, happy to look at
>
>>> the
>
>>
>
>>> problem with you.
>
>>
>
>>>
>
>>
>
>>> - Bret
>
>>
>
>>>
>
>>
>
>>> *From: *NAVDEEPPAL_SINGH via groups.io
>
>>
>
>>> <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>
>
>>
>
>>> *Sent: *Thursday, April 23, 2020 6:05 AM
>
>>
>
>>> *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io<mailto:*devel@edk2.groups.io%3cmailto:*devel@edk2.groups.io>>
>
>>> <mailto:devel@edk2.groups.io>
>
>>
>
>>> *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
>
>>
>
>>>
>
>>
>
>>> I am trying to setup EDK2 environment setup from Tianocore/EDK2.
>
>>
>
>>> While doing the Base Tool setup. After running
>
>>
>
>>> BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
>
>>
>
>>> c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
>
>>
>
>>> SDE SECTION - Loading Plugins SECTION - Start Invocable Tool
>
>>> Traceback
>
>>
>
>>> (most recent call last):
>
>>
>
>>> File "Edk2ToolsBuild.py", line 177, in <module>
>
>>
>
>>> main()
>
>>
>
>>> File "Edk2ToolsBuild.py", line 173, in main
>
>>
>
>>> Edk2ToolsBuild().Invoke()
>
>>
>
>>> File "C:\Program
>
>>
>
>>> Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable
>
>>> .p
>
>>
>
>>> y", line 141, in Invoke
>
>>
>
>>> retcode = self.Go()
>
>>
>
>>> File "Edk2ToolsBuild.py", line 139, in Go
>
>>
>
>>> raise Exception("Failed to build.")
>
>>
>
>>> Exception: Failed to build.
>
>>
>
>>>
>
>>
>
>>> set EDK_TOOLS_PATH=C:\edk2\BaseTools
>
>>
>
>>> set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
>
>>
>
>>> Can some one help
>
>>
>
>>>
>
>>
>
>>
>
>>
>
>>
>
>
>
>
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [edk2-devel] EDK2 environment setup
2020-05-04 5:17 ` Navdeeppal.Singh
2020-05-04 17:40 ` Sean
@ 2020-05-04 18:47 ` Andrew Fish
1 sibling, 0 replies; 22+ messages in thread
From: Andrew Fish @ 2020-05-04 18:47 UTC (permalink / raw)
To: devel, Navdeeppal.Singh
Cc: leif, guomin.jiang, spbrogan, sean.brogan, Bret.Barkelew,
jim.slaughter
[-- Attachment #1: Type: text/plain, Size: 14527 bytes --]
Navdeep,
The emulator is just a C command line app that loads an FD into memory and jumps into it.
The 1st set of prints are from the emulator App.
The SEC is in an FV in the FD and the application has transferred control to the SEC. Your last print is "SEC Has Started" [1] and that means you started running code from the FD.
So maybe the App is faulting in some way and if you ran it under a debugger you would find out why?
[1] $ git grep "SEC Has Started"
EmulatorPkg/Sec/Sec.c:83: DEBUG ((EFI_D_ERROR, "SEC Has Started\n"));
Thanks,
Andrew Fish
> On May 3, 2020, at 10:17 PM, <Navdeeppal.Singh@dell.com> <Navdeeppal.Singh@dell.com> wrote:
>
> Hi,
> Any suggestions.
>
> Regards,
> Navdeep
>
> From: Singh, Navdeeppal
> Sent: Thursday, April 30, 2020 10:39 AM
> To: 'Leif Lindholm'; 'devel@edk2.groups.io <mailto:devel@edk2.groups.io>'; 'guomin.jiang@intel.com <mailto:guomin.jiang@intel.com>'
> Cc: 'spbrogan@outlook.com <mailto:spbrogan@outlook.com>'; 'sean.brogan@microsoft.com <mailto:sean.brogan@microsoft.com>'; 'Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com>'; 'jim.slaughter@sage-micro.com <mailto:jim.slaughter@sage-micro.com>'
> Subject: RE: [edk2-devel] EDK2 environment setup
>
> Hi,
> After launching Winhost.exe. Emulator exits after displaying “Sec Has Started”.
> I have not built any platform pkgs yet. This is just after building Emulator Pkg .
> To boot to Shell what shall I do. How can I achive this.
> Is there a document I can refer to.
> <image001.jpg>
>
> Regards,
> Navdeep
> -----Original Message-----
> From: Singh, Navdeeppal
> Sent: Tuesday, April 28, 2020 3:23 PM
> To: 'Leif Lindholm'; devel@edk2.groups.io <mailto:devel@edk2.groups.io>; guomin.jiang@intel.com <mailto:guomin.jiang@intel.com>
> Cc: spbrogan@outlook.com <mailto:spbrogan@outlook.com>; sean.brogan@microsoft.com <mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com <mailto:jim.slaughter@sage-micro.com>
> Subject: RE: [edk2-devel] EDK2 environment setup
>
> Thank you.
> Able to build Emulator pkg after adding VS2019 build options.
> Regards,
> Navdeep
>
> -----Original Message-----
> From: Leif Lindholm <leif@nuviainc.com <mailto:leif@nuviainc.com>>
> Sent: Tuesday, April 28, 2020 3:18 PM
> To: devel@edk2.groups.io <mailto:devel@edk2.groups.io>; guomin.jiang@intel.com <mailto:guomin.jiang@intel.com>
> Cc: Singh, Navdeeppal; spbrogan@outlook.com <mailto:spbrogan@outlook.com>; sean.brogan@microsoft.com <mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com>; jim.slaughter@sage-micro.com <mailto:jim.slaughter@sage-micro.com>
> Subject: Re: [edk2-devel] EDK2 environment setup
>
>
> [EXTERNAL EMAIL]
>
> My bad, was checking on a different computer than I thought where the
> edk2 checkout wasn't up to date. Still, gives me a way to close out the stackoverflow question, so thanks :)
>
> /
> Leif
>
> On Tue, Apr 28, 2020 at 09:35:22 +0000, Guomin Jiang wrote:
> > It is known issue and can refer https://bugzilla.tianocore.org/show_bug.cgi?id=2637 <https://bugzilla.tianocore.org/show_bug.cgi?id=2637> for detail.
> >
> > It have been fixed in newest repository, you can update to the newest repository and try again.
> >
> > From: devel@edk2.groups.io <mailto:devel@edk2.groups.io> <devel@edk2.groups.io <mailto:devel@edk2.groups.io>> On Behalf Of
> > Navdeeppal.Singh@dell.com <mailto:Navdeeppal.Singh@dell.com>
> > Sent: Tuesday, April 28, 2020 5:15 PM
> > To: spbrogan@outlook.com <mailto:spbrogan@outlook.com>; devel@edk2.groups.io <mailto:devel@edk2.groups.io>;
> > sean.brogan@microsoft.com <mailto:sean.brogan@microsoft.com>; Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com>;
> > jim.slaughter@sage-micro.com <mailto:jim.slaughter@sage-micro.com>
> > Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
> >
> >
> > Hi,
> >
> > Yes I am using edksetup.bat.
> >
> > I was able to fix VFR compiler after making path changes.
> >
> > And I was able to build MdeModulePkg Successfully.
> >
> > But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.
> >
> >
> >
> > [cid:image001.jpg@01D61D83.5E9F0750 <cid:image001.jpg@01D61D83.5E9F0750>]
> >
> >
> >
> > Regards,
> >
> > Navdeep
> >
> > -----Original Message-----
> > From: Sean Brogan <spbrogan@outlook.com<mailto:spbrogan@outlook.com <mailto:spbrogan@outlook.com%3cmailto:spbrogan@outlook.com>>>
> > Sent: Tuesday, April 28, 2020 2:28 AM
> > To: devel@edk2.groups.io<mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>; Singh,
> > Navdeeppal;
> > sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com <mailto:sean.brogan@microsoft.com%3cmailto:sean.brogan@microsoft.com>>;
> > Bret.Barkelew@microsoft.com<mailto:Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com%3cmailto:Bret.Barkelew@microsoft.com>>;
> > jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com <mailto:jim.slaughter@sage-micro.com%3cmailto:jim.slaughter@sage-micro.com>>
> > Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
> >
> >
> >
> >
> >
> > [EXTERNAL EMAIL]
> >
> >
> >
> > Are you using edksetup.bat? I would have expected this code to set the path for you.
> >
> > https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat# <https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat>
> > L134
> >
> > So without more logs i don't know.
> >
> >
> >
> >
> >
> >
> >
> > If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process. This should be committed to edk2 master this week to enable Platform CI for every PR.
> >
> >
> >
> > Here is the readme and details.
> >
> > https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtE <https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtE>
> > mulatorPackages_v10/EmulatorPkg/PlatformCI
> >
> >
> >
> > Here is the commit you should cherry-pick if you want to try it.
> >
> >
> >
> > https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd <https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd>
> > 76f068d0a2
> >
> >
> >
> >
> >
> >
> >
> > Thanks
> >
> > Sean
> >
> >
> >
> >
> >
> >
> >
> > On 4/27/2020 1:26 AM, Navdeeppal.Singh@dell.com<mailto:Navdeeppal.Singh@dell.com <mailto:Navdeeppal.Singh@dell.com%3cmailto:Navdeeppal.Singh@dell.com>> wrote:
> >
> > > Hi,
> >
> > >
> >
> > > Thanks for your help.
> >
> > >
> >
> > > I am to build base tools and able to generate bin files.
> >
> > >
> >
> > > "Build" command is generated.
> >
> > >
> >
> > > Later, I am trying to build "EmulatorPkg".
> >
> > >
> >
> > > And running into VfrCompile error.
> >
> > >
> >
> > > 'VfrCompile' is not recognized as an internal or external command,
> >
> > >
> >
> > > operable program or batch file.
> >
> > >
> >
> > > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'
> >
> > >
> >
> > > Stop.
> >
> > >
> >
> > > 'VfrCompile' is not recognized as an internal or external command,
> >
> > >
> >
> > > operable program or batch file.
> >
> > >
> >
> > > I can see VfrCompile.exe generated in "BaseTools".
> >
> > >
> >
> > > Attached build log for "Emulator Pkg".
> >
> > >
> >
> > > I tried checking the Env Paths .
> >
> > >
> >
> > > Regards,
> >
> > >
> >
> > > Navdeep
> >
> > >
> >
> > > *From:* Sean Brogan
> > > <sean.brogan@microsoft.com<mailto:sean.brogan@microsoft.com <mailto:sean.brogan@microsoft.com%3cmailto:sean.brogan@microsoft.com>>>
> >
> > > *Sent:* Friday, April 24, 2020 12:33 AM
> >
> > > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>; Singh,
> > > Navdeeppal; Bret Barkelew;
> >
> > > jim.slaughter@sage-micro.com<mailto:jim.slaughter@sage-micro.com <mailto:jim.slaughter@sage-micro.com%3cmailto:jim.slaughter@sage-micro.com>>
> >
> > > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
> >
> > >
> >
> > > [EXTERNAL EMAIL]
> >
> > >
> >
> > > Navdeep,
> >
> > >
> >
> > > Yes since the 202002 stable tag there have been submodules
> > > introduced
> >
> > > to the basetools. If you look closely you will see in the CI
> > > process
> >
> > > this required a change where stuart_setup is run before calling
> >
> > > edk2toolsbuild.py.
> >
> > >
> >
> > > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb <https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb>
> > > 36
> >
> > > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1
> >
> > >
> >
> > > If you are using "stuart" to build then that is the suggested path
> > > as
> >
> > > stuar_setup will init your submodules listed in the
> > > RequiredSubmodules
> >
> > > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136 <https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136>).
> >
> > > Given that the edk2 project and ecosystem has numerous ways to setup
> >
> > > your environment and build, you can also just make sure your
> > > workspace
> >
> > > is complete prior to running Edk2ToolsBuild.py. In this case you
> > > only
> >
> > > need to run "git submodule update --init"
> >
> > >
> >
> > > I just did this and it works fine with VS2019.
> >
> > >
> >
> > > Jim,
> >
> > >
> >
> > > Just as fyi as I know there are lots of reasons for toolchain selection.
> >
> > >
> >
> > > I believe the Visual studio build tools are available free of charge
> >
> > > (not the IDE but the compilers). Directions here.
> >
> > > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual <https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual>
> > > -s
> >
> > > tudio-2019-preferred
> >
> > >
> >
> > > Thanks
> >
> > >
> >
> > > Sean
> >
> > >
> >
> > > *From:* devel@edk2.groups.io<mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
> > > <mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io>>
> >
> > > <devel@edk2.groups.io <mailto:devel@edk2.groups.io>
> > > <mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io><mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io>%20%3cmailto
> > > :devel@edk2.groups.io <mailto:devel@edk2.groups.io>>>> *On Behalf Of
> >
> > > *Navdeeppal.Singh via groups.io <http://groups.io/>
> >
> > > *Sent:* Thursday, April 23, 2020 9:14 AM
> >
> > > *To:* Bret Barkelew <Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com>
> >
> > > <mailto:Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com>>>;
> > > devel@edk2.groups.io<mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
> >
> > > <mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io>>
> >
> > > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup
> >
> > >
> >
> > > Hi Bret,
> >
> > >
> >
> > > Yes PIP requirements are up to date.
> >
> > >
> >
> > > On further digging through the logging file BASETOOLS_BUILD.txt.
> >
> > >
> >
> > > INFO - subprocess not exit successfully
> >
> > >
> >
> > > INFO - Error while execute command 'nmake all' in direcotry
> >
> > > C:\edk2\BaseTools\Source\C\BrotliCompress
> >
> > >
> >
> > > Regards,
> >
> > >
> >
> > > Navdeep
> >
> > >
> >
> > > *From:* Bret Barkelew <Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com>
> >
> > > <mailto:Bret.Barkelew@microsoft.com <mailto:Bret.Barkelew@microsoft.com>>>
> >
> > > *Sent:* Thursday, April 23, 2020 9:37 PM
> >
> > > *To:* devel@edk2.groups.io<mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io%3cmailto:devel@edk2.groups.io>>
> > > <mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io>>; Singh,
> >
> > > Navdeeppal
> >
> > > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup
> >
> > >
> >
> > > [EXTERNAL EMAIL]
> >
> > >
> >
> > > Have you installed the up-to-date Python requirements? "pip install
> >
> > > -upgrade -r pip-requirements.txt"?
> >
> > >
> >
> > > That's the first thing I would check. Otherwise, happy to look at
> > > the
> >
> > > problem with you.
> >
> > >
> >
> > > - Bret
> >
> > >
> >
> > > *From: *NAVDEEPPAL_SINGH via groups.io <http://groups.io/>
> >
> > > <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io <mailto:NAVDEEPPAL_SINGH=DELL.COM@groups.io>>
> >
> > > *Sent: *Thursday, April 23, 2020 6:05 AM
> >
> > > *To: *devel@edk2.groups.io<mailto:*devel@edk2.groups.io <mailto:*devel@edk2.groups.io%3cmailto:*devel@edk2.groups.io>>
> > > <mailto:devel@edk2.groups.io <mailto:devel@edk2.groups.io>>
> >
> > > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup
> >
> > >
> >
> > > I am trying to setup EDK2 environment setup from Tianocore/EDK2.
> >
> > > While doing the Base Tool setup. After running
> >
> > > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-
> >
> > > c:\edk2\BaseTools>python Edk2ToolsBuild.py -t VS2019 SECTION - Init
> >
> > > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool
> > > Traceback
> >
> > > (most recent call last):
> >
> > > File "Edk2ToolsBuild.py", line 177, in <module>
> >
> > > main()
> >
> > > File "Edk2ToolsBuild.py", line 173, in main
> >
> > > Edk2ToolsBuild().Invoke()
> >
> > > File "C:\Program
> >
> > > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable
> > > .p
> >
> > > y", line 141, in Invoke
> >
> > > retcode = self.Go()
> >
> > > File "Edk2ToolsBuild.py", line 139, in Go
> >
> > > raise Exception("Failed to build.")
> >
> > > Exception: Failed to build.
> >
> > >
> >
> > > set EDK_TOOLS_PATH=C:\edk2\BaseTools
> >
> > > set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32
> >
> > > Can some one help
> >
> > >
> >
> >
> >
> >
>
>
>
[-- Attachment #2: Type: text/html, Size: 94739 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2020-05-04 18:47 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-23 12:38 EDK2 environment setup NAVDEEPPAL_SINGH
2020-04-23 16:07 ` [EXTERNAL] [edk2-devel] " Bret Barkelew
2020-04-23 16:14 ` Navdeeppal.Singh
2020-04-23 16:17 ` Bret Barkelew
2020-04-23 16:21 ` Navdeeppal.Singh
2020-04-23 16:34 ` Bret Barkelew
2020-04-23 17:26 ` Michael D Kinney
2020-04-23 18:23 ` Bret Barkelew
2020-04-23 19:03 ` Sean
2020-04-27 8:26 ` Navdeeppal.Singh
2020-04-27 20:57 ` Sean
2020-04-28 9:15 ` Navdeeppal.Singh
2020-04-28 9:35 ` Guomin Jiang
2020-04-28 9:47 ` Leif Lindholm
2020-04-28 9:52 ` Navdeeppal.Singh
2020-04-30 5:09 ` Navdeeppal.Singh
2020-05-04 5:17 ` Navdeeppal.Singh
2020-05-04 17:40 ` Sean
2020-05-04 18:47 ` Andrew Fish
2020-04-28 9:38 ` [edk2-devel] EmulatorPkg WinHost build failure with VS2019 Was: " Leif Lindholm
2020-04-23 16:23 ` [EXTERNAL] [edk2-devel] " jim slaughter
2020-04-23 16:27 ` Bret Barkelew
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox