From: Wei Liu Subject: Re: ovmf fails to build in stagin-4.6 Date: Mon, 26 Oct 2015 12:04:35 +0000 Message-ID: <20151026120435.GC13118@zion.uk.xensource.com> References: <20151026094315.GA29513@aepfle.de> <20151026100316.GA11537@zion.uk.xensource.com> <20151026101116.GA8411@aepfle.de> <20151026101355.GP5060@zion.uk.xensource.com> <20151026111340.GA25113@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20151026111340.GA25113@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, Oct 26, 2015 at 12:13:40PM +0100, Olaf Hering wrote: > On Mon, Oct 26, Wei Liu wrote: > > > Wait, so you're using gcc-5.1.1 but OVMF is reporting gcc-4.4 (see in > > the path of output string), there might be another problem with > > toolchain detection then. > > As Linus said: detect old and known to be problematic, everything else has to > be handled as "current". But see tools/firmware/ovmf-dir-remote/OvmfPkg/build.sh > > gcc_version=$(gcc -v 2>&1 | tail -1 | awk '{print $3}') > case $gcc_version in > 4.5.*) > TARGET_TOOLS=GCC45 > ;; > 4.6.*) > TARGET_TOOLS=GCC46 > ;; > 4.7.*) > TARGET_TOOLS=GCC47 > ;; > 4.8.*) > TARGET_TOOLS=GCC48 > ;; > 4.9.*|4.1[0-9].*) > TARGET_TOOLS=GCC49 > ;; > *) > TARGET_TOOLS=GCC44 > ;; > esac I think you have a stale repository. Try deleting ovmf-dir-remote ? I can't comment how they handle toolchain detection though. Wei. > > Olaf