All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: Ross Burton <Ross.Burton@arm.com>,
	"Patches and discussions about the oe-core layer"
	<openembedded-core@lists.openembedded.org>
Subject: RE: [OE-core] [PATCH] gcc: Allow -Wno-error=poison-system-directories to take effect
Date: Thu, 13 Oct 2022 21:21:25 +0000	[thread overview]
Message-ID: <86833f1a66344e14b8191960d12993f4@axis.com> (raw)
In-Reply-To: <CAMKF1spjQSXimjhUeufGppgKenNLgsR+c_ppWJJd0ON4GS=dHw@mail.gmail.com>

> -----Original Message-----
> From: Khem Raj <raj.khem@gmail.com>
> Sent: den 13 oktober 2022 17:41
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Cc: Ross Burton <Ross.Burton@arm.com>; Patches and discussions about the
> oe-core layer <openembedded-core@lists.openembedded.org>
> Subject: Re: [OE-core] [PATCH] gcc: Allow -Wno-error=poison-system-
> directories to take effect
> 
> On Thu, Oct 13, 2022 at 7:38 AM Peter Kjellerstedt <peter.kjellerstedt@axis.com> wrote:
> >
> > > -----Original Message-----
> > > From: Ross Burton <Ross.Burton@arm.com>
> > > Sent: den 13 oktober 2022 16:05
> > > To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > > Cc: Patches and discussions about the oe-core layer <openembedded-
> > > core@lists.openembedded.org>
> > > Subject: Re: [OE-core] [PATCH] gcc: Allow -Wno-error=poison-system-
> > > directories to take effect
> > >
> > > Whilst this is a good fix, I’m horrified to ask why you need it…
> >
> > We have a recipe for skia. Somewhere in that mess of a build
> > system it uses (gn), something adds -I/usr/include/freetype2,
> > which results in an error with -Werror=poison-system-directories
> > enabled (as it should). Now, to work around that problem, the
> > recipe currently adds -I=/usr/include/freetype2, which means we
> > know that the correct path is used. However, since the original
> > -I/usr/include/freetype2 is still in the list of options, the
> > error still triggers.
> >
> > Now, to fix the problem properly, skias's build files should be
> > patched, but that is not my job. What I am working on is to get
> > our recipes to build with Langdale. This means I can cut some
> > corners and, e.g., disable errors and then hand off to the
> > responsible team to fix the underlying problem at a time that
> > suits them. Thus in this case I wanted to add
> > -Wno-error=poison-system-directories for skia, which I then, to
> > my surprise, noticed had no effect...
> 
> from gcc recipe point of view, this fix is fine. however your use of
> this seems to be a workaround that perhaps is better fixed in skia

Oh, I'm well aware of that. As I said, my job at this stage is to get 
everything building with Langdale. And to achieve that, it is perfectly 
fine for me to, e.g., disable compiler errors. Once the platform 
builds, the respective code owners have the responsibility to actually 
correct their code to not generate the errors in the first place.

> because = syntax for sysroot works with gcc but may not work with
> clang e.g. so you are being lucky here.

We don't use clang so that is not a problem for us.

> > //Peter
> >
> > > Ross

//Peter


  reply	other threads:[~2022-10-13 21:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13 13:29 [PATCH] gcc: Allow -Wno-error=poison-system-directories to take effect Peter Kjellerstedt
2022-10-13 14:05 ` [OE-core] " Ross Burton
2022-10-13 14:38   ` Peter Kjellerstedt
2022-10-13 15:41     ` Khem Raj
2022-10-13 21:21       ` Peter Kjellerstedt [this message]
2022-10-13 22:40         ` 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=86833f1a66344e14b8191960d12993f4@axis.com \
    --to=peter.kjellerstedt@axis.com \
    --cc=Ross.Burton@arm.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=raj.khem@gmail.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.