From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mx.groups.io with SMTP id smtpd.web10.21215.1655402947651701871 for ; Thu, 16 Jun 2022 11:09:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qPlHiN4Y; spf=pass (domain: gmail.com, ip: 209.85.215.177, mailfrom: xzavierpower@gmail.com) Received: by mail-pg1-f177.google.com with SMTP id f65so1933736pgc.7 for ; Thu, 16 Jun 2022 11:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=Nt1cbW90mGiJN3MOQ8l178ADS/puGgHjyw+W+/zLy3k=; b=qPlHiN4YRuwIwunTzu+DLiCwAe+MwgllkJfMx8p/TFseJ1ZUQTVLF83J00uyrexoug pNLbNVIe+5xWf1UM2J98r6DOw3OZNgnVHNy+LPsWAP7xprWOF+nh+LbKAeUVUeDAGWLy ndVen1kI7DKLPxz2u99E6+qVUK1nVPQUGdUowNySwFsl2urKCVxN1xAQhnkSnu/K1BEN vxgtezo+/Iq28tF6fwBJ7PXhbokYmaQRbM50gwc4jpC1azC3zMO0AIDIYoH3RvxsNd7/ TAIymAzs+rRpeS3y3gu07hHu/Q+v8nKQeFJmfnT9w9LooTM8NvvYHr0dDQHijHGHGKHa 5ONA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Nt1cbW90mGiJN3MOQ8l178ADS/puGgHjyw+W+/zLy3k=; b=E7tpEh/49fmydaBMRm7y4VJrqAXcIP4HTGqIbCnTJIHOQ9jvlayio9qimXsZS8KMEJ wsYzINMO4pGdlOFjNVOoKN5XHEbl2rfOhV0SBsq+zq1LvkMQyuPDE0pCOQoNqayAThOv 1mhUhOuu1QlXkQgvVCoSgoL0l5m7GddH5rQ2x6avqK4aRPZfVaux29pcBbaqqMu2gBqJ HGS6AUgkaKc8H8cnejmRzK11jPS5Ff7Wlm+8HKgkWioGmdQAHrMpIz1zj5A2havosgoG 57U7ecQC3wMr3TOlWdVJqmCklrnZHhHib3mygXHRM4Sw1VGvZPPVVW2l3Ll9vUuIA3ye gNLw== X-Gm-Message-State: AJIora9zO3FaJ3YsSM36tIw8BS/dCyDLobZ08aymCFC9zB54DgPTrPCZ F2V+BA9725u1o0qpjhIlOjcBxPNvh/ObPTyEOOZ4o52BDOkwMQ== X-Google-Smtp-Source: AGRyM1tnbEe+QDj8m9Hpm3lbvB6xd4J1+dqeZQiN3961IX5ZXUhp2TtvDnXrnCfTLvbCM5PJYjZCP74rN6EzOXK0DBk= X-Received: by 2002:a63:91c2:0:b0:3fc:bcef:5681 with SMTP id l185-20020a6391c2000000b003fcbcef5681mr5742053pge.236.1655402946653; Thu, 16 Jun 2022 11:09:06 -0700 (PDT) MIME-Version: 1.0 From: "M.T." Date: Thu, 16 Jun 2022 14:08:56 -0400 Message-ID: Subject: Windows 10 build failing To: devel@edk2.groups.io Content-Type: multipart/alternative; boundary="0000000000009871db05e19488cd" --0000000000009871db05e19488cd Content-Type: text/plain; charset="UTF-8" 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 --0000000000009871db05e19488cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello

I am trying to setup=C2=A0a windo= ws build system with MSVS2017=C2=A0or 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 s= o far.
From a regular command prompt, I setup=C2=A0my paths for N= ASM_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 =3D VS2017 and TARGET_ARCH= =3D X64
This is what I always hit, no matter how many variations = of the above I try including python venvs etc.

Bui= lding ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmLockBoxLib\SmmL= ockBoxPeiLib.inf [X64]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:\Program File= s (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\b= in\Hostx86\x64\cl.exe" /Foc:\users\ma
ciej\uefi\edk2\Build\MdeModul= e\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\BaseL= ib\X64 =C2=A0/Ic:\users\mac
iej\uefi\edk2\MdePkg\Library\BaseLib =C2=A0/= Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\= BaseLib\BaseLib\DEBUG
=C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg =C2=A0/Ic= :\users\maciej\uefi\edk2\MdePkg\Include =C2=A0/Ic:\users\maciej\uefi\edk2\M= dePkg\Test\UnitTest\Includ
e =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\In= clude\X64 @c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePk= g\Library\BaseLib\Bas
eLib\OUTPUT\cc_resp_56.txt
NMAKE : fatal error = U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Build= Tools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl
.exe"' : ret= urn code '0x2'
Stop.
PeCoffExtraActionLib.c
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Bui= ldTools\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\.\
=C2= =A0/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\MdeM= odulePkg\Library\PlatformHookLibSerialPortPpi =C2=A0/Ic:\users\maciej\uefi\= edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library
\PlatformHook= LibSerialPortPpi\PlatformHookLibSerialPortPpi\DEBUG =C2=A0/Ic:\users\maciej= \uefi\edk2\MdePkg =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg
\Include =C2= =A0/Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Include =C2=A0/Ic:\user= s\maciej\uefi\edk2\MdePkg\Include\X64 =C2=A0/Ic:\users\maciej\ue
fi\edk2= \MdeModulePkg =C2=A0/Ic:\users\maciej\uefi\edk2\MdeModulePkg\Include =C2=A0= /Ic:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDec
ompress= Lib\brotli\c\include c:\users\maciej\uefi\edk2\MdeModulePkg\Library\Platfor= mHookLibSerialPortPpi\PlatformHookLibSerialPortPpi.c
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildT= ools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\ma<= br>ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\Var= CheckPolicyLib\VarCheckPolicyLibStandaloneMm\OUTPUT\.\ /showIncl
udes /n= ologo /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\Va= rCheckPolicyLib =C2=A0/Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2= 017\X64\MdeModulePkg\Library\VarCheckPolicyLib\Va
rCheckPolicyLibStandal= oneMm\DEBUG =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg =C2=A0/Ic:\users\macie= j\uefi\edk2\MdePkg\Include =C2=A0/Ic:\users\maciej\uef
i\edk2\MdePkg\Tes= t\UnitTest\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64 =C2= =A0/Ic:\users\maciej\uefi\edk2\MdeModulePkg =C2=A0/Ic:\user
s\maciej\uef= i\edk2\MdeModulePkg\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdeModulePkg\= Library\BrotliCustomDecompressLib\brotli\c\include =C2=A0/I
c:\users\mac= iej\uefi\edk2\StandaloneMmPkg =C2=A0/Ic:\users\maciej\uefi\edk2\StandaloneM= mPkg\Include @c:\users\maciej\uefi\edk2\Build\MdeModul
e\DEBUG_VS2017\X6= 4\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicyLibStandaloneMm\OUTP= UT\cc_resp_1.txt


build.py...
=C2=A0: error 7000: Failed to ex= ecute command
=C2=A0 =C2=A0 =C2=A0 =C2=A0 C:\Program Files (x86)\Microso= ft 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\DEB= UG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDe= compressLib]


build.py...
=C2=A0: error 7000: Failed to execut= e command
=C2=A0 =C2=A0 =C2=A0 =C2=A0 C:\Program Files (x86)\Microsoft V= isual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmak= e.exe /nologo tbuil
d [c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_V= S2017\X64\MdePkg\Library\BaseLib\BaseLib]


build.py...
=C2=A0:= error F002: Failed to build module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 c:\users= \maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCust= omDecompressLib.inf [X64, VS2017, DEBUG]

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

I am not sure what this error is:
NMAKE : fatal error U1= 077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTo= ols\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl
.exe"' : retur= n code '0x2'

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

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

Thank you
xp
--0000000000009871db05e19488cd--