From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by mx.groups.io with SMTP id smtpd.web11.45.1655484940824710854 for ; Fri, 17 Jun 2022 09:55:40 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VUmOIW0S; spf=pass (domain: gmail.com, ip: 209.85.214.174, mailfrom: xzavierpower@gmail.com) Received: by mail-pl1-f174.google.com with SMTP id h1so4339543plf.11 for ; Fri, 17 Jun 2022 09:55:40 -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=FMPd+DxUriTICDiAbIQy0fCZzdSc89cZUrq1LTU9XQQ=; b=VUmOIW0SJTvrw31bGet52Q5lui7YeN3Cu1UMwuZgs2rZbRwPVMJpu3liG8xgYbf3Fj ksqdoFESO0z7/am2EgjgbK1G+/KGBVezgA7DBx2FQZR2APF/JMtAIqUYdfrqw0SsI5gx by61KAHQ9/n7D4a1sl9Gyld4XCjATpt4Wz4kSdjEOin1OLWYr8IxfrWFmgTNO4cI38yH ActAW0gx3kTlY9mGfmj/DiWk/xtKpX4bz763oq54kdtyutPPi5Rg3FFG0JZQQcjxGWnM AzUALI6T5yNHvxr5od8XfLGoqu+uQtrbe2gY4QMBdqvf/f0pP3SUJ8xoOA++bH6p66CW g/0Q== 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=FMPd+DxUriTICDiAbIQy0fCZzdSc89cZUrq1LTU9XQQ=; b=4Pt1X75WT33XOl0XxxKBrA+riCaI2fXqFp57EHf97DSZdEmciWaBLIhAAFp+2Ycwwf ub9ZVXxLtoawvll/SELL6Qju3WILr076G5rWo+3BO85D+anGVXVqTEEJl3wBKkY6CWwm l+inSvZRwpDuzkuEUr9tKRCZL1M0XlpmTQFM1OC7SUKuIJG09j1xcZoFSM3kQpVO9u6T wsq5o7rHEh0niFitW/iuftzuSN9Pfqen+zw+ezTnGkpgJTdGgi8hArA6/51HvwSZfNtg eybq0C1Jnzqcelja/nn23rKf5NzxsHT5rGvX/eTzq4DlUf+9MEp7nQDlQmw4reqtjsCd wR2w== X-Gm-Message-State: AJIora/ER/1ffd5GVxeLisX1h0ZsbJiigfR5SR7ofHUybP9rUJTwIsvb 0fr3gv8D9Z/2Fqwt53b4vpW4H7qKIs6c4sKI99ChiTT+sAqk25me X-Google-Smtp-Source: AGRyM1tK3ZGOLL578ve0a0sK4EnHULU/TKVhESJRFqk0u8nEZs3wyF5/lhw346pJTXEInvASbMutezwqjyiFrmi9kuU= X-Received: by 2002:a17:90b:1bd0:b0:1e8:9ac9:c3ec with SMTP id oa16-20020a17090b1bd000b001e89ac9c3ecmr11625608pjb.117.1655484939960; Fri, 17 Jun 2022 09:55:39 -0700 (PDT) MIME-Version: 1.0 References: <16F92F5BB85EDA30.4074@groups.io> <16F96D218CEB30DA.10812@groups.io> In-Reply-To: <16F96D218CEB30DA.10812@groups.io> From: "M.T." Date: Fri, 17 Jun 2022 12:55:28 -0400 Message-ID: Subject: Re: [edk2-devel] Windows 10 build failing To: devel@edk2.groups.io, "Maciej T." Cc: Kilian Kegel , "Kinney, Michael D" Content-Type: multipart/alternative; boundary="000000000000c70ada05e1a79f4f" --000000000000c70ada05e1a79f4f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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\BaseIoLibIntri= nsic.inf 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 wrote: > I tried all your suggestions, but it looks like still no cigar. > > 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, > 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\B= rotliCustomDecompressLib.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\MdeModulePkg= \Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib\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\Library\BrotliCustomDecompressLi= b\brotli\c\dec >> /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLi= b\brotli\c\common >> /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLi= b >> /Ic:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg= \Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib\DEBUG >> /Ic:\users\user\uefi\edk2\MdePkg /Ic:\users\user\uefi\edk2\MdePkg\Incl= ude >> /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\BrotliCustomDecompressLi= b\brotli\c\include >> @c:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\L= ibrary\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.e= xe >> /nologo tbuild >> [c:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\L= ibrary\BrotliCustomDecompressLib\BrotliCustomDecompressLib] >> >> >> build.py... >> : error F002: Failed to build module >> >> c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\B= rotliCustomDecompressLib.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\Sm= mReportStatusCodeLib.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\Sta= ndaloneMmMemLib.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\UefiSortLib\UefiSortLib.i= nf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PiSmmCoreMemoryAllocation= Lib\PiSmmCoreMemoryAllocationProfileLib.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\LockBoxNullLib\LockBoxNul= lLib.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxeDebugPrintErrorLevelLi= b\DxeDebugPrintErrorLevelLib.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\ResetUtilityLib\ResetUtil= ityLib.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\RuntimeDxeReportStatusCod= eLib\RuntimeDxeReportStatusCodeLib.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BaseResetSystemLibNull\Ba= seResetSystemLibNull.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PlatformBootManagerLibNul= l\PlatformBootManagerLibNull.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DisplayUpdateProgressLibT= ext\DisplayUpdateProgressLibText.inf >> [X64] >> transform.c >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiDebugLibDebugPpi\PeiDe= bugLibDebugPpi.inf >> [X64] >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePrintLibPrint2Protocol= \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\DxePerf= ormanceLib.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.e= xe >> /nologo tbuild [c:\users\maciej\uefi\edk2\Build\MdeM >> >> odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Br= otliCustomDecompressLib] >> >> >> build.py... >> : error F002: Failed to build module >> >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib= \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\BasePeCoffExtraActi= onLibNull\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\BasePeCoffExtraActionLibNull >> /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Lib= rar >> y\BasePeCoffExtraActionLibNull\BasePeCoffExtraActionLibNull\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 >> c:\users\maciej\uefi\edk2\MdePkg\Library\BasePeCoffExtraActionLibNull\Pe= CoffExtraActionLib.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.exe= " >> /NOLOGO /LTCG /OUT:c:\users\maciej\uefi\edk2\Build\M >> deModule\DEBUG_VS2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCac= heMaintenanceLib\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.e= xe >> /nologo tbuild [c:\users\maciej\uefi\edk2\Build\MdeM >> >> odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Br= otliCustomDecompressLib] >> >> >> build.py... >> : error F002: Failed to build module >> >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib= \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 > > >> *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\Lib= rary\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\X64= \LongJump.obj >> c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Librar= y\BaseLib\BaseLib >> \OUTPUT\X64\LongJump.iii >> Building ... >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiCrc32GuidedSectionExtr= actLib\PeiCrc32GuidedSectionExtractLib.inf >> [X64] >> c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Librar= y\BaseLib\BaseLib\OUTPUT\X64\LongJump.iii:44: >> error: parser: instruction expected >> c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Librar= y\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\Sm= mReportStatusCodeLib.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.e= xe >> /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.e= xe >> /nologo tbuild [c:\users\maciej\uefi\edk2\Build\MdeM >> >> odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Br= otliCustomDecompressLib] >> >> >> 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 t= o >> figure it out. >> >> >> >> I followed several guides on how to get everything working, but also, I >> can't build MdeModulePkg, which on linux was nowhere near this difficult= . >> >> >> >> In any case, here is what I have so far. >> >> From a regular command prompt, I setup my paths for NASM_Prefix (Version >> 2.15), WORKSPACE, PACKAGE_PATHS and EDK_TOOLS_PATH >> >> I run edk2setup.bat, which gives warnings about CLANG_BIN and >> CYGWIN_HOME, I ignore those, and then I run build. >> >> (Python is 3.9.4) >> >> target.txt is switched to TOOL_CHAIN_TAG =3D VS2017 and TARGET_ARCH=3D X= 64 >> >> 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\SmmLockBoxP= eiLib.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\B= aseLib\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\Lib= rary\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\Libra= ry\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\Pla= tformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi\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\e >> dk2\MdeModulePkg\Library\PlatformHookLibSerialPortPpi >> /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModuleP= kg\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\PlatformHookLibSerialPort= Ppi\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\Var= CheckPolicyLib\VarCheckPolicyLibStandaloneMm\OUTPUT\.\ >> /showIncl >> udes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy >> /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\edk2\MdeMod >> ulePkg\Library\VarCheckPolicyLib >> /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModuleP= kg\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\BrotliCustomDecompress= Lib\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\VarCheckPolicy= LibStandaloneMm\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.e= xe >> /nologo tbuil >> d >> [c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg= \Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib] >> >> >> build.py... >> : error 7000: Failed to execute command >> C:\Program Files (x86)\Microsoft Visual >> Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.e= xe >> /nologo tbuil >> d >> [c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Libra= ry\BaseLib\BaseLib] >> >> >> build.py... >> : error F002: Failed to build module >> >> c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib= \BrotliCustomDecompressLib.inf >> [X64, VS2017, DEBUG] >> >> - Failed - >> Build end time: 13:55:06, Jun.16 2022 >> Build total time: 00:00:13 >> >> >> >> I am not sure what this error is: >> >> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual >> Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl >> .exe"' : return code '0x2' >> >> >> >> I tried tracking it down, but I'm just not familiar enough with edk2 >> build env to sort it all out. >> >> >> >> I would really appreciate some help as I'm totally stuck with this. >> >> >> >> Thank you >> >> xp >> >> >> >=20 > > --000000000000c70ada05e1a79f4f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 f= rom BrotliDecUefiSupport.h, and now I am able to build MdeModulePkg.
<= div>
Now one other error I'm dealing with:
erro= r 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\BaseI= oLibIntrinsic\BaseIoLibIntrinsic.inf

I saw some po= sts 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 <xzavierpower=3Dgmail.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 ra= n the build with -n 1 and -j after deleting the Build directory, please fin= d the log file attached.

Command history is as fol= lows:
cd edk2
git submodule update --init
edk= setup.bat Rebuild
// edit target.txt and change to VS2017, X6= 4 and MdeModulePkg/MdeModulePkg.dsc
build -n 1 -j logfile.txt

Thank you
xp


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

=C2=A0

git clone --recursive https://github.com/tianocore/edk2.git

=C2=A0

That works!

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

=C2=A0

=C2=A0

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

=C2=A0

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

EmulatorPkg built, so it is something with this Brot= oli=C2=A0Library

=C2=A0

Building ... c:\users\user\uefi\edk2\MdeModulePkg\Li= brary\BrotliCustomDecompressLib\BrotliCustomDecompressLib.inf [X64]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:\Program Files (x86)\Microsoft Visual S= tudio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"= ; /Foc:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\= Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib\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 =C2=A0/Ic:\users= \user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\brotli\c\dec =C2=A0/Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompres= sLib\brotli\c\common =C2=A0/Ic:\users\user\uefi\edk2\MdeModulePkg\Library\B= rotliCustomDecompressLib =C2=A0/Ic:\users\user\uefi\edk2\Build\MdeModule\DE= BUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomD= ecompressLib\DEBUG =C2=A0/Ic:\users\user\uefi\edk2\MdePkg =C2=A0/Ic:\users\user\uefi\edk2\Mde= Pkg\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\ue= fi\edk2\MdeModulePkg =C2=A0/Ic:\users\user\uefi\edk2\MdeModulePkg\Include =C2=A0/Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompres= sLib\brotli\c\include @c:\users\user\uefi\edk2\Build\MdeModule\DEBUG_VS2017= \X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressL= ib\OUTPUT\cc_resp_3.txt
transform.c
dictionary.c
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_ma= lloc.h(103): error C2220: warning treated as error - no 'object' fi= le generated
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_ma= lloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; the func= tion gains __declspec(restrict)
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visu= al Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe&= quot;' : return code '0x2'
Stop.


build.py...
=C2=A0: error 7000: Failed to execute command
=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\x86\nmake.exe /nologo= tbuild [c:\users\user\uefi\edk2\Build\MdeModule\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 c:\users\user\uefi\edk2\MdeModulePkg\Library\Br= otliCustomDecompressLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG]<= u>

=C2=A0

xp

=C2=A0

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

I get=C2=A0NASM version 2.15 compiled on Jun 27 2020=

=C2=A0

I bumped it up to the same version you have just in = case, several attempts in build and recompiling results in the original err= or where BrotliCustomDecompressLib fails, but I also now see these two:<= /u>

=C2=A0

Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\= Library\SmmReportStatusCodeLib\SmmReportStatusCodeLib.inf [X64]
C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_ma= lloc.h(103): error C2220: warning treated as error - no 'object' fi= le generated
C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_ma= lloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; the func= tion gains __declspec(restrict)
Building ... c:\users\maciej\uefi\edk2\StandaloneMmPkg\Library\StandaloneMm= MemLib\StandaloneMmMemLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\UefiSortLib\Uef= iSortLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PiSmmCoreMemory= AllocationLib\PiSmmCoreMemoryAllocationProfileLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\LockBoxNullLib\= LockBoxNullLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxeDebugPrintEr= rorLevelLib\DxeDebugPrintErrorLevelLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\ResetUtilityLib= \ResetUtilityLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\RuntimeDxeRepor= tStatusCodeLib\RuntimeDxeReportStatusCodeLib.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BaseResetSystem= LibNull\BaseResetSystemLibNull.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PlatformBootMan= agerLibNull\PlatformBootManagerLibNull.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DisplayUpdatePr= ogressLibText\DisplayUpdateProgressLibText.inf [X64]
transform.c
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiDebugLibDebu= gPpi\PeiDebugLibDebugPpi.inf [X64]
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePrintLibPrin= t2Protocol\DxePrintLibPrint2Protocol.inf [X64]
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visu= al Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe&= quot;' : return code '0x2'
Stop.
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePerformanceL= ib\DxePerformanceLib.inf [X64]


build.py...
=C2=A0: error 7000: Failed to execute command
=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\x86\nmake.exe /nologo= tbuild [c:\users\maciej\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Brotl= iCustomDecompressLib]


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

- Failed -

=C2=A0

And

=C2=A0

CpuBreakpoint.c
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:\Program Files (x86)\Microsoft Visual S= tudio\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\BasePeCoffExtraActionL= ibNull\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\Base= PeCoffExtraActionLibNull =C2=A0/Ic:\users\maciej\uefi\edk2\Build\MdeModule\= DEBUG_VS2017\X64\MdePkg\Librar
y\BasePeCoffExtraActionLibNull\BasePeCoffExtraActionLibNull\DEBUG =C2=A0/Ic= :\users\maciej\uefi\edk2\MdePkg =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\In= clude =C2=A0/Ic:\users\maciej\uefi\edk2\
MdePkg\Test\UnitTest\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Inclu= de\X64 c:\users\maciej\uefi\edk2\MdePkg\Library\BasePeCoffExtraActionLibNul= l\PeCoffExtraActionLib.c
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visu= al Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe&= quot;' : return code '0x2'
Stop.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:\Program Files (x86)\Microsoft Visual S= tudio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\lib.exe&quo= t; /NOLOGO /LTCG /OUT:c:\users\maciej\uefi\edk2\Build\M
deModule\DEBUG_VS2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCacheM= aintenanceLib\OUTPUT\BaseCacheMaintenanceLib.lib @c:\users\maciej\uefi\edk2= \Build\MdeModule\DEBUG_VS
2017\X64\MdePkg\Library\BaseCacheMaintenanceLib\BaseCacheMaintenanceLib\OUT= PUT\object_files.lst


build.py...
=C2=A0: error 7000: Failed to execute command
=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\x86\nmake.exe /nologo= tbuild [c:\users\maciej\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Brotl= iCustomDecompressLib]


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

=C2=A0

=C2=A0

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

=C2=A0

Thank you

xp

=C2=A0

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

Which version of NASM do you have installed?=C2=A0 W= hen I run nasm -v, I get the following:

=C2=A0

NASM version 2.15.05 compiled on Aug 28 2020

=C2=A0

Mike

=C2=A0

From: M.T. <xzavierpower@gmail.com>
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

=C2=A0

Thanks Michael

=C2=A0

I did run=C2=A0git submodule update --init when I check= ed out the repo.

I ran it again, and now I'm bouncing between two er= rors, 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= ?

=C2=A0

Appreciate the help

xp

=C2=A0

Building ... c:\users\maciej\uefi\edk2\MdePkg\Librar= y\SmmMemLib\SmmMemLib.inf [X64]
dictionary.c
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:\nasm\nasm" -Ic:\users\maciej\uefi= \edk2\MdePkg\Library\BaseLib\X64\ -Ic:\users\maciej\uefi\edk2\MdePkg\Librar= y\BaseLib\X64\ =C2=A0-Ic:\users\maciej\uefi\edk2\MdePkg\Libr
ary\BaseLib\ =C2=A0-Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017= \X64\MdePkg\Library\BaseLib\BaseLib\DEBUG\ =C2=A0-Ic:\users\maciej\uefi\edk= 2\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\maciej\uefi\edk2\Bu
ild\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\OUTPUT\X64\Lo= ngJump.obj c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePk= g\Library\BaseLib\BaseLib
\OUTPUT\X64\LongJump.iii
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\PeiCrc32GuidedS= ectionExtractLib\PeiCrc32GuidedSectionExtractLib.inf [X64]
c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\B= aseLib\BaseLib\OUTPUT\X64\LongJump.iii:44: error: parser: instruction expec= ted
c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\B= aseLib\BaseLib\OUTPUT\X64\LongJump.iii:49: error: parser: instruction expec= ted
NMAKE : fatal error U1077: 'C:\nasm\nasm.EXE' : return code '0x= 1'
Stop.
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatus= CodeLib\SmmReportStatusCodeLib.inf [X64]


build.py...
=C2=A0: error 7000: Failed to execute command
=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\x86\nmake.exe /nologo= tbuild [c:\users\maciej\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib]


build.py...
=C2=A0: error 7000: Failed to execute command
=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\x86\nmake.exe /nologo= tbuild [c:\users\maciej\uefi\edk2\Build\MdeM
odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Brotl= iCustomDecompressLib]


build.py...
=C2=A0: error F002: Failed to build module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 c:\users\maciej\uefi\edk2\MdePkg\Library\BaseLi= b\BaseLib.inf [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 missing.

=C2=A0

https://github.com/tianocore/edk2#submodules

=C2=A0

Mike

=C2=A0

From: devel@edk2.groups= .io <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

=C2=A0

Hello

=C2=A0

I am trying to setup=C2=A0a windows build system wit= h MSVS2017=C2=A0or MSVS2022, but I keep running into the same issue over an= d over, and I can't seem to figure it out.

=C2=A0

I followed several guides on how to get everything w= orking, but also, I can't build MdeModulePkg, which on linux was nowher= e near this 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_Prefix (Version 2.15), WORKSPACE, PACKAGE_PATHS and EDK_TOOLS_PAT= H

I run edk2setup.bat, which gives warnings about CLAN= G_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 variat= ions of the above I try including python venvs etc.

=C2=A0

Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\= Library\SmmLockBoxLib\SmmLockBoxPeiLib.inf [X64]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:\Program Files (x86)\Microsoft Visual S= tudio\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\Base= Lib\OUTPUT\X64\ /showIncludes /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\MdePkg\Library\BaseLib\X64 =C2=A0/Ic:\users\mac
iej\uefi\edk2\MdePkg\Library\BaseLib =C2=A0/Ic:\users\maciej\uefi\edk2\Buil= d\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\DEBUG
=C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg =C2=A0/Ic:\users\maciej\uefi\edk2\= MdePkg\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Inclu= d
e =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64 @c:\users\maciej\uef= i\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 Visu= al Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl
.exe"' : return code '0x2'
Stop.
PeCoffExtraActionLib.c
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:\Program Files (x86)\Microsoft Visual S= tudio\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\Platfo= rmHookLibSerialPortPpi\PlatformHookLibSerialPortPpi\OUTPUT\.\
=C2=A0/showIncludes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL = /Gy /FIAutoGen.h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\e
dk2\MdeModulePkg\Library\PlatformHookLibSerialPortPpi =C2=A0/Ic:\users\maci= ej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library
\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi\DEBUG =C2=A0/Ic:= \users\maciej\uefi\edk2\MdePkg =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg
\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Include =C2= =A0/Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64 =C2=A0/Ic:\users\maciej\u= e
fi\edk2\MdeModulePkg =C2=A0/Ic:\users\maciej\uefi\edk2\MdeModulePkg\Include= =C2=A0/Ic:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDec
ompressLib\brotli\c\include c:\users\maciej\uefi\edk2\MdeModulePkg\Library\= PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi.c
=C2=A0 =C2=A0 =C2=A0 =C2=A0 "C:\Program Files (x86)\Microsoft Visual S= tudio\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\VarChe= ckPolicyLib\VarCheckPolicyLibStandaloneMm\OUTPUT\.\ /showIncl
udes /nologo /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.= h /EHs-c- /GR- /GF /Z7 /Gw /Ic:\users\maciej\uefi\edk2\MdeMod
ulePkg\Library\VarCheckPolicyLib =C2=A0/Ic:\users\maciej\uefi\edk2\Build\Md= eModule\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\ue= f
i\edk2\MdePkg\Test\UnitTest\Include =C2=A0/Ic:\users\maciej\uefi\edk2\MdePk= g\Include\X64 =C2=A0/Ic:\users\maciej\uefi\edk2\MdeModulePkg =C2=A0/Ic:\use= r
s\maciej\uefi\edk2\MdeModulePkg\Include =C2=A0/Ic:\users\maciej\uefi\edk2\M= deModulePkg\Library\BrotliCustomDecompressLib\brotli\c\include =C2=A0/I
c:\users\maciej\uefi\edk2\StandaloneMmPkg =C2=A0/Ic:\users\maciej\uefi\edk2= \StandaloneMmPkg\Include @c:\users\maciej\uefi\edk2\Build\MdeModul
e\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicyLib= StandaloneMm\OUTPUT\cc_resp_1.txt


build.py...
=C2=A0: error 7000: Failed to execute command
=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\x86\nmake.exe /nologo= tbuil
d [c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\= Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib]


build.py...
=C2=A0: error 7000: Failed to execute command
=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\x86\nmake.exe /nologo= tbuil
d [c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Librar= y\BaseLib\BaseLib]


build.py...
=C2=A0: error F002: Failed to build module
=C2=A0 =C2=A0 =C2=A0 =C2=A0 c:\users\maciej\uefi\edk2\MdeModulePkg\Library\= BrotliCustomDecompressLib\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:

NMAKE : fatal error U1077: '"C:\Program Fil= es (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 just not famil= iar enough with edk2 build env to sort it all out.

=C2=A0

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

=C2=A0

Thank you

xp

=C2=A0

=20

--000000000000c70ada05e1a79f4f--