From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (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 DFC4E21D490EC for ; Fri, 11 Aug 2017 04:19:41 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CE4332175B; Fri, 11 Aug 2017 11:22:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CE4332175B Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-119.phx2.redhat.com [10.3.116.119]) by smtp.corp.redhat.com (Postfix) with ESMTP id D472A7E2C1; Fri, 11 Aug 2017 11:22:00 +0000 (UTC) To: "Chen, Farrah" , "'edk2-devel@lists.01.org'" Cc: "Hu, Robert" References: <1B925CC0CD9F3341B32D442251E7E1DC39097EE3@shsmsx102.ccr.corp.intel.com> <1B925CC0CD9F3341B32D442251E7E1DC390AAB9D@shsmsx102.ccr.corp.intel.com> From: Laszlo Ersek Message-ID: Date: Fri, 11 Aug 2017 13:21:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1B925CC0CD9F3341B32D442251E7E1DC390AAB9D@shsmsx102.ccr.corp.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 11 Aug 2017 11:22:02 +0000 (UTC) Subject: Re: 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 11:19:42 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 08/11/17 04:46, Chen, Farrah wrote: > Hi, > > When I build ovmf with commit: 76c6f69ccadc7835c9616b077d9ff1b8e46fe49e, the 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 function 'GetImageNameFromHandle': > /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c:220:25: error: passing argument 3 of 'gBS->HandleProtocol' from incompatible pointer type [-Werror] > ); > ^ > /home/fan/edk2/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c:220:25: note: expected 'void **' but argument is of type 'struct EFI_FIRMWARE_VOLUME2_PROTOCOL **' > cc1: all warnings being treated as errors > make: *** [/home/fan/edk2/Build/OvmfX64/DEBUG_GCC48/X64/ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib/OUTPUT/Drivers.obj] Error 1 Ray fixed it in f8daac8121e66c46d3374f63f80308a777c2a2e7. Thanks Laszlo