From ca56256d5e0b7e63325b049e90a6bd03f90e3598 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Tue, 15 Aug 2017 18:09:57 +0200 Subject: OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.* 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 Reviewed-by: Jordan Justen --- OvmfPkg/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh index 6821552025..5868d3b8c4 100755 --- a/OvmfPkg/build.sh +++ b/OvmfPkg/build.sh @@ -102,7 +102,7 @@ case `uname` in 4.8.*) TARGET_TOOLS=GCC48 ;; - 4.9.*|6.[0-2].*) + 4.9.*|6.[0-2].*|7.*) TARGET_TOOLS=GCC49 ;; *) -- cgit v1.2.3