From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rn-mailsvcp-ppex-lapp45.apple.com (rn-mailsvcp-ppex-lapp45.apple.com [17.179.253.49]) by mx.groups.io with SMTP id smtpd.web10.916.1655489486479002534 for ; Fri, 17 Jun 2022 11:11:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=TUGxZUlp; spf=pass (domain: apple.com, ip: 17.179.253.49, mailfrom: afish@apple.com) Received: from pps.filterd (rn-mailsvcp-ppex-lapp45.rno.apple.com [127.0.0.1]) by rn-mailsvcp-ppex-lapp45.rno.apple.com (8.16.1.2/8.16.1.2) with SMTP id 25HI4GDV028232; Fri, 17 Jun 2022 11:11:26 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=3i/BFuR2afjMYkkwRbC2bY0+Utd6bOWW9fHkhp3M5a8=; b=TUGxZUlp6b+agiufHjny8vaxInQv+QfnP79ma6Ctfi5Lp1nClTW4PmgbxfEOQjxNQDN4 0LeyfAq1SKPGpbm647EGvxdKKkszhCDCwOdXHihFOuiBz2SM4ayoKgrVqp56zEQK/1ly d1XC8fFzxbvRgUeFzfrWn+wXblgC2UsDlvFbnradWIJUmhandAtG66LZWcJpwRxf35yf NjNfgQTdN6dSMv8pxGhL8GVdOt5O88tYabpBJKxMC4e81dnQ88V4ZzzUwCvJvghoEBqp S30qJcBS8qrl2pQD57A1H4JxRpq+/GEbZoxPEMnQWaFCAxHWx9dU4kzLTFRmWuMWAk1+ BQ== Received: from rn-mailsvcp-mta-lapp01.rno.apple.com (rn-mailsvcp-mta-lapp01.rno.apple.com [10.225.203.149]) by rn-mailsvcp-ppex-lapp45.rno.apple.com with ESMTP id 3gmsbthhs1-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 17 Jun 2022 11:11:25 -0700 Received: from rn-mailsvcp-mmp-lapp02.rno.apple.com (rn-mailsvcp-mmp-lapp02.rno.apple.com [17.179.253.15]) by rn-mailsvcp-mta-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPS id <0RDM00RP2VV0BD50@rn-mailsvcp-mta-lapp01.rno.apple.com>; Fri, 17 Jun 2022 11:11:24 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp02.rno.apple.com by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) id <0RDM00400VHRJ000@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Fri, 17 Jun 2022 11:11:24 -0700 (PDT) X-Va-A: X-Va-T-CD: 42adb377ca6f819776a648441ce3569e X-Va-E-CD: bf0b240d188fda9e237a6fb22fd7cbf1 X-Va-R-CD: 73258a07ab2278b6e6df7601e54cc2ff X-Va-CD: 0 X-Va-ID: afdc344f-f21a-4ff3-8ee5-44157ab178eb X-V-A: X-V-T-CD: 42adb377ca6f819776a648441ce3569e X-V-E-CD: bf0b240d188fda9e237a6fb22fd7cbf1 X-V-R-CD: 73258a07ab2278b6e6df7601e54cc2ff X-V-CD: 0 X-V-ID: f35378d8-8e7d-4c80-8f9b-092264aa508f X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517,18.0.883 definitions=2022-06-17_10:2022-06-17,2022-06-17 signatures=0 Received: from smtpclient.apple (unknown [17.235.54.73]) by rn-mailsvcp-mmp-lapp02.rno.apple.com (Oracle Communications Messaging Server 8.1.0.18.20220407 64bit (built Apr 7 2022)) with ESMTPSA id <0RDM00JNBVUZHZ00@rn-mailsvcp-mmp-lapp02.rno.apple.com>; Fri, 17 Jun 2022 11:11:24 -0700 (PDT) From: "Andrew Fish" Message-id: MIME-version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Subject: Re: [edk2-devel] Windows 10 build failing Date: Fri, 17 Jun 2022 11:11:22 -0700 In-reply-to: Cc: Kilian Kegel , Mike Kinney To: edk2-devel-groups-io , xzavierpower@gmail.com References: <16F92F5BB85EDA30.4074@groups.io> <16F96D218CEB30DA.10812@groups.io> X-Mailer: Apple Mail (2.3693.20.0.1.32) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.517,18.0.883 definitions=2022-06-17_10:2022-06-17,2022-06-17 signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_204CA8EF-39EF-4871-A5D9-0649DE51295E" --Apple-Mail=_204CA8EF-39EF-4871-A5D9-0649DE51295E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jun 17, 2022, at 9:55 AM, M.T. wrote: >=20 > I think I'm getting somewhere now. >=20 > I set everything up and I started getting a consistent error (see logfile= from my last email) > I had to comment out BrDummyMalloc from BrotliDecUefiSupport.h, and now I= am able to build MdeModulePkg. >=20 > Now one other error I'm dealing with: > error 4000: Instance of library class [RegisterFilterLib] is not found > in [c:\users\maciej\uefi\edk2\MdePkg\Library\BaseIoLibIntrinsic\B= aseIoLibIntrinsic.inf >=20 That library dependency should be resolved by including MdePkg/MdeLibs.dsc.= inc in the dSC file? /Volumes/Case/edk2(master)>git grep "MdePkg/MdeLibs.dsc.inc" ArmPkg/ArmPkg.dsc:36:!include MdePkg/MdeLibs.dsc.inc ArmPlatformPkg/ArmPlatformPkg.dsc:36:!include MdePkg/MdeLibs.dsc.inc ArmVirtPkg/ArmVirtCloudHv.dsc:60:!include MdePkg/MdeLibs.dsc.inc ArmVirtPkg/ArmVirtKvmTool.dsc:39:!include MdePkg/MdeLibs.dsc.inc ArmVirtPkg/ArmVirtQemu.dsc:53:!include MdePkg/MdeLibs.dsc.inc ArmVirtPkg/ArmVirtQemuKernel.dsc:51:!include MdePkg/MdeLibs.dsc.inc ArmVirtPkg/ArmVirtXen.dsc:28:!include MdePkg/MdeLibs.dsc.inc CryptoPkg/CryptoPkg.dsc:56:!include MdePkg/MdeLibs.dsc.inc DynamicTablesPkg/DynamicTablesPkg.dsc:23:!include MdePkg/MdeLibs.dsc.inc EmbeddedPkg/EmbeddedPkg.dsc:44:!include MdePkg/MdeLibs.dsc.inc EmulatorPkg/EmulatorPkg.dsc:47:!include MdePkg/MdeLibs.dsc.inc FatPkg/FatPkg.dsc:29:!include MdePkg/MdeLibs.dsc.inc FmpDevicePkg/FmpDevicePkg.dsc:41:!include MdePkg/MdeLibs.dsc.inc IntelFsp2Pkg/IntelFsp2Pkg.dsc:19:!include MdePkg/MdeLibs.dsc.inc IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc:75:!include MdePkg/MdeLibs.dsc.inc IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dsc:19:!include MdePkg/MdeLibs.dsc.= inc MdeModulePkg/MdeModulePkg.dsc:22:!include MdePkg/MdeLibs.dsc.inc MdePkg/MdeLibs.dsc.inc:5:# by using "!include MdePkg/MdeLibs.dsc.inc" to sp= ecify the library instances MdePkg/MdePkg.dsc:24:!include MdePkg/MdeLibs.dsc.inc NetworkPkg/NetworkPkg.dsc:23:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/AmdSev/AmdSevX64.dsc:110:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/Bhyve/BhyveX64.dsc:116:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/CloudHv/CloudHvX64.dsc:126:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/IntelTdx/IntelTdxX64.dsc:108:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/Microvm/MicrovmX64.dsc:124:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/OvmfPkgIa32.dsc:122:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/OvmfPkgIa32X64.dsc:126:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/OvmfPkgX64.dsc:139:!include MdePkg/MdeLibs.dsc.inc OvmfPkg/OvmfXen.dsc:116:!include MdePkg/MdeLibs.dsc.inc PcAtChipsetPkg/PcAtChipsetPkg.dsc:21:!include MdePkg/MdeLibs.dsc.inc RedfishPkg/RedfishPkg.dsc:21:!include MdePkg/MdeLibs.dsc.inc SecurityPkg/SecurityPkg.dsc:20:!include MdePkg/MdeLibs.dsc.inc ShellPkg/ShellPkg.dsc:22:!include MdePkg/MdeLibs.dsc.inc SignedCapsulePkg/SignedCapsulePkg.dsc:20:!include MdePkg/MdeLibs.dsc.inc SourceLevelDebugPkg/SourceLevelDebugPkg.dsc:26:!include MdePkg/MdeLibs.dsc.= inc StandaloneMmPkg/StandaloneMmPkg.dsc:36:!include MdePkg/MdeLibs.dsc.inc UefiCpuPkg/UefiCpuPkg.dsc:24:!include MdePkg/MdeLibs.dsc.inc UefiPayloadPkg/UefiPayloadPkg.dsc:150:!include MdePkg/MdeLibs.dsc.inc UnitTestFrameworkPkg/UnitTestFrameworkPkg.dsc:22:!include MdePkg/MdeLibs.ds= c.inc /Volumes/Case/edk2(master)>cat MdePkg/MdeLibs.dsc.inc ## @file # Mde DSC include file for [LibraryClasses*] section of all Architectures. # # This file can be included to the [LibraryClasses*] section(s) of a platfo= rm DSC file # by using "!include MdePkg/MdeLibs.dsc.inc" to specify the library instanc= es # of some EDKII basic/common library classes. # # Copyright (c) 2021 - 2022, Intel Corporation. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # ## [LibraryClasses] RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibN= ull.inf CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf SmmCpuRendezvousLib|MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvo= usLibNull.inf Thanks, Andrew Fish > I saw some posts that this was resolved back in 2021, yet I'm still getti= ng hit with it. > Any advice on how to resolve this? >=20 > Thank you > xp >=20 >=20 >=20 > On Fri, Jun 17, 2022 at 9:58 AM M.T. via groups.io > wrote: > I tried all your suggestions, but it looks like still no cigar. >=20 > I deleted and recloned the repo with --recursive, built emulatorPkg, whic= h worked fine, then tried MdeModulePkg > I get the same error on both my setups, real and VM. > I ran the build with -n 1 and -j after deleting the Build directory, plea= se find the log file attached. >=20 > Command history is as follows: > git clone --recursive https://github.com/tianocore/edk2.git > cd edk2 > git submodule update --init > edksetup.bat Rebuild > // edit target.txt and change to VS2017, X64 and MdeModulePkg/MdeModulePk= g.dsc > build -n 1 -j logfile.txt >=20 > Thank you > xp >=20 >=20 > On Thu, Jun 16, 2022 at 11:05 PM Kilian Kegel > wrote: > =20 >=20 > git clone --recursive https://github.com/tianocore/edk2.git > =20 >=20 > That works!=20 >=20 > You forgot =E2=80=9C=E2=80=94recursive=E2=80=9D >=20 > =20 >=20 > =20 >=20 > From: M.T. > Sent: Thursday, June 16, 2022 10:19 PM > To: devel@edk2.groups.io ; Maciej T. > Cc: Kinney, Michael D > Subject: Re: [edk2-devel] Windows 10 build failing >=20 > =20 >=20 > I spun up a windows 10 pro VM and started from scratch, now I'm consisten= tly hitting a redefinition error. >=20 > EmulatorPkg built, so it is something with this Brotoli Library >=20 > =20 >=20 > Building ... c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDec= ompressLib\BrotliCustomDecompressLib.inf [X64] > "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\V= C\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\user\uefi\edk2= \Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompre= ssLib\BrotliCustomDecompressLib\OUTPUT\brotli\c\common\ /showIncludes /nolo= go /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- = /GR- /GF /Z7 /Gw /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCusto= mDecompressLib\brotli\c\include\brotli /Ic:\users\user\uefi\edk2\MdeModule= Pkg\Library\BrotliCustomDecompressLib\brotli\c\dec /Ic:\users\user\uefi\ed= k2\MdeModulePkg\Library\BrotliCustomDecompressLib\brotli\c\common /Ic:\use= rs\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib /Ic:\user= s\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\Brot= liCustomDecompressLib\BrotliCustomDecompressLib\DEBUG /Ic:\users\user\uefi= \edk2\MdePkg /Ic:\users\user\uefi\edk2\MdePkg\Include /Ic:\users\user\uef= i\edk2\MdePkg\Test\UnitTest\Include /Ic:\users\user\uefi\edk2\MdePkg\Inclu= de\X64 /Ic:\users\user\uefi\edk2\MdeModulePkg /Ic:\users\user\uefi\edk2\M= deModulePkg\Include /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliC= ustomDecompressLib\brotli\c\include @c:\users\user\uefi\edk2\Build\MdeModul= e\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCus= tomDecompressLib\OUTPUT\cc_resp_3.txt > transform.c > dictionary.c > C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_= malloc.h(103): error C2220: warning treated as error - no 'object' file gen= erated > C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_= malloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; the function g= ains __declspec(restrict) > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Stud= io\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"' : ret= urn code '0x2' > Stop. >=20 >=20 > 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 tbuild [c:\users\= user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\Brotli= CustomDecompressLib\BrotliCustomDecompressLib] >=20 >=20 > build.py... > : error F002: Failed to build module > c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompre= ssLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG] >=20 > =20 >=20 > xp >=20 > =20 >=20 > On Thu, Jun 16, 2022 at 3:06 PM M.T. via groups.io > wrote: >=20 > I get NASM version 2.15 compiled on Jun 27 2020 >=20 > =20 >=20 > I bumped it up to the same version you have just in case, several attempt= s in build and recompiling results in the original error where BrotliCustom= DecompressLib fails, but I also now see these two: >=20 > =20 >=20 > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStat= usCodeLib\SmmReportStatusCodeLib.inf [X64] > C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_= malloc.h(103): error C2220: warning treated as error - no 'object' file gen= erated > C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_= malloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; the function g= ains __declspec(restrict) > Building ... c:\users\maciej\uefi\edk2\StandaloneMmPkg\Library\Standalone= MmMemLib\StandaloneMmMemLib.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\UefiSortLib\U= efiSortLib.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PiSmmCoreMemo= ryAllocationLib\PiSmmCoreMemoryAllocationProfileLib.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\LockBoxNullLi= b\LockBoxNullLib.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxeDebugPrint= ErrorLevelLib\DxeDebugPrintErrorLevelLib.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\ResetUtilityL= ib\ResetUtilityLib.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\RuntimeDxeRep= ortStatusCodeLib\RuntimeDxeReportStatusCodeLib.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BaseResetSyst= emLibNull\BaseResetSystemLibNull.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PlatformBootM= anagerLibNull\PlatformBootManagerLibNull.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DisplayUpdate= ProgressLibText\DisplayUpdateProgressLibText.inf [X64] > transform.c > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiDebugLibDe= bugPpi\PeiDebugLibDebugPpi.inf [X64] > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePrintLibPr= int2Protocol\DxePrintLibPrint2Protocol.inf [X64] > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Stud= io\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"' : ret= urn code '0x2' > Stop. > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePerformanc= eLib\DxePerformanceLib.inf [X64] >=20 >=20 > 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 tbuild [c:\users\= maciej\uefi\edk2\Build\MdeM > odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Bro= tliCustomDecompressLib] >=20 >=20 > build.py... > : error F002: Failed to build module > c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecomp= ressLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG] >=20 > - Failed - >=20 > =20 >=20 > And >=20 > =20 >=20 > CpuBreakpoint.c > "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\V= C\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\maciej\uefi\ed= k2\Build\MdeModule\DEBUG_VS > 2017\X64\MdePkg\Library\BasePeCoffExtraActionLibNull\BasePeCoffExtraActio= nLibNull\OUTPUT\.\ /showIncludes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICOD= E /O1b2s /GL /Gy /FIAutoGen > .h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\edk2\MdePkg\Library\Ba= sePeCoffExtraActionLibNull /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEB= UG_VS2017\X64\MdePkg\Librar > y\BasePeCoffExtraActionLibNull\BasePeCoffExtraActionLibNull\DEBUG /Ic:\u= sers\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 c:\users\maciej\uefi\edk2\MdePkg\Library\BasePeCoffExtraActionLibNull\P= eCoffExtraActionLib.c > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Stud= io\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"' : ret= urn code '0x2' > Stop. > "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\V= C\Tools\MSVC\14.16.27023\bin\Hostx86\x64\lib.exe" /NOLOGO /LTCG /OUT:c:\use= rs\maciej\uefi\edk2\Build\M > deModule\DEBUG_VS2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCach= eMaintenanceLib\OUTPUT\BaseCacheMaintenanceLib.lib @c:\users\maciej\uefi\ed= k2\Build\MdeModule\DEBUG_VS > 2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCacheMaintenanceLib\O= UTPUT\object_files.lst >=20 >=20 > 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 tbuild [c:\users\= maciej\uefi\edk2\Build\MdeM > odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Bro= tliCustomDecompressLib] >=20 >=20 > build.py... > : error F002: Failed to build module > c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecomp= ressLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG] >=20 > =20 >=20 > =20 >=20 > It seems to be bouncing between these errors, any idea what is going on h= ere? >=20 > =20 >=20 > Thank you >=20 > xp >=20 > =20 >=20 > On Thu, Jun 16, 2022 at 2:53 PM Kinney, Michael D > wrote: >=20 > Which version of NASM do you have installed? When I run nasm -v, I get t= he following: >=20 > =20 > NASM version 2.15.05 compiled on Aug 28 2020 >=20 > =20 > Mike >=20 > =20 > From: M.T. >=20 > Sent: Thursday, June 16, 2022 11:44 AM > To: devel@edk2.groups.io ; Kinney, Michael D= > > Subject: Re: [edk2-devel] Windows 10 build failing >=20 > =20 > Thanks Michael >=20 > =20 > I did run git submodule update --init when I checked out the repo. >=20 > I ran it again, and now I'm bouncing between two errors, the original I p= osted, and when I run build again, I get this, which I thought was addresse= d with nasm 2.15, what am I missing here? >=20 > =20 > Appreciate the help >=20 > xp >=20 > =20 > Building ... c:\users\maciej\uefi\edk2\MdePkg\Library\SmmMemLib\SmmMemLib= .inf [X64] > dictionary.c > "C:\nasm\nasm" -Ic:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib= \X64\ -Ic:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\X64\ -Ic:\users\m= aciej\uefi\edk2\MdePkg\Libr > ary\BaseLib\ -Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X6= 4\MdePkg\Library\BaseLib\BaseLib\DEBUG\ -Ic:\users\maciej\uefi\edk2\MdePkg= \ -Ic:\users\maciej\uefi\e > dk2\MdePkg\Include\ -Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Inc= lude\ -Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64\ -Ox -f win64 -g -o c= :\users\maciej\uefi\edk2\Bu > ild\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\OUTPUT\X64\= LongJump.obj c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\Mde= Pkg\Library\BaseLib\BaseLib > \OUTPUT\X64\LongJump.iii > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiCrc32Guide= dSectionExtractLib\PeiCrc32GuidedSectionExtractLib.inf [X64] > c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library= \BaseLib\BaseLib\OUTPUT\X64\LongJump.iii:44: error: parser: instruction exp= ected > c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library= \BaseLib\BaseLib\OUTPUT\X64\LongJump.iii:49: error: parser: instruction exp= ected > NMAKE : fatal error U1077: 'C:\nasm\nasm.EXE' : return code '0x1' > Stop. > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStat= usCodeLib\SmmReportStatusCodeLib.inf [X64] >=20 >=20 > 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 tbuild [c:\users\= maciej\uefi\edk2\Build\MdeM > odule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib] >=20 >=20 > 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 tbuild [c:\users\= maciej\uefi\edk2\Build\MdeM > odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Bro= tliCustomDecompressLib] >=20 >=20 > build.py... > : error F002: Failed to build module > c:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\BaseLib.inf [X64= , VS2017, DEBUG] >=20 > =20 > =20 > On Thu, Jun 16, 2022 at 2:11 PM Michael D Kinney > wrote: >=20 > Looks like Brotli submodule code is missing. >=20 > =20 > https://github.com/tianocore/edk2#submodules > =20 > Mike >=20 > =20 > From: devel@edk2.groups.io > On Behalf Of M.T. > Sent: Thursday, June 16, 2022 11:09 AM > To: devel@edk2.groups.io > Subject: [edk2-devel] Windows 10 build failing >=20 > =20 > Hello >=20 > =20 > I am trying to setup a windows build system with MSVS2017 or MSVS2022, bu= t I keep running into the same issue over and over, and I can't seem to fig= ure it out. >=20 > =20 > I followed several guides on how to get everything working, but also, I c= an't build MdeModulePkg, which on linux was nowhere near this difficult. >=20 > =20 > In any case, here is what I have so far. >=20 > From a regular command prompt, I setup my paths for NASM_Prefix (Version = 2.15), WORKSPACE, PACKAGE_PATHS and EDK_TOOLS_PATH >=20 > I run edk2setup.bat, which gives warnings about CLANG_BIN and CYGWIN_HOME= , I ignore those, and then I run build. >=20 > (Python is 3.9.4) >=20 > target.txt is switched to TOOL_CHAIN_TAG =3D VS2017 and TARGET_ARCH=3D X6= 4 >=20 > This is what I always hit, no matter how many variations of the above I t= ry including python venvs etc. >=20 > =20 > Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmLockBoxLib= \SmmLockBoxPeiLib.inf [X64] > "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\V= C\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\ma > ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\Ba= seLib\OUTPUT\X64\ /showIncludes /nologo /c /WX /GS- /W4 /Gs3276 > 8 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\us= ers\maciej\uefi\edk2\MdePkg\Library\BaseLib\X64 /Ic:\users\mac > iej\uefi\edk2\MdePkg\Library\BaseLib /Ic:\users\maciej\uefi\edk2\Build\M= deModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\DEBUG > /Ic:\users\maciej\uefi\edk2\MdePkg /Ic:\users\maciej\uefi\edk2\MdePkg\I= nclude /Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Includ > e /Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64 @c:\users\maciej\uefi\e= dk2\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 Stud= io\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\V= C\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\ma > ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\Plat= formHookLibSerialPortPpi\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:\us= ers\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\Librar= y\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi.c > "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\V= C\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\ma > ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\VarC= heckPolicyLib\VarCheckPolicyLibStandaloneMm\OUTPUT\.\ /showIncl > udes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGe= n.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\edk2\MdeMod > ulePkg\Library\VarCheckPolicyLib /Ic:\users\maciej\uefi\edk2\Build\MdeMo= dule\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\Va > rCheckPolicyLibStandaloneMm\DEBUG /Ic:\users\maciej\uefi\edk2\MdePkg /I= c:\users\maciej\uefi\edk2\MdePkg\Include /Ic:\users\maciej\uef > i\edk2\MdePkg\Test\UnitTest\Include /Ic:\users\maciej\uefi\edk2\MdePkg\I= nclude\X64 /Ic:\users\maciej\uefi\edk2\MdeModulePkg /Ic:\user > s\maciej\uefi\edk2\MdeModulePkg\Include /Ic:\users\maciej\uefi\edk2\MdeM= odulePkg\Library\BrotliCustomDecompressLib\brotli\c\include /I > c:\users\maciej\uefi\edk2\StandaloneMmPkg /Ic:\users\maciej\uefi\edk2\St= andaloneMmPkg\Include @c:\users\maciej\uefi\edk2\Build\MdeModul > e\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicyL= ibStandaloneMm\OUTPUT\cc_resp_1.txt >=20 >=20 > 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\MdeModulePk= g\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib] >=20 >=20 > 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\Libr= ary\BaseLib\BaseLib] >=20 >=20 > build.py... > : error F002: Failed to build module > c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecomp= ressLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG] >=20 > - Failed - > Build end time: 13:55:06, Jun.16 2022 > Build total time: 00:00:13 >=20 > =20 > I am not sure what this error is: >=20 > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Stud= io\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl > .exe"' : return code '0x2' >=20 > =20 > I tried tracking it down, but I'm just not familiar enough with edk2 buil= d env to sort it all out. >=20 > =20 > I would really appreciate some help as I'm totally stuck with this. >=20 > =20 > Thank you >=20 > xp >=20 > =20 >=20 >=20 >=20 >=20 --Apple-Mail=_204CA8EF-39EF-4871-A5D9-0649DE51295E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Jun 17, 20= 22, at 9:55 AM, M.T. <xzavierpower@gmail.com> wrote:

I think I'm getting somewhere now.
I set everything&nb= sp;up and I started getting a consistent error (see logfile from my last em= ail)
I had to comment out BrDummyMalloc from BrotliDec= UefiSupport.h, and now I am able to build MdeModulePkg.

Now one other error I'm dealing with= :
error 4000: Instance of library class [RegisterFilte= rLib] is not found
        in [c:\users\m= aciej\uefi\edk2\MdePkg\Library\BaseIoLibIntrinsic\BaseIoLibIntrinsic.inf


That library dependency should be resolved by includin= g MdeP= kg/MdeLibs.dsc.inc in the dSC file?

/Volumes/C= ase/edk2(master)>git grep "MdePkg/MdeLibs.dsc.inc"
ArmPkg/ArmPkg.dsc:36:!include MdePkg/MdeLibs.dsc.inc=
ArmPlatformPkg/ArmPlat= formPkg.dsc:36:!include MdePkg/MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtCloudHv.dsc:60:!include MdePkg/MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtKvmTool.dsc:39:!include MdePkg/MdeLibs.dsc.inc<= /b>
ArmVirtPkg/ArmVirtQ= emu.dsc:53:!include MdePkg/MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtQemuKernel.dsc:51:!include Md= ePkg/MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtXen.dsc:28:= !include MdePkg/MdeLibs.dsc.inc=
CryptoPkg/CryptoPkg.dsc:56:!include MdePkg/MdeLibs.dsc.inc
DynamicTablesPkg/DynamicTablesPkg.dsc:23= :!include MdePkg/Mde= Libs.dsc.inc
Embedd= edPkg/EmbeddedPkg.dsc:44:!inclu= de MdePkg/MdeLibs.dsc.inc
=
EmulatorPkg/EmulatorPkg.dsc<= span style=3D"font-variant-ligatures: no-common-ligatures; color: #2eaebb" = class=3D"">:47:!include MdePkg/MdeLibs.dsc.inc
FatPkg/FatPkg.dsc:29:!include MdePkg/MdeLibs.dsc.inc
FmpDevicePkg/FmpDevicePkg.ds= c:41:!include MdePkg/MdeLibs.dsc.inc
IntelFsp2Pkg/IntelFsp2Pkg.dsc:19<= /span>:!include MdePkg/MdeL= ibs.dsc.inc
IntelFs= p2Pkg/Tools/Tests/QemuFspPkg.dsc:75:!include MdePkg/MdeLibs.dsc.inc<= /span>
IntelFsp2WrapperPkg/Int= elFsp2WrapperPkg.dsc:19:!includ= e MdePkg/MdeLibs.dsc.inc
<= div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; line-heigh= t: normal; font-family: Menlo;" class=3D"">MdeModulePkg/MdeModulePkg.dsc= :22:!include MdePkg/MdeLibs.dsc.inc
MdePkg/MdeLibs.dsc.inc:5:# by using "!include MdePkg/MdeLibs.= dsc.inc" to specify the library instances
MdePkg/MdePkg.dsc:24= :!include MdePkg/MdeLibs.ds= c.inc
NetworkPkg/Ne= tworkPkg.dsc:23:!include MdePkg/MdeLibs.dsc.inc
OvmfPkg/AmdSev/AmdSevX64.dsc:110:!include = MdePkg/MdeLibs.dsc.inc
OvmfPkg/Bhyve/BhyveX64.dsc:116:!include MdePkg/MdeLibs.dsc.inc<= /span>
OvmfPkg/CloudHv/CloudHv= X64.dsc:126:!include MdePkg/MdeLibs.dsc.inc
OvmfPkg/IntelTdx/IntelTdxX64.dsc:108:!include = MdePkg/MdeLibs.dsc.inc
OvmfPkg/Microvm/MicrovmX64.dsc:124:!include MdePkg/MdeLibs.dsc.inc=
OvmfPkg/OvmfPkgIa3= 2.dsc:122:!include MdePkg/MdeLibs.dsc.inc
OvmfPkg/OvmfPkgIa32X64.dsc:1= 26:!include MdePkg/M= deLibs.dsc.inc
= Ovmf= Pkg/OvmfPkgX64.dsc:139:!include= MdePkg/MdeLibs.dsc.inc
OvmfPkg/OvmfXen.dsc:116:!include M= dePkg/MdeLibs.dsc.inc
PcAtChipsetPkg/PcAtChipsetPkg.dsc:21:!include MdePkg/MdeLibs.dsc.inc<= /b>
RedfishPkg/RedfishP= kg.dsc:21:!include MdePkg/MdeLibs.dsc.inc
SecurityPkg/SecurityPkg.dsc:= 20:!include MdePkg/M= deLibs.dsc.inc
= Shel= lPkg/ShellPkg.dsc:22:!include <= /span>MdePkg/MdeLibs.dsc.inc
SignedCapsulePkg/SignedCapsulePkg.dsc:20:!include MdePkg/MdeLibs.dsc.inc
SourceLevelDebugPkg/SourceLevelDebugPkg.dsc:26:!include MdePkg/MdeLibs.dsc.inc
StandaloneMmPkg/StandaloneMmPkg.dsc:36:!include MdePkg/MdeLibs.dsc.= inc
UefiCpuPkg/Uefi= CpuPkg.dsc:24:!include MdePkg/MdeLibs.dsc.inc
UefiPayloadPkg/UefiPayloadPkg.dsc:150:!include MdePkg/MdeLibs.dsc.inc
UnitTestFrameworkPkg/UnitTestFrameworkPkg.dsc:22:!include Md= ePkg/MdeLibs.dsc.inc

/Volume= s/Case/edk2(master)>= cat MdePkg/MdeLibs.dsc.inc
## @file
# Mde DSC include file for [LibraryC= lasses*] section of all Architectures.
#
# This file can be included to the [Li= braryClasses*] section(s) of a platform DSC file
# by using "!include MdePkg/= MdeLibs.dsc.inc" to specify the library instances
# of some EDKII basic/commo= n library classes.
#
# Copyright (c) 2021 - 2022, Intel Corporation. All rights= reserved.<BR>
#
#    SPDX-License-Identifier: BSD-2-Clause-Pat= ent
#
##

[LibraryClasses]
  RegisterFilterLib= |MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
  CpuLib= |MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  SmmCpuRendezvousLib|MdePkg/L= ibrary/SmmCpuRendezvousLibNull/SmmCpuRendezvousLibNull.inf


=
Thanks,

Andrew Fish
I saw some post= s that this was resolved back in 2021, yet I'm still getting hit with it.
Any advice on how to resolve this?

Thank you
xp



On Fri, Jun 17, 2022 at 9:58 AM M.T. via groups.io <x= zavierpower=3Dgmail.com@g= roups.io> wrote:
I tried all your suggestions, but it looks like s= till no cigar.

I delete= d and recloned the repo with --recursive, built emulatorPkg, which worked f= ine, then tried MdeModulePkg
I get the same error on b= oth my setups, real and VM.
I ran the build with -n 1 = and -j after deleting the Build directory, please find the log file attache= d.

Command histor= y is as follows:
cd edk2
git = submodule update --init
edksetup.bat Re= build
// edit target.txt and change to = VS2017, X64 and MdeModulePkg/MdeModulePkg.dsc
build -n= 1 -j logfile.txt

Thank you
xp


On Thu, Jun 16, 2022 at 11:05 PM Kilian Kegel <kilian_kegel@o= utlook.com> wrote:
=

 

git clone -= -recursive https://gi= thub.com/tianocore/edk2.git

 

That works! 

You forg= ot =E2=80=9C=E2=80=94recursive=E2=80=9D

 

=  

From: M.T.
Sent: Thursday, June 16, 2022 10:19 PM
To: devel@edk2.g= roups.io; Maciej T.Cc: <= /span>Kinney, Michael D
Subject: Re: [edk2-devel] Windows 10= build failing

 

I spun up a windows 10 pro VM and started fro= m scratch, now I'm consistently hitting a redefinition error.=

Emul= atorPkg built, so it is something with this Brotoli Library

 

Building ... c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCu= stomDecompressLib\BrotliCustomDecompressLib.inf [X64]
  =       "C:\= Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\1= 4.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\user\uefi\edk2\Build\MdeModu= le\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCu= stomDecompressLib\OUTPUT\brotli\c\common\ /showIncludes /nologo /c /WX /GS-= /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /= Gw /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib= \brotli\c\include\brotli  /Ic:\users\user\uefi\edk2\MdeModulePkg\Libra= ry\BrotliCustomDecompressLib\brotli\c\dec  /Ic:\users\user\uefi\edk2\M= deModulePkg\Library\BrotliCustomDecompressLib\brotli\c\common  /Ic:\us= ers\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib  /Ic= :\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Librar= y\BrotliCustomDecompressLib\BrotliCustomDecompressLib\DEBUG  /Ic:\user= s\user\uefi\edk2\MdePkg  /Ic:\users\user\uefi\edk2\MdePkg\Include &nbs= p;/Ic:\users\user\uefi\edk2\MdePkg\Test\UnitTest\Include  /Ic:\users\u= ser\uefi\edk2\MdePkg\Include\X64  /Ic:\users\user\uefi\edk2\MdeModuleP= kg  /Ic:\users\user\uefi\edk2\MdeModulePkg\Include  /Ic:\users\us= er\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\brotli\c\includ= e @c:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Li= brary\BrotliCustomDecompressLib\BrotliCustomDecompressLib\OUTPUT\cc_resp_3.= txt
transform.c
dictionary.c
C:\P= rogram Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_malloc= .h(103): error C2220: warning treated as error - no 'object' file generated=
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\= ucrt\corecrt_malloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; t= he function gains __declspec(restrict)
NMAKE : fatal error U1= 077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\To= ols\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"' : return code '0x2'
Stop.


build.py...
 : error 7000: Failed to execute command
  &= nbsp;     C:\Pr= ogram Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.= 16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\users\user\uefi\edk2\= Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompres= sLib\BrotliCustomDecompressLib]


build.py...
 : error F002: Failed to build module
       &= nbsp;c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecomp= ressLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG]

 

xp

=

 

=

On Thu, Jun 16, 2022= at 3:06 PM M.T. via groups.io <xzavierpower=3Dgmail.com@groups.io= > wrote:

I g= et NASM version 2.15 compiled on Jun 27 2020

&nbs= p;

I bump= ed it up to the same version you have just in case, several attempts in bui= ld and recompiling results in the original error where BrotliCustomDecompre= ssLib fails, but I also now see these two:<= /u>

 = ;

Building ... c:\users\m= aciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatusCodeLib\SmmReportStatus= CodeLib.inf [X64]
C:\Program Files (x86)\Windows Kits\10\incl= ude\10.0.22621.0\ucrt\corecrt_malloc.h(103): error C2220: warning treated a= s error - no 'object' file generated
C:\Program Files (x86)\W= indows Kits\10\include\10.0.22621.0\ucrt\corecrt_malloc.h(103): warning C45= 59: 'BrDummyMalloc': redefinition; the function gains __declspec(restrict)<= br class=3D"">Building ... c:\users\maciej\uefi\edk2\StandaloneMmPkg\Librar= y\StandaloneMmMemLib\StandaloneMmMemLib.inf [X64]
Building ..= . c:\users\maciej\uefi\edk2\MdeModulePkg\Library\UefiSortLib\UefiSortLib.in= f [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\L= ibrary\PiSmmCoreMemoryAllocationLib\PiSmmCoreMemoryAllocationProfileLib.inf= [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Li= brary\LockBoxNullLib\LockBoxNullLib.inf [X64]
Building ... c:= \users\maciej\uefi\edk2\MdeModulePkg\Library\DxeDebugPrintErrorLevelLib\Dxe= DebugPrintErrorLevelLib.inf [X64]
Building ... c:\users\macie= j\uefi\edk2\MdeModulePkg\Library\ResetUtilityLib\ResetUtilityLib.inf [X64]<= br class=3D"">Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\R= untimeDxeReportStatusCodeLib\RuntimeDxeReportStatusCodeLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BaseRes= etSystemLibNull\BaseResetSystemLibNull.inf [X64]
Building ...= c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PlatformBootManagerLibNull\= PlatformBootManagerLibNull.inf [X64]
Building ... c:\users\ma= ciej\uefi\edk2\MdeModulePkg\Library\DisplayUpdateProgressLibText\DisplayUpd= ateProgressLibText.inf [X64]
transform.c
Buildi= ng ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiDebugLibDebugPpi\P= eiDebugLibDebugPpi.inf [X64]
Building ... c:\users\maciej\uef= i\edk2\MdeModulePkg\Library\DxePrintLibPrint2Protocol\DxePrintLibPrint2Prot= ocol.inf [X64]
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.
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePerformance= Lib\DxePerformanceLib.inf [X64]


build.py...
 : error 7000: Failed to execute command        C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildToo= ls\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\u= sers\maciej\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X64\MdeMo= dulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib]


build.py...
 : err= or F002: Failed to build module
        c:\users\maciej\uefi\edk2\= MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib.in= f [X64, VS2017, DEBUG]

- Failed -

 

And

 

CpuBreakpoint.c
  &= nbsp;     "C:\P= rogram Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14= .16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\maciej\uefi\edk2\Build\MdeMod= ule\DEBUG_VS
2017\X64\MdePkg\Library\BasePeCoffExtraActionLib= Null\BasePeCoffExtraActionLibNull\OUTPUT\.\ /showIncludes /nologo /c /WX /G= S- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen
.h /EHs-= c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\edk2\MdePkg\Library\BasePeCoffEx= traActionLibNull  /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS= 2017\X64\MdePkg\Librar
y\BasePeCoffExtraActionLibNull\BasePeC= offExtraActionLibNull\DEBUG  /Ic:\users\maciej\uefi\edk2\MdePkg  = /Ic:\users\maciej\uefi\edk2\MdePkg\Include  /Ic:\users\maciej\uefi\edk= 2\
MdePkg\Test\UnitTest\Include  /Ic:\users\maciej\uefi\= edk2\MdePkg\Include\X64 c:\users\maciej\uefi\edk2\MdePkg\Library\BasePeCoff= ExtraActionLibNull\PeCoffExtraActionLib.c
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.
        "C:\Program Files (x86)\Microsoft Visual Stu= dio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\lib.exe" /NOL= OGO /LTCG /OUT:c:\users\maciej\uefi\edk2\Build\M
deModule\DEB= UG_VS2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCacheMaintenanceLi= b\OUTPUT\BaseCacheMaintenanceLib.lib @c:\users\maciej\uefi\edk2\Build\MdeMo= dule\DEBUG_VS
2017\X64\MdePkg\Library\BaseCacheMaintenanceLib= \BaseCacheMaintenanceLib\OUTPUT\object_files.lst


build.py...
 : error 7000: Failed to e= xecute command
        C:\Program Files (x86)\Microsoft Visual Stu= dio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /no= logo tbuild [c:\users\maciej\uefi\edk2\Build\MdeM
odule\DEBUG= _VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDeco= mpressLib]


build.py...
 : error F002: Failed to build module
   = ;     c:\users\= maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCusto= mDecompressLib.inf [X64, VS2017, DEBUG]=

 

 

It seems to be bouncing between these errors, any idea what is goin= g on here?

 

Thank you

xp=

=  

On Thu, Jun 16, 2022 at 2:53 PM Kinney, Michael D <michael.d.kin= ney@intel.com> wrote:

<= blockquote style=3D"border-style: none none none solid; border-left-width: = 1pt; border-left-color: rgb(204, 204, 204); padding: 0in 0in 0in 6pt; margi= n-left: 4.8pt; margin-right: 0in;" class=3D"">

Which version of NASM do you have installed? = ; When I run nasm -v, I get the following:

 

NASM version 2.15.05 compiled on Aug 28 2020

 

Mike

 
<= /div>
=

From: M.T. <xzavierpower@gmail.com> 
Sent: Thursday, June 16, 2022 11:4= 4 AM
To: devel@edk2.groups.io; Kinney, Michael D <michael.d.kinney@= intel.com>
Subject: Re: [edk2-devel] Windows 10 build failing=

 

Thanks Michael

 

I did run g= it submodule update --init when I checked out the repo.

I ran it again, and now= I'm bouncing between two errors, the original I posted, and when I run bui= ld again, I get this, which I thought was addressed with nasm 2.15, what am= I missing here?

 

Appreciate the help

xp

 

Building ... c:\users\maciej\uef= i\edk2\MdePkg\Library\SmmMemLib\SmmMemLib.inf [X64]
dictionar= y.c
        "C:\nasm\nasm" -Ic:\users\maciej\uefi\edk2\MdePkg\Libr= ary\BaseLib\X64\ -Ic:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\X64\ &n= bsp;-Ic:\users\maciej\uefi\edk2\MdePkg\Libr
ary\BaseLib\ &nbs= p;-Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Libra= ry\BaseLib\BaseLib\DEBUG\  -Ic:\users\maciej\uefi\edk2\MdePkg\  -= Ic:\users\maciej\uefi\e
dk2\MdePkg\Include\  -Ic:\users\= maciej\uefi\edk2\MdePkg\Test\UnitTest\Include\  -Ic:\users\maciej\uefi= \edk2\MdePkg\Include\X64\ -Ox -f win64 -g -o c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\= OUTPUT\X64\LongJump.obj c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2= 017\X64\MdePkg\Library\BaseLib\BaseLib
\OUTPUT\X64\LongJump.i= ii
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Librar= y\PeiCrc32GuidedSectionExtractLib\PeiCrc32GuidedSectionExtractLib.inf [X64]=
c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\M= dePkg\Library\BaseLib\BaseLib\OUTPUT\X64\LongJump.iii:44: error: parser: in= struction expected
c:\users\maciej\uefi\edk2\Build\MdeModule\= DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\OUTPUT\X64\LongJump.iii:49:= error: parser: instruction expected
NMAKE : fatal error U107= 7: 'C:\nasm\nasm.EXE' : return code '0x1'
Stop.
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatu= sCodeLib\SmmReportStatusCodeLib.inf [X64]


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


build.py...
 : error 7000: Failed to execute comma= nd
        C:\Program Files (x86)\Microsoft Visual Studio\2017\Bui= ldTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild = [c:\users\maciej\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X64\= MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib]

build.py...
 = : error F002: Failed to build module
      &nb= sp; c:\users\maciej\uefi\= edk2\MdePkg\Library\BaseLib\BaseLib.inf [X64, VS2017, DEBUG]

 
 

On Thu, Jun 1= 6, 2022 at 2:11 PM Michael D Kinney <michael.d.kinney@intel.com> = wrote:

Looks like Brotli submodule code is missing.=

 

https://github.com/tianocore/edk2#submodules<= /a>

<= p class=3D"MsoNormal">Mike

 

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of M.T.
Sent: Thursday, Jun= e 16, 2022 11:09 AM
To: devel@edk2.groups.io
Subject: [edk2-dev= el] Windows 10 build failing

 

= Hello

 

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

 

I foll= owed several guides on how to get everything working, but also, I can't bui= ld MdeModulePkg, which on linux was nowhere near this difficult.

<= div class=3D"">
 

In any case, here is wh= at I have so far.

From a re= gular 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 =3D VS2017 and= TARGET_ARCH=3D X64

This is= what I always hit, no matter how many variations of the above I try includ= ing python venvs etc.

 

Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmLoc= kBoxLib\SmmLockBoxPeiLib.inf [X64]
       = ; "C:\Program Files (x86)= \Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Host= x86\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\Lib= rary\BaseLib\X64  /Ic:\users\mac
iej\uefi\edk2\MdePkg\Li= brary\BaseLib  /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS201= 7\X64\MdePkg\Library\BaseLib\BaseLib\DEBUG
 /Ic:\users\m= aciej\uefi\edk2\MdePkg  /Ic:\users\maciej\uefi\edk2\MdePkg\Include &nb= sp;/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\MS= VC\14.16.27023\bin\Hostx86\x64\cl
.exe"' : return code '0x2'<= br class=3D"">Stop.
PeCoffExtraActionLib.c
&nbs= p;       "= C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSV= C\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\ma
ciej\uef= i\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\PlatformHookLi= bSerialPortPpi\PlatformHookLibSerialPortPpi\OUTPUT\.\
 /= showIncludes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FI= AutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\e
d= k2\MdeModulePkg\Library\PlatformHookLibSerialPortPpi  /Ic:\users\macie= j\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library
\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi\DEBUG &nbs= p;/Ic:\users\maciej\uefi\edk2\MdePkg  /Ic:\users\maciej\uefi\edk2\MdeP= kg
\Include  /Ic:\users\maciej\uefi\edk2\MdePkg\Test\Uni= tTest\Include  /Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64  /I= c:\users\maciej\ue
fi\edk2\MdeModulePkg  /Ic:\users\maci= ej\uefi\edk2\MdeModulePkg\Include  /Ic:\users\maciej\uefi\edk2\MdeModu= lePkg\Library\BrotliCustomDec
ompressLib\brotli\c\include c:\= users\maciej\uefi\edk2\MdeModulePkg\Library\PlatformHookLibSerialPortPpi\Pl= atformHookLibSerialPortPpi.c
        "C:\Program Files (x86)\Micro= soft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x6= 4\cl.exe" /Foc:\users\ma
ciej\uefi\edk2\Build\MdeModule\DEBUG= _VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicyLibStandal= oneMm\OUTPUT\.\ /showIncl
udes /nologo /c /WX /GS- /W4 /Gs327= 68 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\use= rs\maciej\uefi\edk2\MdeMod
ulePkg\Library\VarCheckPolicyLib &= nbsp;/Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModule= Pkg\Library\VarCheckPolicyLib\Va
rCheckPolicyLibStandaloneMm\= DEBUG  /Ic:\users\maciej\uefi\edk2\MdePkg  /Ic:\users\maciej\uefi= \edk2\MdePkg\Include  /Ic:\users\maciej\uef
i\edk2\MdePk= g\Test\UnitTest\Include  /Ic:\users\maciej\uefi\edk2\MdePkg\Include\X6= 4  /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\VarCheckPoli= cyLib\VarCheckPolicyLibStandaloneMm\OUTPUT\cc_resp_1.txt


build.py...
 : error 7000: Fai= led to execute command
        C:\Program Files (x86)\Microsoft Vi= sual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake= .exe /nologo tbuil
d [c:\users\maciej\uefi\edk2\Build\MdeModu= le\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCu= stomDecompressLib]


build.py...<= br class=3D""> : error 7000: Failed to execute command
&= nbsp;       C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\M= SVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuil
d [c:= \users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\Bas= eLib\BaseLib]


build.py...
 : error F002: Failed to build module
  &n= bsp;     c:\use= rs\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCu= stomDecompressLib.inf [X64, VS2017, DEBUG]

- F= ailed -
Build end time: 13:55:06, Jun.16 2022
B= uild total time: 00:00:13

 

I am not sure what this error is:

<= p class=3D"MsoNormal">NMAKE : fatal error U1077: '"C:\Program Files (x86)\M= icrosoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx8= 6\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 s= ome help as I'm totally stuck with this.

 

Thank you

xp

=  



=
--Apple-Mail=_204CA8EF-39EF-4871-A5D9-0649DE51295E--