From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mx.groups.io with SMTP id smtpd.web11.1449.1655492554154105933 for ; Fri, 17 Jun 2022 12:02:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pBGs8cae; spf=pass (domain: gmail.com, ip: 209.85.214.179, mailfrom: xzavierpower@gmail.com) Received: by mail-pl1-f179.google.com with SMTP id h1so4599597plf.11 for ; Fri, 17 Jun 2022 12:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6NpyZtr09D6mCPjzVfEAcDima0MatYNEmONe/0hVbh0=; b=pBGs8cae7DcaVyPAgWYLqwHdb9mpWWhAdmqt0O4lLYBAq2EeeqyuVye1bKzVrbd1jH ZbMJvIgrJMFT6MVkiZS6skCepLu7P+HwvcEgB8Omj3tF4X/vXEzJGXLnCzY/DMoBfMT7 aPzcZtxhUJKHMRAMOtPGVlX52GBoLPy7m0QC0Tn440mtsd/IPeYYtTr7GKCFkAT9YrK0 dQyTE7w2lCG3kp0vdNYKbliHuX18FGYifQaxiEEX1HAnTY/VnT9jrnG/kWNrjjLNUzXq M45Zjn7yAA3wrClvl3tS64nR+NN9Ed/cyzBqVKLD+Lh2eI3MMU3/VOLtMAKnPW23zlRa TJHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6NpyZtr09D6mCPjzVfEAcDima0MatYNEmONe/0hVbh0=; b=ag1hf9Gwb+VfKKNHpiMWboR+OEfRu9nDCuXrzncIgLz62DLDbhCLD834+QdwhJOQaK jLmkyNbM6oXOv6NAt0p0JZuJ5CnF5iTk/Tif/3STR1NjSuczGgIMmNmU5ExaZNFj056v OtBMyCCPseo4nUCJbCdCFq1XT331WAIftzLB2bwyv9LpS6N5Z6/FM+kTkGg5dXDc7+fy hUeN/l9zEmLmm150MLT5KmIUFvR1KO4TnyNmCgjqfZkutiknxDjL9SX7qCMS5i3XPY6V nFlW2EDoNQf7ullcFr3vdPrPtMur9KjOtz3dpPgdZ/B5uMci6SA6R1FLbRhKfNlz5CDS yk9g== X-Gm-Message-State: AJIora/181k4lYFNs7lbep47Bn48TrzgGhbpotHpOg0Q9YNF+WiwOD4l 7LRMLysSanyOiKbAT1vgOnKaqWUnvyRt9dtP4W8= X-Google-Smtp-Source: AGRyM1tzGkOzauzZzRGslC/vlG53itHX/ELdEJ1YTz45hOhBfSXq0w65oMGLasLMI9Ge4iMdfR3p18ic4RrHiG8nfUo= X-Received: by 2002:a17:90b:380b:b0:1e6:67f6:c5b4 with SMTP id mq11-20020a17090b380b00b001e667f6c5b4mr23195686pjb.48.1655492553469; Fri, 17 Jun 2022 12:02:33 -0700 (PDT) MIME-Version: 1.0 References: <16F92F5BB85EDA30.4074@groups.io> <16F96D218CEB30DA.10812@groups.io> In-Reply-To: From: "M.T." Date: Fri, 17 Jun 2022 15:02:21 -0400 Message-ID: Subject: Re: [edk2-devel] Windows 10 build failing To: Andrew Fish Cc: edk2-devel-groups-io , Kilian Kegel , Mike Kinney Content-Type: multipart/alternative; boundary="00000000000093f47405e1a96534" --00000000000093f47405e1a96534 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you Andrew That did it! xp On Fri, Jun 17, 2022 at 2:11 PM Andrew Fish wrote: > > > On Jun 17, 2022, at 9:55 AM, M.T. wrote: > > I think I'm getting somewhere now. > > 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. > > 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\BaseIoLibInt= rinsic.inf > > > 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 specify 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.dsc.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 > platform DSC file > # by using "!include MdePkg/MdeLibs.dsc.inc" to specify the library > instances > # 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 > 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 gmail.com@groups.io> wrote: > >> I tried all your suggestions, but it looks like still no cigar. >> >> I deleted and recloned the repo with --recursive, built emulatorPkg, >> which 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, >> please find the log file attached. >> >> 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/MdeModulePkg.dsc >> build -n 1 -j logfile.txt >> >> Thank you >> xp >> >> >> On Thu, Jun 16, 2022 at 11:05 PM Kilian Kegel >> wrote: >> >>> >>> >>> git clone --recursive https://github.com/tianocore/edk2.git >>> >>> >>> >>> That works! >>> >>> You forgot =E2=80=9C=E2=80=94recursive=E2=80=9D >>> >>> >>> >>> >>> >>> *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 >>> >>> >>> >>> I spun up a windows 10 pro VM and started from scratch, now I'm >>> consistently hitting a redefinition error. >>> >>> EmulatorPkg built, so it is something with this Brotoli Library >>> >>> >>> >>> Building ... >>> c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\= BrotliCustomDecompressLib.inf >>> [X64] >>> "C:\Program Files (x86)\Microsoft Visual >>> Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe= " >>> /Foc:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePk= g\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib\OUTPUT\brotli= \c\common\ >>> /showIncludes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /G= y >>> /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw >>> /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLi= b\brotli\c\include\brotli >>> /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressL= ib\brotli\c\dec >>> /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressL= ib\brotli\c\common >>> /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressL= ib >>> /Ic:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePk= g\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib\DEBUG >>> /Ic:\users\user\uefi\edk2\MdePkg /Ic:\users\user\uefi\edk2\MdePkg\Inc= lude >>> /Ic:\users\user\uefi\edk2\MdePkg\Test\UnitTest\Include >>> /Ic:\users\user\uefi\edk2\MdePkg\Include\X64 >>> /Ic:\users\user\uefi\edk2\MdeModulePkg >>> /Ic:\users\user\uefi\edk2\MdeModulePkg\Include >>> /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressL= ib\brotli\c\include >>> @c:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\= Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib\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 generated >>> C:\Program Files (x86)\Windows >>> Kits\10\include\10.0.19041.0\ucrt\corecrt_malloc.h(103): warning C4559: >>> 'BrDummyMalloc': redefinition; the function gains __declspec(restrict) >>> 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. >>> >>> >>> 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\BrotliCustomDecompressLib\BrotliCustomDecompressLib] >>> >>> >>> build.py... >>> : error F002: Failed to build module >>> 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 >> gmail.com@groups.io> wrote: >>> >>> I get NASM version 2.15 compiled on Jun 27 2020 >>> >>> >>> >>> I bumped it up to the same version you have just in case, several >>> attempts in build and recompiling results in the original error where >>> BrotliCustomDecompressLib fails, but I also now see these two: >>> >>> >>> >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatusCodeLib\S= mmReportStatusCodeLib.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 generated >>> C:\Program Files (x86)\Windows >>> Kits\10\include\10.0.22621.0\ucrt\corecrt_malloc.h(103): warning C4559: >>> 'BrDummyMalloc': redefinition; the function gains __declspec(restrict) >>> Building ... >>> c:\users\maciej\uefi\edk2\StandaloneMmPkg\Library\StandaloneMmMemLib\St= andaloneMmMemLib.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\UefiSortLib\UefiSortLib.= inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PiSmmCoreMemoryAllocatio= nLib\PiSmmCoreMemoryAllocationProfileLib.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\LockBoxNullLib\LockBoxNu= llLib.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxeDebugPrintErrorLevelL= ib\DxeDebugPrintErrorLevelLib.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\ResetUtilityLib\ResetUti= lityLib.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\RuntimeDxeReportStatusCo= deLib\RuntimeDxeReportStatusCodeLib.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BaseResetSystemLibNull\B= aseResetSystemLibNull.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PlatformBootManagerLibNu= ll\PlatformBootManagerLibNull.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DisplayUpdateProgressLib= Text\DisplayUpdateProgressLibText.inf >>> [X64] >>> transform.c >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiDebugLibDebugPpi\PeiD= ebugLibDebugPpi.inf >>> [X64] >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePrintLibPrint2Protoco= l\DxePrintLibPrint2Protocol.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\DxePerformanceLib\DxePer= formanceLib.inf >>> [X64] >>> >>> >>> 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\B= rotliCustomDecompressLib] >>> >>> >>> build.py... >>> : error F002: Failed to build module >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDeco= mpressLib\BrotliCustomDecompressLib.inf >>> [X64, VS2017, DEBUG] >>> >>> - Failed - >>> >>> >>> >>> And >>> >>> >>> >>> CpuBreakpoint.c >>> "C:\Program Files (x86)\Microsoft Visual >>> Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe= " >>> /Foc:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS >>> 2017\X64\MdePkg\Library\BasePeCoffExtraActionLibNull\BasePeCoffExtraAct= ionLibNull\OUTPUT\.\ >>> /showIncludes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /G= y >>> /FIAutoGen >>> .h /EHs-c- /GR- /GF /Z7 /Gw >>> /Ic:\users\maciej\uefi\edk2\MdePkg\Library\BasePeCoffExtraActionLibNull >>> /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Li= brar >>> y\BasePeCoffExtraActionLibNull\BasePeCoffExtraActionLibNull\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\BasePeCoffExtraActionLibNull\P= eCoffExtraActionLib.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 >>> Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\lib.ex= e" >>> /NOLOGO /LTCG /OUT:c:\users\maciej\uefi\edk2\Build\M >>> deModule\DEBUG_VS2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCa= cheMaintenanceLib\OUTPUT\BaseCacheMaintenanceLib.lib >>> @c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS >>> >>> 2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCacheMaintenanceLib= \OUTPUT\object_files.lst >>> >>> >>> 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\B= rotliCustomDecompressLib] >>> >>> >>> build.py... >>> : error F002: Failed to build module >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDeco= mpressLib\BrotliCustomDecompressLib.inf >>> [X64, VS2017, DEBUG] >>> >>> >>> >>> >>> >>> It seems to be bouncing between these errors, any idea what is going on >>> here? >>> >>> >>> >>> Thank you >>> >>> xp >>> >>> >>> >>> On Thu, Jun 16, 2022 at 2:53 PM Kinney, Michael D < >>> michael.d.kinney@intel.com> wrote: >>> >>> 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 >>> >>> >>> *From:* M.T. >>> *Sent:* Thursday, June 16, 2022 11:44 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 git 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 build 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\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\maciej\uefi\edk2\MdePkg\Libr >>> ary\BaseLib\ >>> -Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Li= brary\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\Bu >>> ild\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\OUTPUT\X6= 4\LongJump.obj >>> c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Libra= ry\BaseLib\BaseLib >>> \OUTPUT\X64\LongJump.iii >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiCrc32GuidedSectionExt= ractLib\PeiCrc32GuidedSectionExtractLib.inf >>> [X64] >>> c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Libra= ry\BaseLib\BaseLib\OUTPUT\X64\LongJump.iii:44: >>> error: parser: instruction expected >>> c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Libra= ry\BaseLib\BaseLib\OUTPUT\X64\LongJump.iii:49: >>> error: parser: instruction expected >>> NMAKE : fatal error U1077: 'C:\nasm\nasm.EXE' : return code '0x1' >>> Stop. >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatusCodeLib\S= mmReportStatusCodeLib.inf >>> [X64] >>> >>> >>> 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] >>> >>> >>> 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\B= rotliCustomDecompressLib] >>> >>> >>> build.py... >>> : error F002: Failed to build module >>> c:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\BaseLib.inf >>> [X64, VS2017, DEBUG] >>> >>> >>> >>> On Thu, Jun 16, 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 >>> >>> >>> Mike >>> >>> >>> *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 >>> >>> >>> 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 difficul= t. >>> >>> >>> In any case, here is what I have so far. >>> >>> From a regular command prompt, I setup my paths for NASM_Prefix (Versio= n >>> 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. >>> >>> >>> Building ... >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmLockBoxLib\SmmLockBox= PeiLib.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\Li= brary\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\Libr= ary\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\Pl= atformHookLibSerialPortPpi\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\MdeModule= Pkg\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\PlatformHookLibSerialPor= tPpi\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\Va= rCheckPolicyLib\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\MdeMo= d >>> ulePkg\Library\VarCheckPolicyLib >>> /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\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\BrotliCustomDecompres= sLib\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\VarCheckPolic= yLibStandaloneMm\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\MdeModulePk= g\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\Libr= ary\BaseLib\BaseLib] >>> >>> >>> build.py... >>> : error F002: Failed to build module >>> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDeco= mpressLib\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 >>> >>> >>> >> >> >>=20 > > > --00000000000093f47405e1a96534 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you Andrew

That did it!

xp

On Fri, Jun 17, 2022 at 2:11 PM Andrew Fish <afish@apple.com> wrote:


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

I think I'm getting somewhere now.

I= set=C2=A0everything=C2=A0up and I started getting a consistent error (see = logfile from my last email)
I had to comment out BrDummyMalloc fr= om BrotliDecUefiSupport.h, and now I am able to build MdeModulePkg.

Now one other error I'm dealing with:
error= 4000: Instance of library class [RegisterFilterLib] is not found
=C2=A0= =C2=A0 =C2=A0 =C2=A0 in [c:\users\maciej\uefi\edk2\MdePkg\Library\BaseIoLi= bIntrinsic\BaseIoLibIntrinsic.inf


That library dependency should be resolved by inclu= ding=C2=A0MdePkg/MdeLibs.d= sc.inc=C2=A0in 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 Md= ePkg/MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtCloudHv.dsc:60:!include MdePkg/MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtKvmTool.dsc:39:!include Mde= Pkg/MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtQemu.dsc:5= 3:!include MdePkg/MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtQemuKernel.dsc:51:!include MdePkg= /MdeLibs.dsc.inc
ArmVirtPkg/ArmVirtXen.dsc:28:!include MdePkg/MdeLibs.dsc.inc
Cry= ptoPkg/CryptoPkg.dsc:56:!include MdePkg/MdeLibs.dsc.= inc
DynamicTablesPkg/DynamicTablesPkg.dsc:23:!include MdePkg/MdeLibs.dsc.inc
Emb= eddedPkg/EmbeddedPkg.dsc:44:!include MdePkg/MdeLibs.= dsc.inc
EmulatorPkg/EmulatorPkg.dsc:47:!incl= ude MdePkg/MdeLibs.dsc.inc
FatPkg/Fat= Pkg.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
IntelFsp2WrapperPk= g/IntelFsp2WrapperPkg.dsc:19:!include MdePkg/MdeLibs= .dsc.inc
MdeModulePkg/MdeModulePkg.dsc:= 22= :!i= nclude MdePkg/MdeLibs.dsc.inc
MdePkg/= MdeLibs.dsc.inc:5:# by using "!include MdePkg/M= deLibs.dsc.inc" to specify 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 M= dePkg/MdeLibs.dsc.inc
OvmfPkg/CloudHv/CloudHvX64.dsc= :126:!include MdePkg/MdeLibs.dsc.inc
OvmfPkg/IntelTdx/IntelTdxX64.dsc:108:!include <= b>MdePkg/MdeLibs.dsc.inc
OvmfPkg/Microvm/MicrovmX64.= dsc:124:!include MdePkg/MdeLibs.dsc.inc
OvmfPkg/OvmfPkgIa32.dsc:122:!include Mde= Pkg/MdeLibs.dsc.inc
OvmfPkg/OvmfPkgIa32X64.dsc:1= 26:!include MdePkg/MdeLibs.dsc.inc
OvmfPkg/OvmfPkgX64.dsc:139:!include MdePkg/MdeLibs= .dsc.inc
OvmfPkg/OvmfXen.dsc:116:!include MdePkg/MdeLibs.dsc.inc
= PcAtChipsetPkg/P= cAtChipsetPkg.dsc:21:!include MdePkg/MdeLibs.dsc.inc=
RedfishPkg/RedfishPkg.dsc:21:!include MdePkg/MdeLibs.dsc.inc
SecurityPkg/Securi= tyPkg.dsc:20:!include MdePkg/MdeLibs.dsc.inc
ShellPkg/ShellPkg.dsc:22:!include Md= ePkg/MdeLibs.dsc.inc
SignedCapsulePkg/SignedCapsuleP= kg.dsc:20:!include MdePkg/MdeLibs.dsc.inc=
SourceLevelDebugPkg/SourceLevelDebugPkg.dsc:26:!inclu= de MdePkg/MdeLibs.dsc.inc
StandaloneM= mPkg/StandaloneMmPkg.dsc:36:!include MdePkg/MdeLibs.= dsc.inc
UefiCpuPkg/UefiCpuPkg.dsc:24:!inclu= de MdePkg/MdeLibs.dsc.inc
UefiPayload= Pkg/UefiPayloadPkg.dsc:150:!include MdePkg/MdeLibs.d= sc.inc
UnitTestFrameworkPkg/UnitTestFrameworkPkg.dsc= :22:!include MdePkg/MdeLibs.dsc.inc
=

/Volumes/Case/edk2(master)>cat MdeP= kg/MdeLibs.dsc.inc
## @file
# Mde DSC include file for [LibraryClasses*] secti= on of all Architectures.
#
=
# This file can be included to the [LibraryClasses*= ] section(s) of a platform DSC file
# b= y 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 right= s reserved.<BR>
<= span style=3D"font-variant-ligatures:no-common-ligatures">#
#=C2=A0 =C2=A0 SPDX-License-Identifier: BSD-2-Clause-P= atent
#
##

[LibraryClasses]
=C2=A0 RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterF= ilterLibNull.inf
=C2=A0 CpuLib|MdePkg/L= ibrary/BaseCpuLib/BaseCpuLib.inf
=C2=A0= SmmCpuRendezvousLib|MdePkg/Library/SmmCpuRendezvousLibNull/SmmCpuRendezvou= sLibNull.inf


Thank= s,

Andrew Fish

=
I saw some posts that this was r= esolved 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=C2=A0groups.io=C2=A0= <xzavierpower=3Dgmail.com@groups.io> wrote:
I tried all your suggestions, but it l= ooks like still no cigar.

I deleted and recloned the rep= o with --recursive, built emulatorPkg, which worked fine, then tried MdeMod= ulePkg
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, p= lease find the log file attached.

Command history = is as follows:
git clone --recursive=C2=A0https://github.co= m/tianocore/edk2.git
cd edk2
git submodule upda= te --init
edksetup.bat Rebuild
// edit target.t= xt and change to VS2017, X64 and MdeModulePkg/MdeModulePkg.dsc
bu= ild -n 1 -j logfile.txt

Thank you
xp


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

=C2=A0

git clone --recursive=C2=A0https://github.com= /tianocore/edk2.git

=C2=A0

<= p class=3D"MsoNormal">That works!=C2=A0

You forgot =E2=80=9C=E2=80=94recursive=E2=80=9D

=C2=A0

=C2=A0

<= div style=3D"border-style:solid none none;border-top-width:1pt;border-top-c= olor:rgb(225,225,225);padding:3pt 0in 0in">

From:=C2=A0M.T.
Sent:=C2=A0Thursday, June 16, 2022 10:19 PM
To:=C2=A0<= a href=3D"mailto:devel@edk2.groups.io" target=3D"_blank">devel@edk2.groups.= io;=C2=A0Maciej T.
Cc:=C2=A0Kinney, Michael D
= Subject:=C2=A0Re: [edk2-devel] Windows 10 build failing

=C2=A0

<= p class=3D"MsoNormal">I spun up a windows 10 pro VM and started from scratc= h, now I'm consistently hitting a redefinition error.

=

EmulatorPkg built, so it is something wit= h this Brotoli=C2=A0Library

=C2=A0

Building ... c:\use= rs\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCust= omDecompressLib.inf [X64]
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0= "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Too= ls\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 =C2=A0/Ic:\users\user\uefi\edk2\MdeM= odulePkg\Library\BrotliCustomDecompressLib\brotli\c\dec =C2=A0/Ic:\users\us= er\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\brotli\c\common= =C2=A0/Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompres= sLib =C2=A0/Ic:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeMo= dulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib\DEBUG = =C2=A0/Ic:\users\user\uefi\edk2\MdePkg =C2=A0/Ic:\users\user\uefi\edk2\MdeP= kg\Include =C2=A0/Ic:\users\user\uefi\edk2\MdePkg\Test\UnitTest\Include =C2= =A0/Ic:\users\user\uefi\edk2\MdePkg\Include\X64 =C2=A0/Ic:\users\user\uefi\= edk2\MdeModulePkg =C2=A0/Ic:\users\user\uefi\edk2\MdeModulePkg\Include =C2= =A0/Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib= \brotli\c\include @c:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64= \MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib\O= UTPUT\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 C2= 220: warning treated as error - no 'object' file generated
C:\Pr= ogram Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_malloc.= h(103): warning C4559: 'BrDummyMalloc': redefinition; the function = gains __declspec(restrict)
NMAKE : fatal error U1077: '"C:\Prog= ram Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16= .27023\bin\Hostx86\x64\cl.exe"' : return code '0x2'
Sto= p.


build.py...
=C2=A0: error 7000: Failed to execute command<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0C:\Program Files (x86)\Mic= rosoft 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\BrotliCustomDecompressLib\BrotliCustomDeco= mpressLib]


build.py...
=C2=A0: error F002: Failed to build mo= dule
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0c:\users\user\uefi\ed= k2\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib= .inf [X64, VS2017, DEBUG]

=C2=A0

xp

=C2=A0<= /u>

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

I get=C2=A0N= ASM version 2.15 compiled on Jun 27 2020

=C2=A0

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:

=C2=A0

Bui= lding ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatusCod= eLib\SmmReportStatusCodeLib.inf [X64]
C:\Program Files (x86)\Windows Kit= s\10\include\10.0.22621.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.22621.0\ucrt\corecrt_malloc.h(103): warni= ng C4559: 'BrDummyMalloc': redefinition; the function gains __decls= pec(restrict)
Building ... c:\users\maciej\uefi\edk2\StandaloneMmPkg\Lib= rary\StandaloneMmMemLib\StandaloneMmMemLib.inf [X64]
Building ... c:\use= rs\maciej\uefi\edk2\MdeModulePkg\Library\UefiSortLib\UefiSortLib.inf [X64]<= br>Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PiSmmCoreMem= oryAllocationLib\PiSmmCoreMemoryAllocationProfileLib.inf [X64]
Building = ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\LockBoxNullLib\LockBoxNu= llLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Libr= ary\DxeDebugPrintErrorLevelLib\DxeDebugPrintErrorLevelLib.inf [X64]
Buil= ding ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\ResetUtilityLib\Res= etUtilityLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModuleP= kg\Library\RuntimeDxeReportStatusCodeLib\RuntimeDxeReportStatusCodeLib.inf = [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BaseRe= setSystemLibNull\BaseResetSystemLibNull.inf [X64]
Building ... c:\users\= maciej\uefi\edk2\MdeModulePkg\Library\PlatformBootManagerLibNull\PlatformBo= otManagerLibNull.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeMod= ulePkg\Library\DisplayUpdateProgressLibText\DisplayUpdateProgressLibText.in= f [X64]
transform.c
Building ... c:\users\maciej\uefi\edk2\MdeModuleP= kg\Library\PeiDebugLibDebugPpi\PeiDebugLibDebugPpi.inf [X64]
Building ..= . c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePrintLibPrint2Protocol\= DxePrintLibPrint2Protocol.inf [X64]
NMAKE : fatal error U1077: '&quo= t;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\M= SVC\14.16.27023\bin\Hostx86\x64\cl.exe"' : return code '0x2= 9;
Stop.
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\= DxePerformanceLib\DxePerformanceLib.inf [X64]


build.py...
=C2= =A0: error 7000: Failed to execute command
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildT= ools\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\L= ibrary\BrotliCustomDecompressLib\BrotliCustomDecompressLib]


buil= d.py...
=C2=A0: error F002: Failed to build module
=C2=A0 =C2=A0 =C2= =A0 =C2=A0=C2=A0c:\users\maciej\uefi\edk2\MdeModulePkg\Library= \BrotliCustomDecompressLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBU= G]

- Failed -

= =C2=A0

And

=C2=A0

CpuBreakpoint.c
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\V= C\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\maciej\ue= fi\edk2\Build\MdeModule\DEBUG_VS
2017\X64\MdePkg\Library\BasePeCoffExtra= ActionLibNull\BasePeCoffExtraActionLibNull\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\edk2\MdePkg\Library\BasePeCoffExtr= aActionLibNull =C2=A0/Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS20= 17\X64\MdePkg\Librar
y\BasePeCoffExtraActionLibNull\BasePeCoffExtraActio= nLibNull\DEBUG =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg =C2=A0/Ic:\users\ma= ciej\uefi\edk2\MdePkg\Include =C2=A0/Ic:\users\maciej\uefi\edk2\
MdePkg\= Test\UnitTest\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64 = c:\users\maciej\uefi\edk2\MdePkg\Library\BasePeCoffExtraActionLibNull\PeCof= fExtraActionLib.c
NMAKE : fatal error U1077: '"C:\Program Files= (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bi= n\Hostx86\x64\cl.exe"' : return code '0x2'
Stop.
=C2= =A0 =C2=A0 =C2=A0 =C2=A0=C2=A0"C:\Program Files (x86)\Mic= rosoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\= x64\lib.exe" /NOLOGO /LTCG /OUT:c:\users\maciej\uefi\edk2\Build\M
d= eModule\DEBUG_VS2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCacheMa= intenanceLib\OUTPUT\BaseCacheMaintenanceLib.lib @c:\users\maciej\uefi\edk2\= Build\MdeModule\DEBUG_VS
2017\X64\MdePkg\Library\BaseCacheMaintenanceLib= \BaseCacheMaintenanceLib\OUTPUT\object_files.lst


build.py...
= =C2=A0: error 7000: Failed to execute command
=C2=A0 =C2=A0 =C2=A0 =C2= =A0=C2=A0C:\Program Files (x86)\Microsoft Visual Studio\2017\B= uildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuil= d [c:\users\maciej\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X64\MdeModule= Pkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib]

build.py...
=C2=A0: error F002: Failed to build module
=C2=A0 =C2=A0= =C2=A0 =C2=A0=C2=A0c:\users\maciej\uefi\edk2\MdeModulePkg\Lib= rary\BrotliCustomDecompressLib\BrotliCustomDecompressLib.inf [X64, VS2017, = DEBUG]

=C2=A0

=C2=A0

It seems to be bouncing between these errors, any i= dea what is going on here?

=C2=A0

Thank you

xp

=C2=A0

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

<= p class=3D"MsoNormal">Which version of NASM do you have installed?=C2=A0 Wh= en I run nasm -v, I get the following:

=C2=A0

NASM version 2.15.05 compiled on Au= g 28 2020

=C2=A0

Mike

=C2= =A0

From:= =C2=A0M.T. <xzavierpower@gmail.com>=C2=A0
Sent:=C2=A0Thursday, June 16, 2022 11:44 AM
To:=C2=A0<= /span>devel@edk2.= groups.io; Kinney, Michael D <michael.d.kinney@intel.com>
Subject:= =C2=A0Re: [edk2-devel] Windows 10 build failing

<= /div>
=C2=A0

Thanks Michael

=C2=A0

I did run=C2=A0git su= bmodule update --init when I checked out the repo.

I ran it again, and now I'm bouncing between two error= s, the original I posted, and when I run build again, I get this, which I t= hought was addressed with nasm 2.15, what am I missing here?

=C2=A0

Appreciate the= help

xp

=C2=A0

Building ... c:\users\ma= ciej\uefi\edk2\MdePkg\Library\SmmMemLib\SmmMemLib.inf [X64]
dictionary.c=
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0"C:\nasm\nasm" = -Ic:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\X64\ -Ic:\users\maciej\u= efi\edk2\MdePkg\Library\BaseLib\X64\ =C2=A0-Ic:\users\maciej\uefi\edk2\MdeP= kg\Libr
ary\BaseLib\ =C2=A0-Ic:\users\maciej\uefi\edk2\Build\MdeModule\D= EBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\DEBUG\ =C2=A0-Ic:\users\maci= ej\uefi\edk2\MdePkg\ =C2=A0-Ic:\users\maciej\uefi\e
dk2\MdePkg\Include\ = =C2=A0-Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Include\ =C2=A0-Ic:\= users\maciej\uefi\edk2\MdePkg\Include\X64\ -Ox -f win64 -g -o c:\users\maci= ej\uefi\edk2\Bu
ild\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\Ba= seLib\OUTPUT\X64\LongJump.obj c:\users\maciej\uefi\edk2\Build\MdeModule\DEB= UG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib
\OUTPUT\X64\LongJump.iiiBuilding ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiCrc32Guided= SectionExtractLib\PeiCrc32GuidedSectionExtractLib.inf [X64]
c:\users\mac= iej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseL= ib\OUTPUT\X64\LongJump.iii:44: error: parser: instruction expected
c:\us= ers\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLi= b\BaseLib\OUTPUT\X64\LongJump.iii:49: error: parser: instruction expectedNMAKE : fatal error U1077: 'C:\nasm\nasm.EXE' : return code '= 0x1'
Stop.
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Li= brary\SmmReportStatusCodeLib\SmmReportStatusCodeLib.inf [X64]


bu= ild.py...
=C2=A0: error 7000: Failed to execute command
=C2=A0 =C2=A0= =C2=A0 =C2=A0=C2=A0C:\Program Files (x86)\Microsoft Visual St= udio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /n= ologo tbuild [c:\users\maciej\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X6= 4\MdePkg\Library\BaseLib\BaseLib]


build.py...
=C2=A0: error 7= 000: Failed to execute command
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tool= s\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\users\macie= j\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X64\MdeModulePkg\Library\Brotl= iCustomDecompressLib\BrotliCustomDecompressLib]


build.py...
= =C2=A0: error F002: Failed to build module
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0
c:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\BaseLib.i= nf [X64, VS2017, DEBUG]

=C2=A0
=C2=A0

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

Looks like Brotli submodule code is m= issing.

=C2=A0

https://github.com/t= ianocore/edk2#submodules

=C2=A0

Mike

=C2=A0
=

= From:=C2=A0devel@edk2.groups.io=C2=A0<devel@edk2.groups.io>=C2=A0On Behalf Of=C2=A0M.T.
Sent:=C2=A0Thursday, June 16, 2022 11:09 AM
To:=C2=A0<= /span>devel@edk2.= groups.io
Subject:=C2=A0[edk2-devel] Windows 10 = build failing

=C2=A0

Hello

=C2=A0

I a= m trying to setup=C2=A0a windows build system with MSVS2017=C2=A0or MSVS202= 2, but I keep running into the same issue over and over, and I can't se= em to figure it out.

=C2=A0

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

=C2=A0

In any case, here is what I have so far.

From a regular command prompt, I setup=C2=A0my paths for NASM_P= refix (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.

=C2=A0

Buildin= g ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmLockBoxLib\SmmLockB= oxPeiLib.inf [X64]
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0"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 =C2=A0/Ic:\users\mac
iej\uefi\edk2\MdePkg\Library\B= aseLib =C2=A0/Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\M= dePkg\Library\BaseLib\BaseLib\DEBUG
=C2=A0/Ic:\users\maciej\uefi\edk2\Md= ePkg =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Include =C2=A0/Ic:\users\maci= ej\uefi\edk2\MdePkg\Test\UnitTest\Includ
e =C2=A0/Ic:\users\maciej\uefi\= edk2\MdePkg\Include\X64 @c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS= 2017\X64\MdePkg\Library\BaseLib\Bas
eLib\OUTPUT\cc_resp_56.txt
NMAKE = : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Stu= dio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl
.exe&qu= ot;' : return code '0x2'
Stop.
PeCoffExtraActionLib.c
= =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0"C:\Program Files (x86)\= Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx= 86\x64\cl.exe" /Foc:\users\ma
ciej\uefi\edk2\Build\MdeModule\DEBUG_= VS2017\X64\MdeModulePkg\Library\PlatformHookLibSerialPortPpi\PlatformHookLi= bSerialPortPpi\OUTPUT\.\
=C2=A0/showIncludes /nologo /c /WX /GS- /W4 /Gs= 32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\= users\maciej\uefi\e
dk2\MdeModulePkg\Library\PlatformHookLibSerialPortPp= i =C2=A0/Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeMod= ulePkg\Library
\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPp= i\DEBUG =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg =C2=A0/Ic:\users\maciej\ue= fi\edk2\MdePkg
\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Test\Un= itTest\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64 =C2=A0/= Ic:\users\maciej\ue
fi\edk2\MdeModulePkg =C2=A0/Ic:\users\maciej\uefi\ed= k2\MdeModulePkg\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdeModulePkg\Libr= ary\BrotliCustomDec
ompressLib\brotli\c\include c:\users\maciej\uefi\edk= 2\MdeModulePkg\Library\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPo= rtPpi.c
=C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0"C:\Program F= iles (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.2702= 3\bin\Hostx86\x64\cl.exe" /Foc:\users\ma
ciej\uefi\edk2\Build\MdeMo= dule\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicy= LibStandaloneMm\OUTPUT\.\ /showIncl
udes /nologo /c /WX /GS- /W4 /Gs3276= 8 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\user= s\maciej\uefi\edk2\MdeMod
ulePkg\Library\VarCheckPolicyLib =C2=A0/Ic:\us= ers\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\= VarCheckPolicyLib\Va
rCheckPolicyLibStandaloneMm\DEBUG =C2=A0/Ic:\users\= maciej\uefi\edk2\MdePkg =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Include = =C2=A0/Ic:\users\maciej\uef
i\edk2\MdePkg\Test\UnitTest\Include =C2=A0/I= c:\users\maciej\uefi\edk2\MdePkg\Include\X64 =C2=A0/Ic:\users\maciej\uefi\e= dk2\MdeModulePkg =C2=A0/Ic:\user
s\maciej\uefi\edk2\MdeModulePkg\Include= =C2=A0/Ic:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompr= essLib\brotli\c\include =C2=A0/I
c:\users\maciej\uefi\edk2\StandaloneMmP= kg =C2=A0/Ic:\users\maciej\uefi\edk2\StandaloneMmPkg\Include @c:\users\maci= ej\uefi\edk2\Build\MdeModul
e\DEBUG_VS2017\X64\MdeModulePkg\Library\VarC= heckPolicyLib\VarCheckPolicyLibStandaloneMm\OUTPUT\cc_resp_1.txt

build.py...
=C2=A0: error 7000: Failed to execute command
=C2=A0 =C2= =A0 =C2=A0 =C2=A0=C2=A0C:\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\BrotliCustomDecompressL= ib]


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


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

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

=C2=A0

I am not sure what this error is:

NMA= KE : 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'

=C2=A0
=

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

=C2=A0

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

=C2= =A0

Thank you

xp

<= /div>

=C2=A0




--00000000000093f47405e1a96534--