From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E8EB721D490E3 for ; Thu, 10 Aug 2017 19:43:58 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Aug 2017 19:46:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,356,1498546800"; d="scan'208,217";a="1204460035" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 10 Aug 2017 19:46:18 -0700 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 10 Aug 2017 19:46:18 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 10 Aug 2017 19:46:18 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.183]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.114]) with mapi id 14.03.0319.002; Fri, 11 Aug 2017 10:46:16 +0800 From: "Chen, Farrah" To: "'edk2-devel@lists.01.org'" CC: "Hu, Robert" Thread-Topic: OVMF compile error Thread-Index: AdL2MNT9wXzwCS5zQHeXALDYydcldwcGBzAw Date: Fri, 11 Aug 2017 02:46:15 +0000 Message-ID: <1B925CC0CD9F3341B32D442251E7E1DC390AAB9D@shsmsx102.ccr.corp.intel.com> References: <1B925CC0CD9F3341B32D442251E7E1DC39097EE3@shsmsx102.ccr.corp.intel.com> In-Reply-To: <1B925CC0CD9F3341B32D442251E7E1DC39097EE3@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: OVMF compile error X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2017 02:43:59 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, When I build ovmf with commit: 76c6f69ccadc7835c9616b077d9ff1b8e46fe49e, th= e following error occurred: git clone https://github.com/tianocore/edk2.git cd edk2 OvmfPkg/build.sh -a X64 ........................................ /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c: In f= unction 'GetImageNameFromHandle': /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c:220:2= 5: error: passing argument 3 of 'gBS->HandleProtocol' from incompatible poi= nter type [-Werror] ); ^ /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c:220:2= 5: note: expected 'void **' but argument is of type 'struct EFI_FIRMWARE_VO= LUME2_PROTOCOL **' cc1: all warnings being treated as errors make: *** [/home/fan/edk2/Build/OvmfX64/DEBUG_GCC48/X64/ShellPkg/Library/Ue= fiShellDriver1CommandsLib/UefiShellDriver1CommandsLib/OUTPUT/Drivers.obj] E= rror 1 build.py... : error 7000: Failed to execute command make tbuild [/home/fan/edk2/Build/OvmfX64/DEBUG_GCC48/X64/ShellPkg/= Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib] build.py... : error F002: Failed to build module /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShe= llDriver1CommandsLib.inf [X64, GCC48, DEBUG] - Failed - Build end time: 10:45:31, Aug.11 2017 Build total time: 00:01:00 Best Regards, Fan Chen