public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/1] OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.*
@ 2017-08-15 17:09 Laszlo Ersek
  2017-08-15 17:09 ` [PATCH v2 1/1] " Laszlo Ersek
  0 siblings, 1 reply; 4+ messages in thread
From: Laszlo Ersek @ 2017-08-15 17:09 UTC (permalink / raw)
  To: edk2-devel-01; +Cc: Alex Williamson, Jordan Justen

This is v2 (or more precisely, the OvmfPkg variant) of the patch posted
at <https://lists.01.org/pipermail/edk2-devel/2017-August/013125.html>.
It is meant as a speedy workaround until we figure out and agree on a
workaround that isn't specific to any edk2 platform.

Repo:   https://github.com/lersek/edk2.git
Branch: gcc7_lto_v2

The same testing caveats apply to this version as to v1.

Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>

Thanks!
Laszlo

Laszlo Ersek (1):
  OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.*

 OvmfPkg/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.14.1.3.gb7cf6e02401b



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v2 1/1] OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.*
  2017-08-15 17:09 [PATCH v2 0/1] OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.* Laszlo Ersek
@ 2017-08-15 17:09 ` Laszlo Ersek
  2017-08-15 23:10   ` Jordan Justen
  0 siblings, 1 reply; 4+ messages in thread
From: Laszlo Ersek @ 2017-08-15 17:09 UTC (permalink / raw)
  To: edk2-devel-01; +Cc: Alex Williamson, Jordan Justen

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>
---
 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=GCC48
         ;;
-      4.9.*|6.[0-2].*)
+      4.9.*|6.[0-2].*|7.*)
         TARGET_TOOLS=GCC49
         ;;
       *)
-- 
2.14.1.3.gb7cf6e02401b



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/1] OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.*
  2017-08-15 17:09 ` [PATCH v2 1/1] " Laszlo Ersek
@ 2017-08-15 23:10   ` Jordan Justen
  2017-08-17  9:32     ` Laszlo Ersek
  0 siblings, 1 reply; 4+ messages in thread
From: Jordan Justen @ 2017-08-15 23:10 UTC (permalink / raw)
  To: Laszlo Ersek, edk2-devel-01

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

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 <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>
> ---
>  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=GCC48
>          ;;
> -      4.9.*|6.[0-2].*)
> +      4.9.*|6.[0-2].*|7.*)
>          TARGET_TOOLS=GCC49
>          ;;
>        *)
> -- 
> 2.14.1.3.gb7cf6e02401b
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/1] OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.*
  2017-08-15 23:10   ` Jordan Justen
@ 2017-08-17  9:32     ` Laszlo Ersek
  0 siblings, 0 replies; 4+ messages in thread
From: Laszlo Ersek @ 2017-08-17  9:32 UTC (permalink / raw)
  To: Jordan Justen, edk2-devel-01

On 08/16/17 01:10, Jordan Justen wrote:
> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

Thank you, pushed as commit ca56256d5e0b.
Laszlo

> 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 <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>
>> ---
>>  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=GCC48
>>          ;;
>> -      4.9.*|6.[0-2].*)
>> +      4.9.*|6.[0-2].*|7.*)
>>          TARGET_TOOLS=GCC49
>>          ;;
>>        *)
>> -- 
>> 2.14.1.3.gb7cf6e02401b
>>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-17  9:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-15 17:09 [PATCH v2 0/1] OvmfPkg/build.sh: select the GCC49 toolchain settings for gcc-7.* Laszlo Ersek
2017-08-15 17:09 ` [PATCH v2 1/1] " Laszlo Ersek
2017-08-15 23:10   ` Jordan Justen
2017-08-17  9:32     ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox