From: Wei Liu <wei.liu2@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
Xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] xen: convert lto to Kconfig option
Date: Mon, 5 Dec 2016 16:05:09 +0000 [thread overview]
Message-ID: <20161205160509.GV3522@citrix.com> (raw)
In-Reply-To: <58459CAC020000780012533F@prv-mh.provo.novell.com>
On Mon, Dec 05, 2016 at 08:58:20AM -0700, Jan Beulich wrote:
> >>> On 05.12.16 at 16:27, <wei.liu2@citrix.com> wrote:
> > On Mon, Dec 05, 2016 at 03:22:30PM +0000, Wei Liu wrote:
> >> On Mon, Dec 05, 2016 at 08:05:35AM -0700, Jan Beulich wrote:
> >> > >>> On 05.12.16 at 15:39, <wei.liu2@citrix.com> wrote:
> >> > > Introduce CONFIG_LTO in Kconfig. Since this is the last option to be
> >> > > converted to Kconfig, delete the preceding comment in Rules.mk as well.
> >> > >
> >> > > Make it depend on BROKEN because it doesn't work at the moment.
> >> >
> >> > Looks fine except for this one aspect: Is that brokenness with gcc,
> >> > clang, or both? I wouldn't be surprised if it was broken with gcc (in
> >>
> >> It's going to be both.
> >>
> >> Its build rune is broken.
> >>
> >> I got:
> >>
> >> head.S:212:0: fatal error: opening dependency file /..d: Permission denied
> >>
> >> That is, this rule
> >>
> >> CFLAGS-y += -MMD -MF $(@D)/.$(@F).d
> >
> >>
> >> is evaluated too early outside of prerequisite list, which results in
> >> empty string.
> >>
> >
> > Sorry, "evaluated too early outside ..." is non-sense. I will just copy
> > the manpage for automatic variables from Make:
> >
> > "In particular, you cannot use them anywhere within the target list of a
> > rule; they have no value there and will expand to the empty string.
> > Also, they cannot be accessed directly within the prerequisite list of a
> > rule. A common mistake is attempting to use $@ within the prerequisites
> > list; this will not work."
> >
> > The "empty string" part in my description is accurate though.
>
> And iirc we've run into the issue (in a less destructive way) before
> (even more than once), and do some filtering of CFLAGS in a few
> places. Apparently we've missed one (or more) ...
>
> Anyway - feel free to put in the patch with my ack, as it certainly
> doesn't really alter the status quo here.
>
Thanks!
> Jan
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-12-05 16:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-05 14:39 [PATCH] xen: convert lto to Kconfig option Wei Liu
2016-12-05 15:05 ` Jan Beulich
2016-12-05 15:22 ` Wei Liu
2016-12-05 15:27 ` Wei Liu
2016-12-05 15:58 ` Jan Beulich
2016-12-05 16:05 ` Wei Liu [this message]
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=20161205160509.GV3522@citrix.com \
--to=wei.liu2@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).