From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (EUR03-DBA-obe.outbound.protection.outlook.com [40.92.58.24]) by mx.groups.io with SMTP id smtpd.web11.7.1655484760837090012 for ; Fri, 17 Jun 2022 09:52:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=dQbpZ5iO; spf=pass (domain: outlook.com, ip: 40.92.58.24, mailfrom: kilian_kegel@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZdgkbQwuGC85buRf/FTzJMddx5A5CjSMaDHIwa7sKemcDx2rnIfNi88Az16aQT6G4xS/JR789qNn9jqIMEDK3VtWOWFX+/xPsRC2KZMIWC0TneVRf/dC1GznsyM9LHxCbQiuBSMqvB7uqn+w889J/OLfClQyz/G9j+XTX6JGjAU3a3F++GLJ3E66jSIU+MrLZ2qB5QeDqTuwYhQ6A3tZEc/BgobI3HsHYtxLNZz8gYQvgRYvhGEPiJCkQVV+25y90lIq7DosoSsUuAtEGLCbhTYmnXr/PYOZ9ZKbczYNUfX0orhqCcuH322D6IArqOFif3DdxAldsAKnIYJ/en/2+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PshJmyUQmnk58nXRUc6tWgglKvcfIC4F4OHqtbPYreE=; b=PdQbz8CzVuFTjwzcyen1QTwRhE1l8ZGy0Uc6a7Xoxn/8+McBXZNG2FCCXLV/2BcXxp7+bf4jjRgfS/jS22Rbqxbf5KkcmCQwsBwwmTc3u1xvVwyjBClNi2AG2dYns8/tCS6a7Y/0Dc/k3svdQsF5mpKDxg4gheXcmCvN82kwbwULQWAtSJHNmBlMB+MT7VHVqKHRbMRpSLxep6vXbS4zEqllnL5Fpjt1yblitfsAv5jeMJfL6wredpkQnx22kWsevgGsayVLgvjH7+0XuzzbHQj2CWVIJ/7FiKrgGfxHvanFI77IexDufu+eCtXBSptu+ioBkKrBEmdTgftF2kOzZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PshJmyUQmnk58nXRUc6tWgglKvcfIC4F4OHqtbPYreE=; b=dQbpZ5iOYiBIOcJbDHTSr5AK6Rz2U8JWMVgWDwGX78U9rl8tci0y4ESHmwrY1eNbkIsIAZk1gfzevQdF6fEXZmy3Nb1sBMuk92sH/ecLIfZ7LT6IDnPCDMPJMgpAKW2OfLp5imImrTZF2HyjAC/EWzpc24DcHhmSWq+vOsAxbRnT0uUhCQzuzc8ggWDyCAFcEeRsupTp8d/ForCP7PDdI1rB29RnsdWtSsG8n0eaVYhUMWfDCJekgkBSCwL32HJum7DNcWvvCa4dhgmIz5Q0VfLN4Ee56BgULH1WTq48tpGq3UGXlRzjgaVFKiueps5GtUjrr9xj0SGohqX/uTFq1A== Received: from AS8P189MB2072.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:521::5) by AS8P189MB2224.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:571::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.16; Fri, 17 Jun 2022 16:52:38 +0000 Received: from AS8P189MB2072.EURP189.PROD.OUTLOOK.COM ([fe80::847:ca98:5d76:ca6c]) by AS8P189MB2072.EURP189.PROD.OUTLOOK.COM ([fe80::847:ca98:5d76:ca6c%7]) with mapi id 15.20.5332.019; Fri, 17 Jun 2022 16:52:38 +0000 From: "Kilian Kegel" To: M.T. CC: "devel@edk2.groups.io" , "Kinney, Michael D" Subject: Re: [edk2-devel] Windows 10 build failing Thread-Topic: [edk2-devel] Windows 10 build failing Thread-Index: AQHYgawuCQz9NkXVuESdZmZEq75cF61SVZKAgAAJJYCAAAKKAIAAGBungABxATWAALb2gIAAMGuA Date: Fri, 17 Jun 2022 16:52:38 +0000 Message-ID: References: <16F92F5BB85EDA30.4074@groups.io> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-tmn: [q158MwPlqIOQZV7rlIxxyoPIcSlGdXg9e7hSU5V+j2lJQtxOq0jXvT5gejtdVi4j] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 15b53cb6-774c-4465-3c3f-08da5081c91e x-ms-traffictypediagnostic: AS8P189MB2224:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: h16MDbF/5uiufcZHP1qC1PgRr/hqt2kpGPqJR5PyaMaWFB8ceiadFyLvd67GcVpmLrGCjctzWDi1uiXKMvLcmIkJtK7ZKp7+7UrkNNi+9+A9uuyIyFkdHgaEYf5RtBGf4hX5if0LZMWsxoexZ33RFs5YXAR/Zw3L5t44+b7naGXCuqFpdlt/n+Z7wP4BwApRV1Zku+zrIDWrD/vXKrPIYqErARVu7hqaRE5e3Ym7taVRQvvvxzeu70r4VJdbq8tKIb4eW2ypljK4gzqO9FsPpA2oG/0wRl1ky50/7nU9G6HQXmiaDfRnxUOOWF1kurxZcdAQP3fIipmWvwFvBt3hUrFxx79lD3v/rHbP/AqGr1oZkW+0UKWuunkIMZfIHvDVn8MQV8aXTEwqSCV1Bs5dFueJOOa+/KEz2Ly/I+dVwQ5nlkbTPHm5qWYYjveAaGdloBP+Lze+cLJp9NWSk71pelIIDyzb4CV8zvBOgaKQMaLqBLL0jpX5zPu5QTvw10bfNUBZyIuUqPXmOodr+S/M4TjY5UwfKNEwYnpO76/betd9mrFiRWwUJbnhinDbSUVB6txvsiVUH26YZdaF2D8wUdiZkCv0sIBW0UQc0vBI4STgseTwYZSYltB9NCBvwz+wW3PEWxcQaLH/emVg0oW6laDpxlAqTbdw1iCmN17cHUk= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?lzgu8FJVj6GFkSbg9fjCVk1TWJp4iNZFEYVzHGd67dcQAoVJ7bTfb/RX?= =?Windows-1252?Q?zhG4XQr+qYYlT3PeJa+60eVInWAJp4XtFjb1C7U0yCMTgkiiIG2tefxE?= =?Windows-1252?Q?YBYRpq6tUCDEfmhbGRTiSH0N/32NB2auGByhGasIoJP55QMMOLK3aRYa?= =?Windows-1252?Q?geTul949UO+jIKBhdzL2nPSrj7l2mcVfNBaKwNKfn/KJNtzm8mJnKRE3?= =?Windows-1252?Q?jW6tHyZLjNWy4Kp2OQHG0OXrqkzLa3ioeB8+7C5eqC/Rigfxn7s3x54H?= =?Windows-1252?Q?b90pJ7GeBoG847yuAJQViz8KxBXaLWpaZ0jvSwXVyslQo0Y4xTcoZ55C?= =?Windows-1252?Q?Jo0ci6JmLI9t6SQ8GfTf8WIrxy1+x8g+/xCEc9ul7VHOf5tQ4GYVz7K6?= =?Windows-1252?Q?iXi54an6SxwZ7TzYz75KbFIW282ZSHovdhBKmkmHoC4U1ImroudhA3+8?= =?Windows-1252?Q?Uf46v/lbdhZc2sIDl6fH5iKpSoS3nsuKhfX7ZkeP+gcH0RdPXm/RWmzL?= =?Windows-1252?Q?zk7irio7QY5CDf8ND7jsspZlKd1fG8RIoSMUyR0phSicv/qBn7FkPeLL?= =?Windows-1252?Q?+QTmDSEC1OIyIlA+YneuQzE8V+GSij4F7zmYcqdqk95u7mK/JgHN7zsk?= =?Windows-1252?Q?cXfh3fEBZ2FgGdR6xXMvBVx7rgKXVlXI0t3zM1L1c9ENw1T8sYZgtCxI?= =?Windows-1252?Q?VU4vJ9Fk2BiSTEIkVuq9JDKjk3rPc6UDtB2w9lHLus71xZpkVlxh+g30?= =?Windows-1252?Q?oAbPpFgftfYnEpx5NnDmSRILCQ4lqsBvgz5hVsri2OA+uN1ViWKLiZax?= =?Windows-1252?Q?fZx48v22vioK3IaKldI1hTejgy8/B2x7P0BqemxzQkJxKiGE9sfUZCcn?= =?Windows-1252?Q?B3YgqVQLbE2p39ffP3K5Fm5lAlbdsj1zn1SETyi8rMwF2UnKWKB13P4l?= =?Windows-1252?Q?x9fSlqx/jgLkuulfeloaBeozmZou3i15mcFeXvGtsDXfPA7/5Kk/8OEt?= =?Windows-1252?Q?JeFVOzcsGgKFKnUbrsbi9uCTzj2gYrNnXREHkJO2YSygnsb/fEQ5a6SQ?= =?Windows-1252?Q?2bDbEWxuCbCXDRnKsmvfBv6rN8bXDF9Nvg6ySoQ33zaE3Oi3PzedSUoD?= =?Windows-1252?Q?LoWvOncO2KaLTI8QsJsG2DcIvzg50gyfSUrxQTSpyZdvq5U5g8J0I0Ni?= =?Windows-1252?Q?3FA47vo3XEaf8Tns4iSX1nSR2RTJx6eBkofeAWUxj7Ea5uztEmZWb7mb?= =?Windows-1252?Q?EArKt0/3g5I1m7X8c08CdfFT1p1c4b7VzyuNUGsnFIItP3fbSkDzoqCj?= =?Windows-1252?Q?DwzeBO/eQVFVmVaYHmG7rcLmTRAg4vWCo1Qz2yonWFD8yt3RvoCdgU+z?= =?Windows-1252?Q?Jol8Q+yGZPAH0kwE1ZVhLmMZHxsj8Mh8nXYYlw/5MKfUfqDHQYka0ID2?= =?Windows-1252?Q?kjTQ27fc9o4EVxwZJ2JfcBGQvY63tny7qyhxKoEgyHF3qamf9Lc1AjNB?= =?Windows-1252?Q?HPRqktQNYWxL4PPbhVDOG4CNI63tSDbmZPAFoc+utN/J/D3lSvqreP4P?= =?Windows-1252?Q?RHfl+StNzJUa5pk0xaIPUYN1NnrvasbzDQWT5Gdk6ZbFpbxbuv7Es1uH?= =?Windows-1252?Q?pJvyerOhimgp2k5LicWJUVD7?= MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS8P189MB2072.EURP189.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 15b53cb6-774c-4465-3c3f-08da5081c91e X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2022 16:52:38.1071 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P189MB2224 X-Groupsio-MsgNum: 90581 Content-Language: en-US Content-Type: multipart/related; boundary="_004_AS8P189MB20727D81BB0BD2F55F22A93CEBAF9AS8P189MB2072EURP_"; type="multipart/alternative" --_004_AS8P189MB20727D81BB0BD2F55F22A93CEBAF9AS8P189MB2072EURP_ Content-Type: multipart/alternative; boundary="_000_AS8P189MB20727D81BB0BD2F55F22A93CEBAF9AS8P189MB2072EURP_" --_000_AS8P189MB20727D81BB0BD2F55F22A93CEBAF9AS8P189MB2072EURP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable I checkout latest stable tag: edk2-stable202205 I use VS2015 toolchain. It works on my side=85 From: M.T. Sent: Friday, June 17, 2022 03:58 PM To: Kilian Kegel Cc: devel@edk2.groups.io; Kinney, Michael D Subject: Re: [edk2-devel] Windows 10 build failing 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 =93=97recursive=94 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 consistentl= y hitting a redefinition error. EmulatorPkg built, so it is something with this Brotoli Library Building ... c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecom= pressLib\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\B= uild\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompress= Lib\BrotliCustomDecompressLib\OUTPUT\brotli\c\common\ /showIncludes /nologo= /c /WX /GS- /W4 /Gs32768 /D UNICODE /O1b2s /GL /Gy /FIAutoGen.h /EHs-c- /G= R- /GF /Z7 /Gw /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomD= ecompressLib\brotli\c\include\brotli /Ic:\users\user\uefi\edk2\MdeModulePk= g\Library\BrotliCustomDecompressLib\brotli\c\dec /Ic:\users\user\uefi\edk2= \MdeModulePkg\Library\BrotliCustomDecompressLib\brotli\c\common /Ic:\users= \user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib /Ic:\users\= user\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\Brotli= CustomDecompressLib\BrotliCustomDecompressLib\DEBUG /Ic:\users\user\uefi\e= dk2\MdePkg /Ic:\users\user\uefi\edk2\MdePkg\Include /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\Mde= ModulePkg\Include /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCus= tomDecompressLib\brotli\c\include @c:\users\user\uefi\edk2\Build\MdeModule\= DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCusto= mDecompressLib\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' file gener= ated C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_ma= lloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; the function gai= ns __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"' : retur= n code '0x2' Stop. build.py... : error 7000: Failed to execute command C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\T= ools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\users\us= er\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCu= stomDecompressLib\BrotliCustomDecompressLib] build.py... : error F002: Failed to build module c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompress= Lib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG] xp On Thu, Jun 16, 2022 at 3:06 PM M.T. via 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 BrotliCustomDe= compressLib fails, but I also now see these two: Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatus= CodeLib\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' file gener= ated C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_ma= lloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; the function gai= ns __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 Visual Studio= \2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"' : retur= n code '0x2' Stop. Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\DxePerformanceL= ib\DxePerformanceLib.inf [X64] build.py... : error 7000: Failed to execute command C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\T= ools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\users\ma= ciej\uefi\edk2\Build\MdeM odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Brotl= iCustomDecompressLib] build.py... : error F002: Failed to build module c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompre= ssLib\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\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 /Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG= _VS2017\X64\MdePkg\Librar y\BasePeCoffExtraActionLibNull\BasePeCoffExtraActionLibNull\DEBUG /Ic:\use= rs\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\X6= 4 c:\users\maciej\uefi\edk2\MdePkg\Library\BasePeCoffExtraActionLibNull\PeC= offExtraActionLib.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"' : retur= n 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\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... : error 7000: Failed to execute command C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\T= ools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\users\ma= ciej\uefi\edk2\Build\MdeM odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Brotl= iCustomDecompressLib] build.py... : error F002: Failed to build module c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompre= ssLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG] It seems to be bouncing between these errors, any idea what is going on her= e? Thank you xp On Thu, Jun 16, 2022 at 2:53 PM Kinney, Michael D > 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 pos= ted, 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.i= nf [X64] dictionary.c "C:\nasm\nasm" -Ic:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\X= 64\ -Ic:\users\maciej\uefi\edk2\MdePkg\Library\BaseLib\X64\ -Ic:\users\mac= iej\uefi\edk2\MdePkg\Libr ary\BaseLib\ -Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\= MdePkg\Library\BaseLib\BaseLib\DEBUG\ -Ic:\users\maciej\uefi\edk2\MdePkg\ = -Ic:\users\maciej\uefi\e dk2\MdePkg\Include\ -Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Inclu= de\ -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 '0x1' Stop. Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatus= CodeLib\SmmReportStatusCodeLib.inf [X64] build.py... : error 7000: Failed to execute command C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\T= ools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\users\ma= ciej\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\T= ools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuild [c:\users\ma= ciej\uefi\edk2\Build\MdeM odule\DEBUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\Brotl= iCustomDecompressLib] 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 > 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 figur= e 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 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\S= mmLockBoxPeiLib.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\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 /Ic:\users\mac iej\uefi\edk2\MdePkg\Library\BaseLib /Ic:\users\maciej\uefi\edk2\Build\Mde= Module\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\DEBUG /Ic:\users\maciej\uefi\edk2\MdePkg /Ic:\users\maciej\uefi\edk2\MdePkg\Inc= lude /Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Includ e /Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64 @c:\users\maciej\uefi\edk= 2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\Bas eLib\OUTPUT\cc_resp_56.txt NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio= \2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl .exe"' : return code '0x2' Stop. PeCoffExtraActionLib.c "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\= Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\ma ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\Platfo= rmHookLibSerialPortPpi\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\ue= fi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library \PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi\DEBUG /Ic:\user= s\maciej\uefi\edk2\MdePkg /Ic:\users\maciej\uefi\edk2\MdePkg \Include /Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Include /Ic:\us= ers\maciej\uefi\edk2\MdePkg\Include\X64 /Ic:\users\maciej\ue fi\edk2\MdeModulePkg /Ic:\users\maciej\uefi\edk2\MdeModulePkg\Include /Ic= :\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDec ompressLib\brotli\c\include c:\users\maciej\uefi\edk2\MdeModulePkg\Library\= PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi.c "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\= Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /Foc:\users\ma ciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library\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 /Ic:\users\maciej\uefi\edk2\Build\MdeModu= le\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\Va rCheckPolicyLibStandaloneMm\DEBUG /Ic:\users\maciej\uefi\edk2\MdePkg /Ic:= \users\maciej\uefi\edk2\MdePkg\Include /Ic:\users\maciej\uef i\edk2\MdePkg\Test\UnitTest\Include /Ic:\users\maciej\uefi\edk2\MdePkg\Inc= lude\X64 /Ic:\users\maciej\uefi\edk2\MdeModulePkg /Ic:\user s\maciej\uefi\edk2\MdeModulePkg\Include /Ic:\users\maciej\uefi\edk2\MdeMod= ulePkg\Library\BrotliCustomDecompressLib\brotli\c\include /I c:\users\maciej\uefi\edk2\StandaloneMmPkg /Ic:\users\maciej\uefi\edk2\Stan= daloneMmPkg\Include @c:\users\maciej\uefi\edk2\Build\MdeModul e\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicyLib= StandaloneMm\OUTPUT\cc_resp_1.txt build.py... : error 7000: Failed to execute command C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\T= ools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo tbuil d [c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\= Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib] build.py... : error 7000: Failed to execute command C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\T= ools\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... : error F002: Failed to build module c:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompre= ssLib\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 --_000_AS8P189MB20727D81BB0BD2F55F22A93CEBAF9AS8P189MB2072EURP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

I checkout latest stable tag: edk2-stable202205

I use VS2015 toolchain.

It works on my side=85

 

From: M.T.
Sent: Friday, June 17, 2022 03:58 PM
To: Kilian Kegel
Cc: devel@edk2.groups.io= ; Kinney, Michael D
Subject: Re: [edk2-devel] Windows 10 build failing

 

I tried all your suggestions, but it looks like stil= l no cigar.

 

I deleted and recloned the repo with --recursive, bu= ilt 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:

cd edk2

git submodule update --init

edksetup.bat Rebuild

// edit target.txt and change to VS2017, X64 and Mde= ModulePkg/MdeModulePkg.dsc

build -n 1 -j logfile.txt

 

Thank you

xp

 

 

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

 

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

 

That works!

You forgot =93=97recursive=94

 

 

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 co= nsistently hitting a redefinition error.

EmulatorPkg built, so it is something with this Brotoli Libra= ry

 

Building ... c:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCu= stomDecompressLib\BrotliCustomDecompressLib.inf [X64]
        "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  /Ic:\users= \user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompressLib\brotli\c\dec  /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\BrotliCustomDecompres= sLib\brotli\c\common  /Ic:\users\user\uefi\edk2\MdeModulePkg\Library\B= rotliCustomDecompressLib  /Ic:\users\user\uefi\edk2\Build\MdeModule\DE= BUG_VS2017\X64\MdeModulePkg\Library\BrotliCustomDecompressLib\BrotliCustomD= ecompressLib\DEBUG  /Ic:\users\user\uefi\edk2\MdePkg  /Ic:\users\user\uefi\edk2\Mde= Pkg\Include  /Ic:\users\user\uefi\edk2\MdePkg\Test\UnitTest\Include &n= bsp;/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\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' file gener= ated
C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\corecrt_ma= lloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; the function gai= ns __declspec(restrict)
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual S= tudio\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\MdeModule= Pkg\Library\BrotliCustomDecompressLib\BrotliCustomDecompressLib]


build.py...
 : error F002: Failed to build module
        c:\users\user\uefi\edk2\MdeModulePkg\Library\Br= otliCustomDecompressLib\BrotliCustomDecompressLib.inf [X64, VS2017, DEBUG]<= /p>

 

xp

 

On Thu, Jun 16, 2022 at 3:06 PM M.T. via groups.io <xzavierpow= er=3Dgmail.com@gro= ups.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 Brotl= iCustomDecompressLib fails, but I also now see these two:

 

Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmRep= ortStatusCodeLib\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' file gener= ated
C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_ma= lloc.h(103): warning C4559: 'BrDummyMalloc': redefinition; the function gai= ns __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 Visual S= tudio\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\DxePerformanceL= ib\DxePerformanceLib.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\Brotl= iCustomDecompressLib]


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 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  /Ic:\users\maciej\uefi\edk2\Build\MdeModule\= DEBUG_VS2017\X64\MdePkg\Librar
y\BasePeCoffExtraActionLibNull\BasePeCoffExtraActionLibNull\DEBUG  /Ic= :\users\maciej\uefi\edk2\MdePkg  /Ic:\users\maciej\uefi\edk2\MdePkg\In= clude  /Ic:\users\maciej\uefi\edk2\
MdePkg\Test\UnitTest\Include  /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 Visual S= tudio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"= ;' : return code '0x2'
Stop.
        "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...
 : 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\Brotl= iCustomDecompressLib]


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 goi= ng 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. <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

 

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 p= osted, 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\Sm= mMemLib.inf [X64]
dictionary.c
        "C:\nasm\nasm" -Ic:\users\maciej\uefi= \edk2\MdePkg\Library\BaseLib\X64\ -Ic:\users\maciej\uefi\edk2\MdePkg\Librar= y\BaseLib\X64\  -Ic:\users\maciej\uefi\edk2\MdePkg\Libr
ary\BaseLib\  -Ic:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017= \X64\MdePkg\Library\BaseLib\BaseLib\DEBUG\  -Ic:\users\maciej\uefi\edk= 2\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\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 '0x1'
Stop.
Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmReportStatus= CodeLib\SmmReportStatusCodeLib.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\Brotl= iCustomDecompressLib]


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

 

 

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

Looks like Brotli submodule code is missing.

 

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

 

Mike

 

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

 

Hello

 

I am trying to setup a windows build system with MSVS2017&nbs= p;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 al= so, I can't build MdeModulePkg, which on linux was nowhere near this diffic= ult.

 

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

From a regular command prompt, I setup my paths for NASM_Pref= ix (Version 2.15), WORKSPACE, PACKAGE_PATHS and EDK_TOOLS_PATH

I run edk2setup.bat, which gives warnings about CLANG_BIN and CYGW= IN_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_ARC= H=3D X64

This is what I always hit, no matter how many variations of the ab= ove I try including python venvs etc.

 

Building ... c:\users\maciej\uefi\edk2\MdeModulePkg\Library\SmmLoc= kBoxLib\SmmLockBoxPeiLib.inf [X64]
        "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  /Ic:\users\mac
iej\uefi\edk2\MdePkg\Library\BaseLib  /Ic:\users\maciej\uefi\edk2\Buil= d\MdeModule\DEBUG_VS2017\X64\MdePkg\Library\BaseLib\BaseLib\DEBUG
 /Ic:\users\maciej\uefi\edk2\MdePkg  /Ic:\users\maciej\uefi\edk2\= MdePkg\Include  /Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Inclu= d
e  /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 Visual S= tudio\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 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\.\
 /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\maci= ej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdeModulePkg\Library
\PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi\DEBUG  /Ic:= \users\maciej\uefi\edk2\MdePkg  /Ic:\users\maciej\uefi\edk2\MdePkg
\Include  /Ic:\users\maciej\uefi\edk2\MdePkg\Test\UnitTest\Include &nb= sp;/Ic:\users\maciej\uefi\edk2\MdePkg\Include\X64  /Ic:\users\maciej\u= e
fi\edk2\MdeModulePkg  /Ic:\users\maciej\uefi\edk2\MdeModulePkg\Include=  /Ic:\users\maciej\uefi\edk2\MdeModulePkg\Library\BrotliCustomDec
ompressLib\brotli\c\include c:\users\maciej\uefi\edk2\MdeModulePkg\Library\= PlatformHookLibSerialPortPpi\PlatformHookLibSerialPortPpi.c
        "C:\Program Files (x86)\Microsoft Visual 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  /Ic:\users\maciej\uefi\edk2\Build\Md= eModule\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\Va
rCheckPolicyLibStandaloneMm\DEBUG  /Ic:\users\maciej\uefi\edk2\MdePkg =  /Ic:\users\maciej\uefi\edk2\MdePkg\Include  /Ic:\users\maciej\ue= f
i\edk2\MdePkg\Test\UnitTest\Include  /Ic:\users\maciej\uefi\edk2\MdePk= g\Include\X64  /Ic:\users\maciej\uefi\edk2\MdeModulePkg  /Ic:\use= r
s\maciej\uefi\edk2\MdeModulePkg\Include  /Ic:\users\maciej\uefi\edk2\M= deModulePkg\Library\BrotliCustomDecompressLib\brotli\c\include  /I
c:\users\maciej\uefi\edk2\StandaloneMmPkg  /Ic:\users\maciej\uefi\edk2= \StandaloneMmPkg\Include @c:\users\maciej\uefi\edk2\Build\MdeModul
e\DEBUG_VS2017\X64\MdeModulePkg\Library\VarCheckPolicyLib\VarCheckPolicyLib= StandaloneMm\OUTPUT\cc_resp_1.txt


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


build.py...
 : error 7000: Failed to execute command
        C:\Program Files (x86)\Microsoft Visual Studio\= 2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x86\nmake.exe /nologo= tbuil
d [c:\users\maciej\uefi\edk2\Build\MdeModule\DEBUG_VS2017\X64\MdePkg\Librar= y\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 ed= k2 build env to sort it all out.

 

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

 

Thank you

xp

 

 

--_000_AS8P189MB20727D81BB0BD2F55F22A93CEBAF9AS8P189MB2072EURP_-- --_004_AS8P189MB20727D81BB0BD2F55F22A93CEBAF9AS8P189MB2072EURP_ Content-Type: image/png; name="5ACDB478760B49FDB718CA0485FCD80F.png" Content-Description: 5ACDB478760B49FDB718CA0485FCD80F.png Content-Disposition: inline; filename="5ACDB478760B49FDB718CA0485FCD80F.png"; size=132; creation-date="Fri, 17 Jun 2022 13:58:51 GMT"; modification-date="Fri, 17 Jun 2022 16:51:52 GMT" Content-ID: <18171ee32b7ab868c111> Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAsQAAAABCAYAAADZ77itAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZSURBVEhL7cEBAQAAAIIg/69uSEAAAPCrBgsR AAHZdg1RAAAAAElFTkSuQmCC --_004_AS8P189MB20727D81BB0BD2F55F22A93CEBAF9AS8P189MB2072EURP_--