From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: ovmf fails to build in stagin-4.6 Date: Mon, 26 Oct 2015 12:13:40 +0100 Message-ID: <20151026111340.GA25113@aepfle.de> References: <20151026094315.GA29513@aepfle.de> <20151026100316.GA11537@zion.uk.xensource.com> <20151026101116.GA8411@aepfle.de> <20151026101355.GP5060@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20151026101355.GP5060@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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 Olaf