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 <[email protected]>
Sent: Friday, April 24, 2020 12:33 AM
To: [email protected]; Singh, Navdeeppal; Bret Barkelew;
[email protected]
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: [email protected]<mailto:[email protected]>
<[email protected]<mailto:[email protected]>> On Behalf Of
Navdeeppal.Singh via groups.io
Sent: Thursday, April 23, 2020 9:14 AM
To: Bret Barkelew
<[email protected]<mailto:[email protected]>>;
[email protected]<mailto:[email protected]>
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
<[email protected]<mailto:[email protected]>>
Sent: Thursday, April 23, 2020 9:37 PM
To: [email protected]<mailto:[email protected]>; 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:[email protected]>
Sent: Thursday, April 23, 2020 6:05 AM
To: [email protected]<mailto:[email protected]>
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
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#58168): https://edk2.groups.io/g/devel/message/58168
Mute This Topic: https://groups.io/mt/73221341/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
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