All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] toolchain: update gcc bug 99140
@ 2021-07-26  8:01 Giulio Benetti
  2021-07-26  8:07 ` Thomas Petazzoni
  0 siblings, 1 reply; 9+ messages in thread
From: Giulio Benetti @ 2021-07-26  8:01 UTC (permalink / raw)
  To: buildroot
  Cc: Giulio Benetti, Romain Naour, Thomas De Schampheleire, Thomas Petazzoni

Gcc bug 99140 is still not fixed on gcc version 8.x so we need to move gcc
version up to 9.x to have it correctly working.

Fixes:
http://autobuild.buildroot.net/results/c55/c55f50a8d657695f0d5492c32efa666254cd7f99/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 toolchain/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/toolchain/Config.in b/toolchain/Config.in
index 03375e0c52..8603e2aaff 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -171,10 +171,10 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
 # Error: branch offset out of range on Nios II. This bug
-# no longer exists in gcc >= 8.x.
+# no longer exists in gcc >= 9.x.
 config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
 	bool
-	default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_8
+	default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_9
 
 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	bool
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] toolchain: update gcc bug 99140
  2021-07-26  8:01 [Buildroot] [PATCH] toolchain: update gcc bug 99140 Giulio Benetti
@ 2021-07-26  8:07 ` Thomas Petazzoni
  2021-07-26  9:05   ` Giulio Benetti
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2021-07-26  8:07 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: Romain Naour, Thomas De Schampheleire, buildroot

On Mon, 26 Jul 2021 10:01:59 +0200
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> Gcc bug 99140 is still not fixed on gcc version 8.x so we need to move gcc
> version up to 9.x to have it correctly working.

And so you're positive in has been fixed in gcc 9.x and later versions ?

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] toolchain: update gcc bug 99140
  2021-07-26  8:07 ` Thomas Petazzoni
@ 2021-07-26  9:05   ` Giulio Benetti
  2021-07-26  9:17     ` Giulio Benetti
  0 siblings, 1 reply; 9+ messages in thread
From: Giulio Benetti @ 2021-07-26  9:05 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: Romain Naour, Thomas De Schampheleire, buildroot


> Il giorno 26 lug 2021, alle ore 10:07, Thomas Petazzoni <thomas.petazzoni@bootlin.com> ha scritto:
> 
> On Mon, 26 Jul 2021 10:01:59 +0200
> Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:
> 
>> Gcc bug 99140 is still not fixed on gcc version 8.x so we need to move gcc
>> version up to 9.x to have it correctly working.
> 
> And so you're positive in has been fixed in gcc 9.x and later versions ?

Yes, I’ve retested with the combination of all binutils:
2.32, 2.34, 2.35.2 and 2.36,1 against:
gcc9,10 and they worked correctly on gcc10 with any binutils. I haven’t dig the reason inside gcc but that is what I’ve seen.

Honestly this showed up only with gcc8 as I remember and it still does it with Bootlin toolchain
on autobuilder(gcc9+binutils 2.33.1).

Giulio

> 
> Thanks!
> 
> Thomas
> -- 
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH] toolchain: update gcc bug 99140
  2021-07-26  9:05   ` Giulio Benetti
@ 2021-07-26  9:17     ` Giulio Benetti
  2021-08-21 21:33       ` [Buildroot] [PATCH v2] " Giulio Benetti
  0 siblings, 1 reply; 9+ messages in thread
From: Giulio Benetti @ 2021-07-26  9:17 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: Romain Naour, Thomas De Schampheleire, buildroot


> Il giorno 26 lug 2021, alle ore 11:05, Giulio Benetti <giulio.benetti@benettiengineering.com> ha scritto:
> 
> 
>> Il giorno 26 lug 2021, alle ore 10:07, Thomas Petazzoni <thomas.petazzoni@bootlin.com> ha scritto:
>> 
>> On Mon, 26 Jul 2021 10:01:59 +0200
>> Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:
>> 
>>> Gcc bug 99140 is still not fixed on gcc version 8.x so we need to move gcc
>>> version up to 9.x to have it correctly working.
>> 
>> And so you're positive in has been fixed in gcc 9.x and later versions ?
> 
> Yes, I’ve retested with the combination of all binutils:
> 2.32, 2.34, 2.35.2 and 2.36,1 against:
> gcc9,10 and they worked correctly on gcc10 with any binutils. I haven’t dig the reason inside gcc but that is what I’ve seen.
> 
> Honestly this showed up only with gcc8 as I remember and it still does it with Bootlin toolchain
> on autobuilder(gcc9+binutils 2.33.1).

Oops, sorry it must be moved to 10.x not 9.x
Need to retest all then. I’ve made confusion on this. Sorry for the noise.

Giulio

> 
> Giulio
> 
>> 
>> Thanks!
>> 
>> Thomas
>> -- 
>> Thomas Petazzoni, co-owner and CEO, Bootlin
>> Embedded Linux and Kernel engineering
>> https://bootlin.com

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH v2] toolchain: update gcc bug 99140
  2021-07-26  9:17     ` Giulio Benetti
@ 2021-08-21 21:33       ` Giulio Benetti
  2021-08-23 20:01         ` Arnout Vandecappelle
  0 siblings, 1 reply; 9+ messages in thread
From: Giulio Benetti @ 2021-08-21 21:33 UTC (permalink / raw)
  To: buildroot, Thomas Petazzoni
  Cc: Giulio Benetti, Romain Naour, Thomas De Schampheleire

Gcc bug 99140 has been fixed on gcc 8.x but reappeared on gcc 9.x while
it's been fixed on gcc 10.x+. So let's update
BR2_TOOLCHAIN_HAS_GCC_BUG_99140 accordingly.

Fixes:
http://autobuild.buildroot.net/results/c55/c55f50a8d657695f0d5492c32efa666254cd7f99/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
V1->V2:
* gcc 8.x works, gcc 9.x doesn't, gcc 10.x+ work
---
 toolchain/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/toolchain/Config.in b/toolchain/Config.in
index c35c52d142..d033ce3962 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -165,10 +165,12 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
 # Error: branch offset out of range on Nios II. This bug
-# no longer exists in gcc >= 8.x.
+# no longer exists in gcc 8.x but reappeared on gcc 9.x and has been
+# fixed on gcc 10.x.
 config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
 	bool
-	default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_8
+	default y if BR2_nios2
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_TOOLCHAIN_GCC_AT_LEAST_9
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
 # ICE: SH4 -Os causes internal compiler error. This bug
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v2] toolchain: update gcc bug 99140
  2021-08-21 21:33       ` [Buildroot] [PATCH v2] " Giulio Benetti
@ 2021-08-23 20:01         ` Arnout Vandecappelle
  2021-08-23 22:58           ` Giulio Benetti
  2021-08-23 22:59           ` Giulio Benetti
  0 siblings, 2 replies; 9+ messages in thread
From: Arnout Vandecappelle @ 2021-08-23 20:01 UTC (permalink / raw)
  To: Giulio Benetti, buildroot, Thomas Petazzoni
  Cc: Romain Naour, Thomas De Schampheleire



On 21/08/2021 23:33, Giulio Benetti wrote:
> Gcc bug 99140 has been fixed on gcc 8.x but reappeared on gcc 9.x while
> it's been fixed on gcc 10.x+. So let's update
> BR2_TOOLCHAIN_HAS_GCC_BUG_99140 accordingly.
> 
> Fixes:
> http://autobuild.buildroot.net/results/c55/c55f50a8d657695f0d5492c32efa666254cd7f99/
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> V1->V2:
> * gcc 8.x works, gcc 9.x doesn't, gcc 10.x+ work
> ---
>  toolchain/Config.in | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/toolchain/Config.in b/toolchain/Config.in
> index c35c52d142..d033ce3962 100644
> --- a/toolchain/Config.in
> +++ b/toolchain/Config.in
> @@ -165,10 +165,12 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
>  
>  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
>  # Error: branch offset out of range on Nios II. This bug
> -# no longer exists in gcc >= 8.x.
> +# no longer exists in gcc 8.x but reappeared on gcc 9.x and has been
> +# fixed on gcc 10.x.
>  config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
>  	bool
> -	default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_8
> +	default y if BR2_nios2
> +	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_TOOLCHAIN_GCC_AT_LEAST_9

 Unless I'm very mistaken, this is basically saying "depends on any GCC version
except GCC 8". However, from your commit message, it seems it should be "depends
on GCC < 8 or GCC 9". To simplify the logic, I would say:

	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_10
	depends on BR2_nios2


 Regards,
 Arnout

>  
>  # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
>  # ICE: SH4 -Os causes internal compiler error. This bug
> 
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH v2] toolchain: update gcc bug 99140
  2021-08-23 20:01         ` Arnout Vandecappelle
@ 2021-08-23 22:58           ` Giulio Benetti
  2021-08-24 21:51             ` Thomas Petazzoni
  2021-08-23 22:59           ` Giulio Benetti
  1 sibling, 1 reply; 9+ messages in thread
From: Giulio Benetti @ 2021-08-23 22:58 UTC (permalink / raw)
  To: buildroot
  Cc: Thomas De Schampheleire, Giulio Benetti, Romain Naour, Thomas Petazzoni

Gcc bug 99140 has been fixed on gcc 8.x but reappeared on gcc 9.x while
it's been fixed on gcc 10.x+. So let's update
BR2_TOOLCHAIN_HAS_GCC_BUG_99140 accordingly.

Fixes:
http://autobuild.buildroot.net/results/c55/c55f50a8d657695f0d5492c32efa666254cd7f99/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
V1->V2:
* fix/improve Kconfig mechanism as suggested by Arnout
---
 toolchain/Config.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/toolchain/Config.in b/toolchain/Config.in
index c35c52d142..bf2bb3efe4 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -165,10 +165,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
 # Error: branch offset out of range on Nios II. This bug
-# no longer exists in gcc >= 8.x.
+# no longer exists in gcc 8.x but reappeared on gcc 9.x and has been
+# fixed on gcc 10.x.
 config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
 	bool
-	default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_8
+	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
+	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_10
+	depends on BR2_nios2
 
 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101737
 # ICE: SH4 -Os causes internal compiler error. This bug
-- 
2.25.1

_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v2] toolchain: update gcc bug 99140
  2021-08-23 20:01         ` Arnout Vandecappelle
  2021-08-23 22:58           ` Giulio Benetti
@ 2021-08-23 22:59           ` Giulio Benetti
  1 sibling, 0 replies; 9+ messages in thread
From: Giulio Benetti @ 2021-08-23 22:59 UTC (permalink / raw)
  To: Arnout Vandecappelle, buildroot, Thomas Petazzoni
  Cc: Romain Naour, Thomas De Schampheleire

Hi Arnout,

On 8/23/21 10:01 PM, Arnout Vandecappelle wrote:
> 
> 
> On 21/08/2021 23:33, Giulio Benetti wrote:
>> Gcc bug 99140 has been fixed on gcc 8.x but reappeared on gcc 9.x while
>> it's been fixed on gcc 10.x+. So let's update
>> BR2_TOOLCHAIN_HAS_GCC_BUG_99140 accordingly.
>>
>> Fixes:
>> http://autobuild.buildroot.net/results/c55/c55f50a8d657695f0d5492c32efa666254cd7f99/
>>
>> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
>> ---
>> V1->V2:
>> * gcc 8.x works, gcc 9.x doesn't, gcc 10.x+ work
>> ---
>>   toolchain/Config.in | 6 ++++--
>>   1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/toolchain/Config.in b/toolchain/Config.in
>> index c35c52d142..d033ce3962 100644
>> --- a/toolchain/Config.in
>> +++ b/toolchain/Config.in
>> @@ -165,10 +165,12 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_93847
>>   
>>   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99410
>>   # Error: branch offset out of range on Nios II. This bug
>> -# no longer exists in gcc >= 8.x.
>> +# no longer exists in gcc 8.x but reappeared on gcc 9.x and has been
>> +# fixed on gcc 10.x.
>>   config BR2_TOOLCHAIN_HAS_GCC_BUG_99140
>>   	bool
>> -	default y if BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_8
>> +	default y if BR2_nios2
>> +	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_TOOLCHAIN_GCC_AT_LEAST_9
> 
>   Unless I'm very mistaken, this is basically saying "depends on any GCC version
> except GCC 8". However, from your commit message, it seems it should be "depends
> on GCC < 8 or GCC 9". To simplify the logic, I would say:
> 
> 	default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_8
> 	default y if BR2_TOOLCHAIN_GCC_AT_LEAST_9 && !BR2_TOOLCHAIN_GCC_AT_LEAST_10
> 	depends on BR2_nios2

Oh, that is a very elegant solution. I've learnt something new!
Thank you. I've sent v2 patch for this

Best regards!
-- 
Giulio Benetti
Benetti Engineering sas
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH v2] toolchain: update gcc bug 99140
  2021-08-23 22:58           ` Giulio Benetti
@ 2021-08-24 21:51             ` Thomas Petazzoni
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2021-08-24 21:51 UTC (permalink / raw)
  To: Giulio Benetti; +Cc: Romain Naour, Thomas De Schampheleire, buildroot

On Tue, 24 Aug 2021 00:58:46 +0200
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:

> Gcc bug 99140 has been fixed on gcc 8.x but reappeared on gcc 9.x while
> it's been fixed on gcc 10.x+. So let's update
> BR2_TOOLCHAIN_HAS_GCC_BUG_99140 accordingly.
> 
> Fixes:
> http://autobuild.buildroot.net/results/c55/c55f50a8d657695f0d5492c32efa666254cd7f99/
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
> V1->V2:
> * fix/improve Kconfig mechanism as suggested by Arnout
> ---
>  toolchain/Config.in | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-08-24 21:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26  8:01 [Buildroot] [PATCH] toolchain: update gcc bug 99140 Giulio Benetti
2021-07-26  8:07 ` Thomas Petazzoni
2021-07-26  9:05   ` Giulio Benetti
2021-07-26  9:17     ` Giulio Benetti
2021-08-21 21:33       ` [Buildroot] [PATCH v2] " Giulio Benetti
2021-08-23 20:01         ` Arnout Vandecappelle
2021-08-23 22:58           ` Giulio Benetti
2021-08-24 21:51             ` Thomas Petazzoni
2021-08-23 22:59           ` Giulio Benetti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.