]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.*
authorLaszlo Ersek <lersek@redhat.com>
Tue, 15 Aug 2017 16:09:57 +0000 (18:09 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 17 Aug 2017 09:30:52 +0000 (11:30 +0200)
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 <https://bugzilla.tianocore.org/show_bug.cgi?id=671>
for a detailed analysis of the symptoms, and for mailing list links.

This issue has been reported several times (one example is
<https://bugzilla.tianocore.org/show_bug.cgi?id=657>). 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 <alex.williamson@redhat.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
OvmfPkg/build.sh

index 68215520256421111cc72802856b3a28b5f00327..5868d3b8c498993e89cbea2a60a4fd6d28bc87c5 100755 (executable)
@@ -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
         ;;
       *)