public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Windows 10 build failing
@ 2022-06-16 18:08 M.T.
  2022-06-16 18:11 ` [edk2-devel] " Michael D Kinney
  0 siblings, 1 reply; 14+ messages in thread
From: M.T. @ 2022-06-16 18:08 UTC (permalink / raw)
  To: devel

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

Hello

I am trying to setup a windows build system with MSVS2017 or MSVS2022, but
I keep running into the same issue over and over, and I can't seem to
figure it out.

I followed several guides on how to get everything working, but also, I
can't build MdeModulePkg, which on linux was nowhere near this difficult.

In any case, here is what I have so far.
>From a regular command prompt, I setup my paths for NASM_Prefix (Version
2.15), WORKSPACE, PACKAGE_PATHS and EDK_TOOLS_PATH
I run edk2setup.bat, which gives warnings about CLANG_BIN and CYGWIN_HOME,
I ignore those, and then I run build.
(Python is 3.9.4)
target.txt is switched to TOOL_CHAIN_TAG = VS2017 and TARGET_ARCH= X64
This is what I always hit, no matter how many variations of the above I try
including python venvs etc.

Building ...
c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmLockBoxLib\SmmLockBoxPeiLib.inf
[X64]
        "C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"
/Foc:\users\ma
ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\OUTPUT\X64\
/showIncludes /nologo /c /WX /GS- /W4 /Gs3276
8 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw
/Ic:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\X64  /Ic:\users\mac
iej\uefi\edk2\MdePkg\Library\BaseLib
 /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\DEBUG
 /Ic:\users\maciej\uefi\edk2\MdePkg
 /Ic:\users\maciej\uefi\edk2\MdePkg\Include
 /Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Includ
e  /Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64
@c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\Bas
eLib\OUTPUT\cc_resp_56.txt
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl
.exe"' : return code '0x2'
Stop.
PeCoffExtraActionLib.c
        "C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"
/Foc:\users\ma
ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi\OUTPUT\.\
 /showIncludes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy
/FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\e
dk2\MdeModulePkg\Library\PlatformHookLibSerialPortPpi
 /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library
\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi\DEBUG
 /Ic:\users\maciej\uefi\edk2\MdePkg  /Ic:\users\maciej\uefi\edk2\MdePkg
\Include  /Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Include
 /Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64  /Ic:\users\maciej\ue
fi\edk2\MdeModulePkg  /Ic:\users\maciej\uefi\edk2\MdeModulePkg\Include
 /Ic:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDec
ompressLib\brotli\c\include
c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi.c
        "C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"
/Foc:\users\ma
ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicyLibStandaloneMm\OUTPUT\.\
/showIncl
udes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy
/FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\edk2\MdeMod
ulePkg\Library\VarCheckPolicyLib
 /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\Va
rCheckPolicyLibStandaloneMm\DEBUG  /Ic:\users\maciej\uefi\edk2\MdePkg
 /Ic:\users\maciej\uefi\edk2\MdePkg\Include  /Ic:\users\maciej\uef
i\edk2\MdePkg\Test\UnitTest\Include
 /Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64
 /Ic:\users\maciej\uefi\edk2\MdeModulePkg  /Ic:\user
s\maciej\uefi\edk2\MdeModulePkg\Include
 /Ic:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\brotli\c\include
 /I
c:\users\maciej\uefi\edk2\StandaloneMmPkg
 /Ic:\users\maciej\uefi\edk2\StandaloneMmPkg\Include
@c:\users\maciej\uefi\edk2\Build\MdeModul
e\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicyLibStandaloneMm\OUTPUT\cc_resp_1.txt


build.py...
 : error 7000: Failed to execute command
        C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe
/nologo tbuil
d
[c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib]


build.py...
 : error 7000: Failed to execute command
        C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe
/nologo tbuil
d
[c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib]


build.py...
 : error F002: Failed to build module

c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib.inf
[X64, VS2017, DEBUG]

- Failed -
Build end time: 13:55:06, Jun.16 2022
Build total time: 00:00:13

I am not sure what this error is:
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl
.exe"' : return code '0x2'

I tried tracking it down, but I'm just not familiar enough with edk2 build
env to sort it all out.

I would really appreciate some help as I'm totally stuck with this.

Thank you
xp

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-06-19 18:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16 18:08 Windows 10 build failing M.T.
2022-06-16 18:11 ` [edk2-devel] " Michael D Kinney
2022-06-16 18:43   ` M.T.
2022-06-16 18:53     ` Michael D Kinney
2022-06-16 19:06       ` M.T.
2022-06-16 20:17         ` Michael D Kinney
     [not found]       ` <16F92F5BB85EDA30.4074@groups.io>
2022-06-16 20:19         ` M.T.
2022-06-17  3:05           ` Kilian Kegel
2022-06-17 13:58             ` M.T.
2022-06-17 16:52               ` Kilian Kegel
     [not found]             ` <16F96D218CEB30DA.10812@groups.io>
2022-06-17 16:55               ` M.T.
2022-06-17 18:11                 ` Andrew Fish
2022-06-17 19:02                   ` M.T.
2022-06-19 18:02           ` aditya.bhutada

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