From: Laszlo Ersek Date: Tue, 15 Aug 2017 16:09:57 +0000 (+0200) Subject: OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.* X-Git-Tag: edk2-stable201903~3614 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=ca56256d5e0b7e63325b049e90a6bd03f90e3598 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 --- 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 ;; *)