From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.92.66.101]) by mx.groups.io with SMTP id smtpd.web10.26401.1655435143665843426 for ; Thu, 16 Jun 2022 20:05:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=hkERs9/7; spf=pass (domain: outlook.com, ip: 40.92.66.101, mailfrom: kilian_kegel@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BH7ZsgswQs/fiG8sof6vwi/t0Uyc11a1urSwRhAHrsv2bR5EnGsAFgbFRgWTnKtkPTRt+6zIbNPiEFc/OriLYeqwWSUfvjpz0r4r709zekx7UFwk4lwEKaYRZCCrQBQjF2q6vciAyFByrbSZguJcsmT8yFiuunZ5HTbsQXBVATrSMuokbWZyqhwscn7NKeQ1SOxl1anhTJH+DvZYrNtjnNCmFFWfEdXRhXqJhA2tMgyzuoUppiHkv7bjo27NIklos3+lcI27xBZcSxMCT7jHj1UBN0lTxiObYuUDnpdV8wHxF9C9QduMzjZU7dFgnCPgDwwbN4ohoR0GbmJOGEg4Yg== 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=X27bYAZeduZmvW4bL0nW5SQfSwhYFQMwFEtQuAx9MgI=; b=bL3DsGDaI3uNXcF6ItxZgqlKG713cBW99qRzr9FNtuy5HgPAMCW6u70K2v52fiNmDvhN8wKrS9ohEoQNjMwWsGNpZmV5XFZZi8bX6AH0ggW8iGymvnVUV78AiE265901UOBxN6gOYSGBmZDUrxCR/D1fHcLf6TPFIPM/CL1MjisTiTRgMTBZhN76GsVow790NHobQBIYtELb0P5HurDhCYj7FUUra+ugwne5LH65qTXn1LvhTmcTzwPKLah+Yx7lzuHZzy1TfjGwj0I0gSVyg/seIagiX+e0cl97s6nQQHoNBjZNVlqiev7NXHMtxCMxr+powRP/Xyz2qzuy8R0cfQ== 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=X27bYAZeduZmvW4bL0nW5SQfSwhYFQMwFEtQuAx9MgI=; b=hkERs9/7NteZs9IZPiBMHq64yoDnsAcEmSGHmHCEACB4R2jqVWOHoxHXzS+rwqcBMqgj1+e3RsM14EEG3wMBGlglL32A44QstXNyNnombNKLlCJ5wvI7AxYA77x0lEijJmKBsLW/T6DeIpXMlnk2kSTjH9JhMIVviiV5s1ZqCoszCtbHtw3EZ//0ysCOcdNo/+bWmbW9Z2GAkWryu2KQHkokrhO9IbdE0TKReHeCDlkfeFfnTpLadlA9e1rXOEgCutLSXbIi0A0PQcg2RZGDXaQUvvmOdT9x7gGCRM4cX/E0KVGpv0YKWI2LkmkkcIkVqbvUkkO8h895i121B6ZWKg== Received: from AS8P189MB2072.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:521::5) by AS8P189MB1701.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:396::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.13; Fri, 17 Jun 2022 03:05:40 +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 03:05:40 +0000 From: "Kilian Kegel" To: "devel@edk2.groups.io" , "xzavierpower@gmail.com" CC: "Kinney, Michael D" Subject: Re: [edk2-devel] Windows 10 build failing Thread-Topic: [edk2-devel] Windows 10 build failing Thread-Index: AQHYgawuCQz9NkXVuESdZmZEq75cF61SVZKAgAAJJYCAAAKKAIAAGBungABxATU= Date: Fri, 17 Jun 2022 03:05:40 +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: [sQC85L7RBRnoRj4fzdin2Mx+YN4IdoiI4YcU7yVoM/tbTjJ0gxCbP0fZGF00zp5h] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b2b71c1a-dbee-4adb-ddc2-08da500e4287 x-ms-traffictypediagnostic: AS8P189MB1701:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uK1P0T01L+Uh7QJUfrcjTHbq+9PSkqDO8SrDjhP7kU+BJeC4dEtEDLqitczdrTynfprZY00xitTxoDejIW/mg1l48JHMcDkAUt6Px3j1KQacDrPigE3hHDrRwvlJs8+tu+sWoyy6Q+AqCF6BgtPVuoosjEYe6avEFHyX29wTdPr7Hqc6rNpTgemp6MPnCx59ab16nNqG2ZgaBtjT8OcFRGn7eSCd8I+m8atFERAJgpL/oOCbwFrUIzPvu7pAv0rmbiJo8FyZZLf1YuMx+lnsQR5Y/izNWn58m6qHwe9WbnkemkbASEl3FycDBaW2Okry/H3H0PUZpXooBZP4zErPh85n6bSzkFAFYTQqnGjVsj9wBi3T+TOea0JGYdb+lnOCxRQ9/86VPW2Fn+fjOyGzUBSDEU++MsBiIN9bpK9TZiMDInRePx/YBaGK3wBZw1b8JOewQYtBLINRNvjgPfSmy7zUZrDDvR24PR+xOD9iTOl5jJ7B9rkEc6SJj/HlT+m9CFn4hdkVpccd0knTlUnLjo/T2JWvNlbrSNMIyJEuJn66jpqumEJG/gxNIL+p5seKmfwQxuiyZGbCLXaONNIUvq5uMQ69FJa66yjTmcTeGmY+Mh5Y3gf+ukH49lQMROag1xNEqK3hgJ5M7cNfpjC3FpDQYfsoM155JA0YRS+Toto= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?Fk496/wrmSK+LIxhv+VoM/1fcNnCvEv/gUGOZa6U9r8OwUUvLIKoTKm0?= =?Windows-1252?Q?2ANaa7P76rGLfczSkXgs7To+kRq0IMvIzSVV6EORpu1dkNSzPfcKrkYB?= =?Windows-1252?Q?WjM60fUckL5tbAQ5gUvFa4CxRQ2FG37WZoyh8/M3M7qj/NIAQFrBKOOx?= =?Windows-1252?Q?kY/g8o5/f1o+cYVID0A3rUrBsdL9aYxRdD0UYaHa8FmtY5V3k0ov9hMP?= =?Windows-1252?Q?IdVxKj8IGI3MHbJF6BjzY3IbzZDR9Ghzx7x2lFmfx0rpCiG2wYWcdcpc?= =?Windows-1252?Q?rf9nGlUz8xPz2FSnQKKWfmJ9FAwyAhmdyV7jv/lwvcu0Zh6uZaX3tWDj?= =?Windows-1252?Q?aTlW4Ui9UKoOLw0adtqj48uBsB3QPH1ILi3eqcXcdZmTrN7qeaCCK3hg?= =?Windows-1252?Q?jxF2tJ5Lh62VdeyoWOun+EN/qW2YoK+DdeQ8ThzyUH7AzCokOEV49Aa5?= =?Windows-1252?Q?ib+1FxkZAp1NIECUgTSXWzJKi8bpiHrlFNIi00L2tP8YsKmo69M1zCdG?= =?Windows-1252?Q?mdXGHex3d6ZxeviKOROjrUJ1j76SWKNQWhWSGY1ZK07n6PFYhg1T8xIj?= =?Windows-1252?Q?rQxrWNNBUSEGNZMCOzB42kW2Dze/2uVdY2c9mQbUfVhfhKl0vY/JDUcW?= =?Windows-1252?Q?nhYEM5xWlgae7yLUeHAXkUdKr5CiDvoT2tkglUdlvC13gOFG0uSOdzZx?= =?Windows-1252?Q?zWTDNQRdw7DWCkz//EGR1kC9lFMPui5xglYf2KF5XTsPxdTwU5igNw3y?= =?Windows-1252?Q?A31tX1DdRoxBNl/qovO28ZrLsQ7ZymowVIkmdxRbNEk+GScM5TrQlPlO?= =?Windows-1252?Q?Fbu3Z6C60n876/9GTerZ0i4Vut4W4Dwo+tbiHIz/magbx7OImVZ6pOuw?= =?Windows-1252?Q?0O7lq3/1LECnUZDB6boPCrqNRt7EYZyZKcUPl3JgOPjBBn1KL5epDMXQ?= =?Windows-1252?Q?G+Q4xxKEGOSsN8v5K+Dt/jbCMkzWdmEGMp4+L1RoNGlYujwf1QxXEXLC?= =?Windows-1252?Q?a2UzN6+c80UYq2j+4BJw2307/bxj8koon7eDjInNSJ4JceTFTDKLGngF?= =?Windows-1252?Q?Pij7rnAcCas5aQKwMnjNDpBjjOzuV/sM10cYSiwX1DEdL87Um81bNz6l?= =?Windows-1252?Q?JdrEllh860wHeZbpT8wYqwGNoNhcihrXMDsAT80WwJqBlMW18MzUzIA0?= =?Windows-1252?Q?WxGH48ZKmdNGRswOm3K7VtiBHbyb+RYcym9VFMqZf8ppbztf+6IxohBo?= =?Windows-1252?Q?bUMIXKqm3FS9GnTBYQx90uAfrsKfTRlG7k7x/alTJ2Sd6I5K6NElcg8H?= =?Windows-1252?Q?ta7rZyN+vTW7sUWxdXmjoPBXJkskDkH5GwTehjQlP3NzqWvQg5PaQ7dR?= =?Windows-1252?Q?NAI1YScCDNHH//0ixBEtRBS1DMSlLKlynYRn/ifB38Z1km7xr4+Vx8RU?= =?Windows-1252?Q?gfb78gNVRP77QqefYBS7FGgwp1zeN7N4BqLHzIm3llGWqWzzL+M4vlgA?= =?Windows-1252?Q?tSFQ48CaiLmOSwDztnvXIHgC3wgoFK2fh7F0FEPULz7TugTe3L5mvC6a?= =?Windows-1252?Q?vD7ULl6SL/xtBLytrQgECWIIEeKbU3eFIN39yVe7Nh8ZPkWgBvgAw8SF?= =?Windows-1252?Q?vClI3s4y/GfcXHgCV+kPOaU7?= 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: b2b71c1a-dbee-4adb-ddc2-08da500e4287 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jun 2022 03:05:40.2311 (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: AS8P189MB1701 X-Groupsio-MsgNum: 90569 Content-Language: en-US Content-Type: multipart/related; boundary="_004_AS8P189MB2072C20A135002DA298E7FE3EBAF9AS8P189MB2072EURP_"; type="multipart/alternative" --_004_AS8P189MB2072C20A135002DA298E7FE3EBAF9AS8P189MB2072EURP_ Content-Type: multipart/alternative; boundary="_000_AS8P189MB2072C20A135002DA298E7FE3EBAF9AS8P189MB2072EURP_" --_000_AS8P189MB2072C20A135002DA298E7FE3EBAF9AS8P189MB2072EURP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable 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_AS8P189MB2072C20A135002DA298E7FE3EBAF9AS8P189MB2072EURP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

 

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

 

That works!

You forgot =93=97recursive=94

 

 

 

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 Library

 

Building ... c:\users\user\uefi\edk2\MdeModulePkg\Li= brary\BrotliCustomDecompressLib\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]<= o:p>

 

xp

 

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 err= or where BrotliCustomDecompressLib fails, but I also now see these two:

 

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' 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 id= ea what is going on here?

 

Thank you

xp

 

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?  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_AS8P189MB2072C20A135002DA298E7FE3EBAF9AS8P189MB2072EURP_-- --_004_AS8P189MB2072C20A135002DA298E7FE3EBAF9AS8P189MB2072EURP_ 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 03:05:39 GMT"; modification-date="Fri, 17 Jun 2022 03:05:39 GMT" Content-ID: Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAsQAAAABCAYAAADZ77itAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZSURBVEhL7cEBAQAAAIIg/69uSEAAAPCrBgsR AAHZdg1RAAAAAElFTkSuQmCC --_004_AS8P189MB2072C20A135002DA298E7FE3EBAF9AS8P189MB2072EURP_--