All of lore.kernel.org
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: Andre McCurdy <armccurdy@gmail.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 01/12] tune/arm: Set -mtune instead of -mcpu
Date: Thu, 7 Jun 2018 07:04:34 -0700	[thread overview]
Message-ID: <CAMKF1srdYY8MXiFWjk7Khh2TsDQ0faTPV4gn5tRfUwrXEUYpUA@mail.gmail.com> (raw)
In-Reply-To: <CAJ86T=U12bdRd=GtseZc8DSKOyEm=OdM=JJZB_6Uu4c0e5__1w@mail.gmail.com>

On Thu, Jun 7, 2018 at 12:14 AM, Andre McCurdy <armccurdy@gmail.com> wrote:
> On Wed, Jun 6, 2018 at 10:58 PM, Khem Raj <raj.khem@gmail.com> wrote:
>> On 6/6/18 4:42 PM, Andre McCurdy wrote:
>>> On Wed, Jun 6, 2018 at 3:43 PM, Khem Raj <raj.khem@gmail.com> wrote:
>>>
>>> The -mcpu, -march and -mtune options are not new and gcc 6 and 7 catch
>>> the same conflicts. It doesn't make sense that gcc8 is just catching
>>> more issues.
>>
>> It does make sense. the option parsing for these specific options on arm
>> have been revamped after gcc7, see
>>
>> https://github.com/kraj/gcc/compare/a99ae290af49793cd3db7a74f3dbc59e64d356a1...68b54adbd7b10c66d968d74b96fba552bd46ebb7
>
> Thanks. These commits seem to be related to handling of options like
> "-mcpu=cortexa9+nosimd". Was that the error you saw in testing?
>
> If you can provide the command line that caused the error then it
> should be quick to establish whether it's gcc8 being more picky.
>
> Or perhaps there's always been a warning and -Werror has been added to
> a gcc8 Makefile where it wasn't before?
>
>>> If we are trying to build something which is reusable across multiple
>>> machines with the same architecture then it's a bug to be passing
>>> machine specific CFLAGS. Making the machine specific CFLAGS more
>>> generic is not the right solution.
>>
>> being reusable is a side-effect and a good one. Real problem is we are not
>> matching to what we say in package arches, Probably you are confusing tunes
>> to be meant for static code generation for a given CPU.
>
> Sorry, I don't really follow what you mean?
>
>> I am interested to
>> hear more ideas to what would be right solution if this is not it.
>
> I'd like to understand what the problem is first before trying to
> propose any solutions.
>
> ie what specifically has changed with gcc8 to cause the error which
> wasn't seen before?


I would suggest take this gcc8 patch series and revert this one then build
gcc-runtime for rpi3

>
>>> Anyway, I suspect the real issue here is that when we build gcc to run
>>> on the target we currently configure using "--with-arch=armv7-a" for
>>> both armv7a and armv7ve. It was done that way deliberately to try to
>>> avoid rebuilds when switching between armv7a and armv7ve machines,
>>> although thinking about that now I'm not sure it makes so much sense.
>>> Does your original problem go away if you simply change:
>>>
>>>    EXTRA_OECONF_append_armv7ve = " --with-arch=armv7-a"
>>>
>>> to
>>>
>>>    EXTRA_OECONF_append_armv7ve = " --with-arch=armv7ve"
>>>
>>> in gcc-target.inc ?
>>
>> No, this is not the problem I am talking about gcc-runtime which is
>> configured during cross build but built for target later on.
>
> OK, good to rule that out. It's nothing to do with gcc8 and I've sent
> a separate patch to fix it.


  reply	other threads:[~2018-06-07 14:05 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-06 21:37 [PATCH V2 00/12] Add GCC 8 recipes Khem Raj
2018-06-06 21:37 ` [PATCH 01/12] tune/arm: Set -mtune instead of -mcpu Khem Raj
2018-06-06 22:15   ` Andre McCurdy
2018-06-06 22:43     ` Khem Raj
2018-06-06 23:42       ` Andre McCurdy
2018-06-07  5:58         ` Khem Raj
2018-06-07  6:36           ` Martin Jansa
2018-06-07 16:55             ` Khem Raj
2018-06-07  7:14           ` Andre McCurdy
2018-06-07 14:04             ` Khem Raj [this message]
2018-06-07 23:38               ` Andre McCurdy
2018-06-08  0:57                 ` Khem Raj
2018-06-08  1:20                   ` Andre McCurdy
2018-06-08  1:48                     ` Khem Raj
2018-06-08  8:12                     ` Khem Raj
2018-06-06 21:37 ` [PATCH 02/12] valgrind: Remove code to remove -mcpu option on arm Khem Raj
2018-06-06 21:37 ` [PATCH 03/12] tune-mips-74k.inc: add tune file for 74kc mips Khem Raj
2018-06-06 21:37 ` [PATCH 04/12] gcc-8: Add recipes for 8.1 release Khem Raj
2018-06-06 21:37 ` [PATCH 05/12] gcc-8: Disable libssp for non mingw targets Khem Raj
2018-06-06 21:37 ` [PATCH 06/12] gcc-8: Disable float128 for ppc/musl Khem Raj
2018-06-06 21:37 ` [PATCH 07/12] gcc-8: Enabled mspe options for rs6000 ppc backend Khem Raj
2018-06-06 21:37 ` [PATCH 08/12] tcmode-default: Switch to gcc 8.0 Khem Raj
2018-06-06 21:37 ` [PATCH 09/12] linux-yocto: Fix build with gcc8 for ppc Khem Raj
2018-06-06 21:37 ` [PATCH 10/12] linux-yocto: Fix mips build with gcc8 Khem Raj
2018-06-06 21:37 ` [PATCH 11/12] linux-yocto: Fix mips64 " Khem Raj
2018-06-06 21:37 ` [PATCH 12/12] linux-yocto: Fix GCC 8 -Wrestrict error Khem Raj
2018-06-07  0:45 ` [PATCH V2 00/12] Add GCC 8 recipes Bruce Ashfield
2018-06-07 10:42   ` Richard Purdie
2018-06-07 12:08     ` Kevin Hao
2018-06-07 13:58     ` Khem Raj

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=CAMKF1srdYY8MXiFWjk7Khh2TsDQ0faTPV4gn5tRfUwrXEUYpUA@mail.gmail.com \
    --to=raj.khem@gmail.com \
    --cc=armccurdy@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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.