From: Jeff Law <law@redhat.com>
To: Romain Naour <romain.naour@gmail.com>, gcc-patches@gcc.gnu.org
Cc: "Yann E . MORIN" <yann.morin.1998@free.fr>,
Maxim Kochetkov <fido_max@inbox.ru>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Ben Dakin-Norris <ben.dakin-norris@navtechradar.com>,
"Cc : David Malcolm" <dmalcolm@gcc.gnu.org>
Subject: Re: [PATCH] gcc/Makefile.in: move SELFTEST_DEPS before including language makefile fragments
Date: Wed, 03 Jun 2020 12:33:26 -0600 [thread overview]
Message-ID: <44ebbc4c0ffbb506fb63e0228834140a2f5f4d5e.camel@redhat.com> (raw)
In-Reply-To: <20200521153519.2858998-1-romain.naour@gmail.com>
On Thu, 2020-05-21 at 17:35 +0200, Romain Naour via Gcc-patches wrote:
> As reported by several Buildroot users [1][2][3], the gcc build
> may fail while running selftests makefile target.
>
> The problem only occurs when ccache is used with gcc 9 and 10,
> probably due to a race condition.
>
> While debuging with "make -p" we can notice that s-selftest-c target
> contain only "cc1" as dependency instead of cc1 and SELFTEST_DEPS [4].
>
> s-selftest-c: cc1
>
> While the build is failing, the s-selftest-c dependencies recipe is
> still running and reported as a bug by make.
>
> "Dependencies recipe running (THIS IS A BUG)."
>
> A change [5] in gcc 9 seems to introduce the problem since we can't
> reproduce this problem with gcc 8.
>
> As suggested by Yann E. MORIN [6], move SELFTEST_DEPS before
> including language makefile fragments.
>
> With the fix applied, the s-seltest-c dependency contains
> SELFTEST_DEPS value.
>
> s-selftest-c: cc1 xgcc specs stmp-int-hdrs ../../gcc/testsuite/selftests
>
> [1] http://lists.busybox.net/pipermail/buildroot/2020-May/282171.html
> [2] http://lists.busybox.net/pipermail/buildroot/2020-May/282766.html
> [3] https://github.com/cirosantilli/linux-kernel-module-cheat/issues/108
> [4]
> https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/c/Make-lang.in;h=bfae6fd2549c4f728816cd355fa9739dcc08fcde;hb=033eb5671769a4c681a44aad08a454e667e08502#l120
> [5]
> https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=033eb5671769a4c681a44aad08a454e667e08502
> [6] http://lists.busybox.net/pipermail/buildroot/2020-May/283213.html
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Ben Dakin-Norris <ben.dakin-norris@navtechradar.com>
> Cc: Maxim Kochetkov <fido_max@inbox.ru>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Cc: David Malcolm <dmalcolm@gcc.gnu.org>
> ---
> This patch should be backported to gcc 10 and gcc 9.
> ---
> gcc/ChangeLog | 5 +++++
> gcc/Makefile.in | 6 ++++--
> 2 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/ChangeLog b/gcc/ChangeLog
> index 977e7664b62..c3bb18f2afd 100644
> --- a/gcc/ChangeLog
> +++ b/gcc/ChangeLog
> @@ -1,3 +1,8 @@
> +2020-05-21 Romain Naour <romain.naour@gmail.com>
> +
> + * Makefile.in: move SELFTEST_DEPS before including language
> + makefile fragments.
THanks. I've installed this on the trunk.
jeff
>
next prev parent reply other threads:[~2020-06-03 18:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-21 15:35 Romain Naour
2020-05-21 17:31 ` Richard Biener
2020-05-21 17:41 ` Jeff Law
2020-05-30 11:32 ` Romain Naour
2020-05-21 22:13 ` David Malcolm
2020-05-27 12:04 ` Romain Naour
2020-06-03 18:33 ` Jeff Law [this message]
2020-06-03 19:56 ` Romain Naour
2020-06-03 20:24 ` Jeff Law
2020-07-08 19:41 ` Romain Naour
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=44ebbc4c0ffbb506fb63e0228834140a2f5f4d5e.camel@redhat.com \
--to=law@redhat.com \
--cc=ben.dakin-norris@navtechradar.com \
--cc=dmalcolm@gcc.gnu.org \
--cc=fido_max@inbox.ru \
--cc=gcc-patches@gcc.gnu.org \
--cc=romain.naour@gmail.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).