From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 488F021E2DA49 for ; Tue, 15 Aug 2017 16:08:06 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2017 16:10:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,379,1498546800"; d="scan'208";a="119399172" Received: from hlfagan-mobl2.amr.corp.intel.com (HELO localhost) ([10.252.135.35]) by orsmga004.jf.intel.com with ESMTP; 15 Aug 2017 16:10:31 -0700 MIME-Version: 1.0 To: Laszlo Ersek , edk2-devel-01 Message-ID: <150283863081.6037.10631883807038076573@jljusten-skl> From: Jordan Justen In-Reply-To: <20170815170914.4987-2-lersek@redhat.com> References: <20170815170914.4987-1-lersek@redhat.com> <20170815170914.4987-2-lersek@redhat.com> User-Agent: alot/0.6.0dev Date: Tue, 15 Aug 2017 16:10:31 -0700 Subject: Re: [PATCH v2 1/1] OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.* 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: Tue, 15 Aug 2017 23:08:06 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jordan Justen On 2017-08-15 10:09:14, Laszlo Ersek wrote: > When UefiCpuPkg/MpInitLib is built for X64 with gcc-7, using the DEBUG > build target and the GCC5 toolchain settings, a C-language assignment is > miscompiled such that the initial AP startup hangs in CpuMpPei (X64) or > CpuDxe (Ia32X64). See > for a detailed analysis of the symptoms, and for mailing list links. > = > This issue has been reported several times (one example is > ). Until we (or the > upstream gcc developers) figure out how to dissuade gcc-7 from the > miscompilation, pick the GCC49 toolchain in "build.sh" for gcc-7.*. > = > Cc: Alex Williamson > Cc: Jordan Justen > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Laszlo Ersek > --- > OvmfPkg/build.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > = > diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh > index 682155202564..5868d3b8c498 100755 > --- a/OvmfPkg/build.sh > +++ b/OvmfPkg/build.sh > @@ -102,7 +102,7 @@ case `uname` in > 4.8.*) > TARGET_TOOLS=3DGCC48 > ;; > - 4.9.*|6.[0-2].*) > + 4.9.*|6.[0-2].*|7.*) > TARGET_TOOLS=3DGCC49 > ;; > *) > -- = > 2.14.1.3.gb7cf6e02401b >=20