All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: Giulio Benetti <giulio.benetti@benettiengineering.com>
Cc: Romain Naour <romain.naour@gmail.com>,
	Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_83143
Date: Sun, 29 Aug 2021 17:23:59 +0200	[thread overview]
Message-ID: <761985a1-2152-7a7b-e430-54b7b4ed31f3@mind.be> (raw)
In-Reply-To: <7FE9A46C-9CD8-4143-99DE-CE8D786A459C@benettiengineering.com>



On 28/08/2021 14:39, Giulio Benetti wrote:
> Hi Arnout,
> 
>> Il giorno 28 ago 2021, alle ore 14:06, Arnout Vandecappelle <arnout@mind.be> ha scritto:
>>
>> 
>>
>>> On 28/08/2021 00:34, Giulio Benetti wrote:
>>> ruby package fails to build for the SH4 architecture with optimization
>>> enabled with gcc = 9.3.0:
>>> http://autobuild.buildroot.net/results/f57/f5742e7fb6e8142bcdb53b7f4f5e9c1bea3558cd/
>>>
>>> It's already been reported upstream:
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143
>>>
>>> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
>>> ---
>>> toolchain/Config.in | 9 +++++++++
>>> 1 file changed, 9 insertions(+)
>>>
>>> diff --git a/toolchain/Config.in b/toolchain/Config.in
>>> index bf2bb3efe4..4419443930 100644
>>> --- a/toolchain/Config.in
>>> +++ b/toolchain/Config.in
>>> @@ -133,6 +133,15 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_68485
>>>    bool
>>>    default y if BR2_microblaze
>>>
>>> +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83143
>>> +# Error: invalid operands (*UND* and .text sections) for `-' on sh4.
>>> +# This bug no longer exists in gcc 10.x but reappeared on gcc 11.x and
>>> +# it still not been fixed yet.
>>> +config BR2_TOOLCHAIN_HAS_GCC_BUG_83143
>>> +    bool
>>> +    default y if !BR2_TOOLCHAIN_GCC_AT_LEAST_10
>>
>> The condition doesn't correspond to the comment above...
> 
> I’ve tried it and checked .config
> I find it emitted on gcc 9 and 11 while on gcc 10 not as described.

 I don't know what you did differently, but that's not what I have...

With this defconfig:

BR2_sh=y
BR2_GCC_VERSION_11_X=y

grep GCC_BUG_83143 .config

produces no output, while with this defconfig:

BR2_sh=y
BR2_GCC_VERSION_9_X=y

it does show it.


 BTW, I didn't notice before, but: why is this only for sh4, and not any other
SuperH? I mean, are you sure it's only on sh4? sh4 is the only one tested in the
autobuilders, of course, but it's kind of likely that other SuperH suffer from
the same bug...


> It’s always difficult to me to understand how that variable works.

 It's very simple: AT_LEAST_10_X is true for all GCC >= 10.0, so also for GCC
11. If you want exactly one version, it's AT_LEAST_10 && !AT_LEAST_11. In this
case, you want the negative of that, so !AT_LEAST_10 || AT_LEAST_11.

 Regards,
 Arnout

> 
> Giulio
> 
>>
>>
>> Regards,
>> Arnout
>>
>>> +    depends on BR2_sh4
>>> +
>>> # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. This bug no
>>> # longer exists in gcc 8.x.
>>> config BR2_TOOLCHAIN_HAS_GCC_BUG_85180
>>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot@busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
> 
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

  reply	other threads:[~2021-08-29 15:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-27 22:34 [Buildroot] [PATCH 0/2] Add and workaround gcc bug 83143 Giulio Benetti
2021-08-27 22:34 ` [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_83143 Giulio Benetti
2021-08-28 12:06   ` Arnout Vandecappelle
2021-08-28 12:39     ` Giulio Benetti
2021-08-29 15:23       ` Arnout Vandecappelle [this message]
2021-08-29 21:49         ` Giulio Benetti
2021-08-30 21:59           ` Thomas Petazzoni
2021-08-31 17:37             ` [Buildroot] [PATCH v2 0/2] Add and workaround gcc bug 83143 Giulio Benetti
2021-08-31 17:37               ` [Buildroot] [PATCH v2 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_83143 Giulio Benetti
2021-08-31 17:38               ` [Buildroot] [PATCH v2 2/2] package/ruby: fix build failure due to gcc bug 83143 Giulio Benetti
2021-09-11 16:20               ` [Buildroot] [PATCH v2 0/2] Add and workaround " Arnout Vandecappelle
2021-08-31 17:43             ` [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_83143 Giulio Benetti
2021-08-27 22:34 ` [Buildroot] [PATCH 2/2] package/ruby: fix build failure due to gcc bug 83143 Giulio Benetti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=761985a1-2152-7a7b-e430-54b7b4ed31f3@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@buildroot.org \
    --cc=giulio.benetti@benettiengineering.com \
    --cc=romain.naour@gmail.com \
    --cc=thomas.de_schampheleire@nokia.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.