From: Ian Rogers <irogers@google.com>
To: Anisse Astier <anisse@astier.eu>
Cc: Pierre Cheynier <p.cheynier@criteo.com>,
"linux-perf-users@vger.kernel.org"
<linux-perf-users@vger.kernel.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Namhyung Kim <namhyung@gmail.com>
Subject: Re: [6.5.4] perf: bison min. requirements
Date: Fri, 29 Sep 2023 09:45:10 -0700 [thread overview]
Message-ID: <CAP-5=fWrQV0frxn4Re3G1X+APTiczpHoTUBozdenLBC7YUfhsw@mail.gmail.com> (raw)
In-Reply-To: <ZRb+ijwAImHsrSnv@anisse-laptop>
On Fri, Sep 29, 2023 at 9:42 AM Anisse Astier <anisse@astier.eu> wrote:
>
> Hi Ian,
>
> On Tue, Sep 26, 2023 at 02:28:50PM -0700, Ian Rogers wrote:
> > On Tue, Sep 26, 2023 at 1:21???AM Pierre Cheynier <p.cheynier@criteo.com> wrote:
> > >
> > > Dear list,
> > > At compiling 6.5.4 it seemed to me that this specific patch [1] added an implicit dependency to bison >= 3.7.4, due to usage of YYNOMEM.
> > > Shouldn't this be part of Documentation/process/changes.rst?
> > >
> > > [1] https://www.spinics.net/lists/linux-perf-users/msg30885.html "perf parse-events: Separate YYABORT and YYNOMEM cases"
> > >
> > > Sorry for the noise, and thanks for inputs if ever I'm totally wrong here.
> >
> > We have a workaround to #define YYNOMEM to YYABORT when Bison is
> > less-than 3.8.1:
> > https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/tree/tools/perf/util/Build?h=perf-tools-next#n323
> > Perhaps you can help debug why this build logic isn't working for you?
>
> This fix (commit 88cc47e245979 in perf-tools-next) has reached Linus'
> tree, but not yet stable.
>
> But code using a more recent Bison is now backported to v6.5.4 (stable
> commit 0e8501c8a936e0b2ff4ffdff2c4866ba74969189, upstream commit
> 77cdd787fc45e3426b8e0b5038b85c276540dfb4), which is what causes the
> build regression on older bison that Pierre reported.
>
> Someone else noticed and already asked for a backport:
> https://lore.kernel.org/all/CAM9d7cggeTaXR5VBD1BoPr9TLPoE7s9YSS2y0w-PGzTMAGsFWA@mail.gmail.com/
Great! Fwiw, Linux perf is backward compatible with older kernels and
so using the backport version makes little sense. Ideally Linux perf
would be decoupled by package maintainers and allowed to follow Linux
at head.
Thanks,
Ian
> Kind regards,
>
> Anisse
prev parent reply other threads:[~2023-09-29 16:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 8:21 [6.5.4] perf: bison min. requirements Pierre Cheynier
2023-09-26 21:28 ` Ian Rogers
2023-09-29 16:42 ` Anisse Astier
2023-09-29 16:45 ` Ian Rogers [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='CAP-5=fWrQV0frxn4Re3G1X+APTiczpHoTUBozdenLBC7YUfhsw@mail.gmail.com' \
--to=irogers@google.com \
--cc=acme@redhat.com \
--cc=anisse@astier.eu \
--cc=linux-perf-users@vger.kernel.org \
--cc=namhyung@gmail.com \
--cc=p.cheynier@criteo.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 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).